"Jacky Cheung" <[EMAIL PROTECTED]> wrote: >I thought that we need to return handled = true whenever we have handled the >event properly, but I found that if I return true for frmCloseEvent, I need >to do FrmEraseForm or the form will not be erase. However, I don't need to >erase the form if I return false. Also for ctlRepeatEvent, it doesn't work >if I return true. >So when do I have to return true? In general, return true if you don't want the system to perform the default action for the event. Return false if you do. The PalmOS Reference usually documents the behavior. For instance: If you return true in response to a ctlRepeatEvent, it stops the ctlRepeatEvent loop. No further ctlRepeatEvents are sent. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
