Computer Science Canada GUI>... god |
Author: | masterfenix [ Thu Dec 01, 2005 7:41 pm ] | ||
Post subject: | GUI>... god | ||
Ok, well I have a procedure. The GUI Menu gets disabled, because the widget is true. I want it to be disabled. Because theres a file opened already to write too, and if someone switches to another proc using the menu, it errors out. SO. Basically, when they go to add a customer, it asks to input name, code, blah blah. BUT What if someone wants to quit ? halfway through the procedure? if I
if i put that on top of the procedure, then since its a never ending loop, the rest isnt displayed. any thought about how to do this? (display the quit button, and run through the procedure.) and if they press the proceudre, it uses "return" or soemthing to exit the proc and go back to main? |
Author: | Cervantes [ Fri Dec 02, 2005 9:01 am ] |
Post subject: | |
Have you thought about hiding the GUI widgets? |
Author: | masterfenix [ Fri Dec 02, 2005 11:46 am ] |
Post subject: | |
well what do you mean? i dont want it to HIDE. I want it to show, and WORK while executing the proc also. |
Author: | Lapsus Antepedis [ Fri Dec 02, 2005 12:15 pm ] | ||
Post subject: | |||
Well, in theory you could have a process that will watch for the button to be pressed, and when it is pressed you could use return to kill the program... If I'm understanding you...
I don't know if it will work, seeing as I have no access to turing at the moment, but in theory, it's great... |
Author: | masterfenix [ Fri Dec 02, 2005 12:35 pm ] |
Post subject: | |
well I tired a process. but it wouldnt give me my results. like if someone pressed in , and went on to say "show customer list", it would show the customer list, + the procedure for the add customer would run also. |
Author: | masterfenix [ Sun Dec 04, 2005 1:37 pm ] |
Post subject: | |
anyone please help |
Author: | Cervantes [ Sun Dec 04, 2005 1:47 pm ] |
Post subject: | Re: GUI>... god |
Oftentimes, rephrasing your question can help. I know I'm lost: masterfenix wrote: The GUI Menu gets disabled, because the widget is true. I want it to be disabled.
masterfenix wrote: i dont want it to HIDE. I want it to show, and WORK while executing the proc also.
You want it to be disabled, but you want it to work? Does this mean you want to be able to click on the menu and have it expand and such, but you want to disable selecting certain options from the menu? ie. I can open the file menu, but I cannot click save because I just saved my file and have not made any changes yet. On the note of using processes, you should read the discussion on why to avoid processes |
Author: | masterfenix [ Sun Dec 04, 2005 1:51 pm ] |
Post subject: | |
oh soryr. yea the menu is disabled! I want it to be disabled. But a BUTTOn should pop up while in that procedure. Saying "quit" and when its pressed its "returns" the proc. so that way there not stuck inside the procedure and have to wait till end of execution. |
Author: | Cervantes [ Sun Dec 04, 2005 1:56 pm ] |
Post subject: | |
You could try hiding the quit button to start, then showing the quit button when you open the file. |
Author: | masterfenix [ Sun Dec 04, 2005 1:59 pm ] | ||||||
Post subject: | |||||||
ok well heres my procedure. its small.
and heres my main file.
note: showMenu () is a procedure with these contents:
I am showing the button but it dosnt work. |