Computer Science Canada GUI Troubles |
Author: | shakin cookie [ Wed Jan 09, 2008 8:04 pm ] | ||
Post subject: | GUI Troubles | ||
Ok, so my final summative involves buttons, and i am having some trouble... First off, let me state that my computer's teacher said that we must use Turing's GUI. Now, on to the problem... I have a lot of buttons, ad when i click on one, the previous button that has been near or in that spot is clicked, and it returns to the same procedure i am in. This is hard to explain, so here is the code, so you all can take a look. Is there a command to get rid of the overlapping?
|
Author: | Tony [ Wed Jan 09, 2008 9:01 pm ] |
Post subject: | RE:GUI Troubles |
There's a command to disable a button no longer in use. |
Author: | Carey [ Thu Jan 10, 2008 8:48 am ] | ||
Post subject: | RE:GUI Troubles | ||
try using
|
Author: | shakin cookie [ Thu Jan 10, 2008 4:35 pm ] |
Post subject: | RE:GUI Troubles |
would i declare this right after i declare the button, or in the following procedure? |
Author: | Tony [ Thu Jan 10, 2008 5:19 pm ] |
Post subject: | RE:GUI Troubles |
You call this at whatever point you no longer want to use the button. |
Author: | shakin cookie [ Fri Jan 11, 2008 5:10 pm ] |
Post subject: | RE:GUI Troubles |
There's only one problem with that... The next procedures are declared BEFORE the button... therefor calling GUI.Dispose before would return an error message, and putting it after would make the button unusable at the time it is needed. |
Author: | Tony [ Fri Jan 11, 2008 5:15 pm ] |
Post subject: | RE:GUI Troubles |
well you probably shouldn't be hardcoding the references to GUI elements anyway. |
Author: | shakin cookie [ Fri Jan 11, 2008 5:17 pm ] |
Post subject: | RE:GUI Troubles |
my teacher announced that turing's GUI must be used. |
Author: | Sean [ Fri Jan 11, 2008 5:22 pm ] |
Post subject: | Re: GUI Troubles |
Turing GUi is not recommened, I would tell your teacher not to use it, and for you to create your own buttons, without using GUI! |
Author: | Tony [ Fri Jan 11, 2008 5:31 pm ] |
Post subject: | RE:GUI Troubles |
That wouldn't matter, it would have the same problem of keeping track of which buttons are active at what time. I didn't mean you should not use GUI. You can pass arguments to your procedures, so it shouldn't matter what procedure was declared before what. |
Author: | shakin cookie [ Fri Jan 11, 2008 5:44 pm ] |
Post subject: | RE:GUI Troubles |
how would i do that? |
Author: | SMasood [ Sun Jan 13, 2008 8:38 pm ] |
Post subject: | RE:GUI Troubles |
Use GUI.Hide (yourButton) JEEZUS CHRIST AKIVA ![]() |