Interesting what is this button's purpose? You have no opportunity to handle
any events coming while you are in FrmDoDialog. If you want this button to
act somehow different then the default in FrmDoDialog (closing the dialog)
you should not use this API. You can use FrmPopupForm or write your own
DoDialog function, which will let you handle the events.
However if this button is just a place holder for later versions, you can
replace it with other types of buttons (repeating). FrmDoDialog ends only
when standard button is pushed.
Georgi
WebVisia
----- Original Message -----
From: "Mike McCollister" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 5:14 PM
Subject: FrmDoDialog to not exit with a particular button
> 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?
>
> Thanks,
>
> Mike McCollister
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards�
> http://movies.yahoo.com/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/