yeah Steve... that was what I meant, coz I am using FrmAlert with the 3 said
buttons (Yes, No and Cancel). My question here really is how can I capture
which button was pressed... I tried something like this but obviously I'm
not getting it right :

                if (FrmAlert(SaveChangeAlert)==SaveChangeYes) {
                        Save_OnClick();
                        FrmAlert(SaveAlert);
                        FrmPopupForm(MainForm);
                }
                else if (SaveChangeNo) {
                        .................
                }
                else if(SaveChangeCancel) {
                        ................
                }

        I just need to know how to capture the button id from the alert form.
Thank you.

regards,
Edwin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steve
Mann
Sent: Tuesday, July 17, 2001 10:49 PM
To: Palm Developer Forum
Subject: Re: Handling buttons in an alert form


>        I would like to know whether it's possible to handle buttons in an
>alert form (i.e. I have an alert that has Yes, No and Cancel button).

Let me back up a bit--you can do that if you create and display the
alert using FrmDoDialog. I don't think you can do anything except get
back the button that was pressed to dismiss the dialog if you use
FrmAlert or FrmCustomAlert.

Regards,
Steve Mann
--
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

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


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

Reply via email to