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
----------------------------------------------------

Reply via email to