Make sure that you define HandleEvent for every form you have.
This what i do usually:
static Boolean FormBHandleEvent( EventPtr event )
{
FormPtr form; // A pointer to our form structure
// Get our form pointer
form = FrmGetActiveForm();
// Parse events
switch( event->eType )
{
//Form open event
case frmOpenEvent:
{
FrmDrawForm( form );
}
break;
case ctlSelectEvent:
{
switch(event->data.ctlSelect.controlID)
{
case FormBOkButton:
{
FrmPopupForm( FormCForm );
return( true );
}
break;
case FormBCancelButton:
{
FrmReturnToForm(FormAForm );
return( true );
}
break;
}
}
}
*hope that helps.
Regards,
Paul
Dear all,
I have many problems in handle more than one form, so I have create a simple
multi form program to test about it. Here is my scenario:
I have 3 from and each have 2 buttons to switch to another form, each form
has it own event handler.
But the result is except the main form work, the second form and the third
from only display the button but cannot receive the user event
"ctlSelectEvent".
The code has been unloaded here www.acad.polyu.edu.hk/~97137555d , which is
written by CW R7, can anyone help me to solve this problem and send me back
the debugged code? Thanks a lot! [EMAIL PROTECTED]
Cheers,
Oscar
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/