Computer Science Canada GUI looping |
Author: | kk [ Sat Jan 10, 2004 5:31 pm ] | ||
Post subject: | GUI looping | ||
I have to make an email program and i'm currently working on the login screen with GUi that opens in a new window. can you use loops in gui ? because the problem is that i have a "login" button hat the user clicks to login and its action proc checks if the username and passwrod is correct. the action proc is before the commands declaring the gui buttons and text fields in hte program. If the name and password are incorrect, i want to "loop" the whole process again, but i don't see any way to do this since the gui commands are after the action procedure. Also.. can you have loop exit when GUI.ProcessEvent end loop multiple times in your program? does there have to be some sort of order as to where you put it, or can you just have your whole program and stick that event loop at the very end? Here's the program:
|
Author: | Tony [ Sat Jan 10, 2004 5:59 pm ] |
Post subject: | |
well before you could only have a single exit when loop that was driving your whole interface... but now we have a tutorail on how to modify the GUI module code so that you can use exit when loop multiple times I think you would find that useful. |
Author: | kk [ Sat Jan 10, 2004 6:20 pm ] |
Post subject: | |
is there some way i could "loop" the action procedure and return the user back to the main program from the action procedure of any particular button? i saw that tutorial, but i'm handing this in - can the teacher's computer have the modified GUI thing.........? |
Author: | Tony [ Sat Jan 10, 2004 10:17 pm ] | ||
Post subject: | |||
well no... what you can do is just have all the GUI files are your files and link to another location... or just compile the program ether way, I'm not too sure of Turing's GUI working... I use VB instead 8) what you might have to do is to destory and recreate your forms in the loops... such as
|