Tony Janke wrote:

What is actually happening when you say "handled = true"? Sometimes I get "Form already loaded" issues if I use it incorrectly. My latest issue involves setting a global variable in my closeEvent. If I use handled = true, it works OK the first time though, but the next time I come to this form, I get the error that the form was already loaded.


When you return with a value of "true", you are basically telling the system that you have fully handled the event, and that the system must not do any of its own processing to handle it. By returning "true" you can do things like block penDown and keyDown events from getting to the system. You can also block such things as SysHandleEvent(), MenuHandleEvent() or FrmDispatchEvent() from handling their events, and it sounds like this is what might be happening. You really only return true when you actually handle the event in your code, and the default return value should always be "false", in my experience. Bob

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to