In article <81868@palm-dev-forum>, [EMAIL PROTECTED] says...
>
> Hi,
>
> I am using FrmDoDialog to bring up another dialog. It
> has three buttons on it, "OK", "Cancel" and "Default".
> Well, I want to exit the dialog of the "OK" or
> "Cancel" button is pressed but I don't want to exit
> the form if the "Default" button is pressed. I
> figured out a way to do this with the following code:
>
> do {
> } while(FrmDoDialog(pForm) == ActDefaultButton);
>
> However, the dialog will flash as it is erased and
> brought back up again. Is there something I can do
> when responding to the ActDefaultButton to prevent it
> from going away?
Just setup an event handler for this dialog, intercept the default
button, and return true -- the close-on-button-press code won't get run
if the handler says it handled the event.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/