Hi Michael,
To do this, I created a unit which showed a form, and maintained its own
Event Loop.
The function I called returned the button pressed, I gave it information
regarding the text to display, the captions for the buttons etc etc etc.
Because the function handled the events, it only returned when it was
complete, making use very easy.
> -----Original Message-----
> From: Michael Murdock [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, 13 July 2000 08:30
> To: Palm Developer Forum
> Subject: How to make form go away after 10 seconds?
>
> I have a question about a Palm app that I have
> been building using CodeWarrior.
>
> I have a form with some buttons on it. To display
> it, my application calls FrmInitForm(myForm) to
> load the form into memory, and then it calls
> FrmDoDialog(myForm) to display the form and handle
> all the user events, while the form is displayed.
>
> When the user taps OK on my form, FrmDoDialog()
> restores the display to its appearance before
> the form was displayed and returns control to my
> application.
>
> Here's my problem: I want the form to sit there for
> about 10 seconds. And then, if the user has not
> tapped the OK button, I want the form to disappear
> and have control returned to my application.
>
> I know how to use the TimGetSeconds()function. But
> that doesn't help. Because once I call FrmDoDialog()
> my app no longer has control.
>
> Here's my question: Is there an easy way to accomplish
> what I am trying to do? I like how FrmDoDialog()
> handles the button press events. And frankly, I
> don't think I know how process button events if I use
> something like FrmDrawForm(myForm). But I suspect
> this is what needs to be done. Any Suggestions?
>
> Thanks!
>
> -Michael.
>
>
>
>
>
>
> --
> 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/