"Thomas Fields" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How on earth do i go about putting dialog boxes into my palm application.
>
> I need it to handle buttons (OK, cancel) and also take input from the user
> from the pen device.

This is one way we're doing it. It seems to work ok.
You can also do it by using FrmSetHandler() and FrmDoDialog().  In this case
I think, those 2 calls would replace the FrmSetActiveForm(), run_loop() and
FrmEraseForm() below. Not sure, but it's something like that.

Matt


 // store current state
 oldForm = FrmGetActiveForm();
 FrmSaveActiveState( &state );

 // init and draw form
 thisForm = FrmInitForm( MyDialogForm );
 FrmDrawForm( thisForm );
 // set active
 FrmSetActiveForm( thisForm );

 // go to event loop
 success = run_loop();

 // erase current form
 FrmEraseForm( thisForm );

 // reset old form as active and restore state
 FrmSetActiveForm( oldForm );
 FrmRestoreActiveState( &state );

 // delete this form
 FrmDeleteForm( thisForm );



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

Reply via email to