Um, this is actually pretty easy on Palm.... we do it with FrmCusomAlert().
If you need a dialog with more sophisticated UI, then use FrmDoDialog() and
set your own event handler.
I am sure there are samples in the ROM example projects.
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293
>I have a question about using a single "Are You Sure?" type
>dialog for multiple procedures.
>
>The problem is that because of the event driven nature of the Palm, it is
>difficult to program a function to do a particular task and, before
>deciding whether to proceed, display a dialog for decision.
>
>The problem is that the code after the FrmPopupDialog() gets executed
>before the dialog is closed. Defeats the purpose of the dialog.
>
>Is there a way around this? I would like to have one such reusable
>dialog rather than a bunch of seperate ones. Dialog should offer OK or
>Cancel.
>
>I have tried to place the code relevant to the decision, in the OK button
>event of the dialog but then the code is specific to a particular
>function. I have also thought about checking the parent form but that
>seems a little clumsy.
>
>How do others implement a single "Are you sure?" dialog that will work for
>multiple functions?
>
>
>
>----------------------------------------------------
>Shoot-to-Win
>
>Protect the 2nd Amendment
>----------------------------------------------------