Yes, I use the FrmDoDialog/FrmSetEventHandler combo to do this. For
instance, when creating a new database, I use this method to ask for a DB
name and check it and ask again if it's invalid/duplicate.
Good luck,
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293
>Feels like Friday not Monday.
>
>Actually, now that I look at this, I asked for something that I did not
>need help with. Got my subjects mixed up. Thanks to all for quick
>responses to my other question but...
>
>What I meant to ask for was not a Are Sure Dialog but a prompting dialog
>that returns a single field value. Maybe FrmDoDialog will work. I have
>several functions that I wish to pause and wait for parameter input.
>
>So, I need a dialog to do that. I was using FrmPopupForm() but that
>does not pause and wait. Code after FrmPopupForm() is executed before
>form is closed.
>
>I guess FrmDoDialog might work. I would have thought that any form that
>was a Modal form would wait but I guess not.
>
>
>On Mon, 24 May 1999, Alan Pinstein wrote:
>
>> 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
>> >----------------------------------------------------
>>
>>
>>
>
>----------------------------------------------------
>Shoot-to-Win
>
>Protect the 2nd Amendment
>----------------------------------------------------