Computer Science Canada GUI Help |
Author: | eLegant [ Sun Sep 17, 2006 5:49 pm ] | ||
Post subject: | GUI Help | ||
Hi all, I'm new to the forums. Anyways, I'm having problems with the GUI in my program. Here's the code.. Note: It does compile, but when i try to enter text into the text field, it crashes.
What I want to create is a GUI with a text field along the bottom of the window and two text boxes (one for output, the other for a userlist). All help is appreciated. Thanks in advance. |
Author: | eLegant [ Sun Sep 17, 2006 6:02 pm ] | ||
Post subject: | |||
Sorry for the double post, but I can't find the Edit button and I'm in a hurry. The code I posted WILL NOT compile on it's own. For more advanced members who may have noticed, it needs..
.. at the tiop of it in order to compile. Thanks again guys. |
Author: | Tony [ Sun Sep 17, 2006 6:22 pm ] | ||
Post subject: | |||
I think you have a wrong function declaration there
but you never pass text to it, you just call it as MsgEntered(). which is fine, since you never use that argument as well. Just drop the text:string part |
Author: | eLegant [ Sun Sep 17, 2006 6:37 pm ] | ||
Post subject: | |||
Thanks Tony, but that didn't work. I'd like to mention that code you mentioned is actually from the reference section of Turing. When I take out the part 'text:string', i get 'Argument is the wrong type'. Here's the reference code..
|
Author: | Clayton [ Sun Sep 17, 2006 6:53 pm ] |
Post subject: | |
first of all, welcome to CompSci! now, as you might already of noticed, Turing's GUI really sucks, so why not make your own?! You can find the tutorial that will give you the ability on how to, along with some sample code to build from, just go here! Good Luck! |
Author: | eLegant [ Sun Sep 17, 2006 7:10 pm ] |
Post subject: | |
Hey, Freakman. Yeah.. Turing, to me, is one of the ugliest languages I've ever had to deal with (I come from a C# background), so I wasn't that surprised to find that the GUI sucked. To be honest, I half expected NOT to find any way of being able to interact with the internet (thank God for Turing's limited support of TCP/IP). Anyways, that tutorial you linked to was on Classes. Was that what you intended to link to or was there something else you wanted to show me? |
Author: | Clayton [ Sun Sep 17, 2006 7:41 pm ] |
Post subject: | |
yes that link was the one i was intending to link to, if you read through it, you will find all you need to be well on your way to creating a GUI class, and there is sample code for a button class (start of a GUI) at the bottom in an attachment |