Del Ventruella wrote:
Tonight I'll be looking for the:Button1_click() { } code for the foreseeable future. The About dialog I added in PILRIC automatically created such a button, which eliminates the form. I can't seem to find the code that actually implements the button click.
If you open/run a form with FrmDoDialog(), then all button press events get turned into some kind of event that causes the form to close. Very handy if all you have is an OK button. If you want control of the buttons, just do FrmSetEventHandler() after FrmInitForm() but before FrmDoDialog(). You use FrmSetEventHandler() to cause the system to send events to your own callback function. When your callback gets a button even (a ctlSelectEvent, actually), if it returns false (to indicate it didn't handle the event), then the automatic form close behavior still happens. But if it returns true, then the automatic form close behavior doesn't happen, because the system sees that you have handled the button press yourself. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
