Computer Science Canada

Creating Widgets in Classes

Author:  tum_twish [ Wed May 28, 2003 10:55 am ]
Post subject:  Creating Widgets in Classes

When I try to create a textfield in a class, the textfield does not respond to keystrokes because theres no GUI.ProcessEvent loop. But if i put that loop in the class method, the class will continuously run until I say GUI.Quit. How can I get around the problem?

Author:  Tony [ Wed May 28, 2003 11:10 am ]
Post subject: 

that depends on your program's structure...

you could run the loop with GUI.ProcessEvent externally (outside the class)... Or you can run it inside the class itself untill you're done with the textbox..

code:

loop
GUI.ProcessEvent
exit when timeToExit = true
end loop


: