Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want MESSAGEBOX to time out.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00111994
Message ID:
00113114
Vues:
26
Creating you own messagebox-type class is more flexible.

Also, if the user highlighted the "other than default" answer in the messagebox, is that what you want to be as the "forced" answer? I find this a little dangerous.

I have a question: Why would you want a messagebox to time-out?

Joe


>Hi Robert,
>
>I would rather that you stick with the default MessageBoxes, than creating your own forms. You could achieve the functionality you are looking for by using a timer.
>
>Here is an example how you can actieve this. I use a timer and a commandbutton on the form...
>
>thisform.MyTimer.Interval = 2000
>
>*-- Form.MyTimer.Timer()
>KEYBOARD '{ENTER}'
>
>*-- Form.cmdTest.Click()
>thisform.MyTimer.Enabled = .T.
>=MessageBox('Test')
>thisform.MyTimer.Enabled = .F.
>
>
>You can extend this by writing a global function for displaying messages which would create a timer for each message and then destroy it or control its enabling/disabling.
>
>>I want to display to the user a MESSAGEBOX with
>>YES and NO. I want this MESSAGEBOX to time out.
>>any ideas?
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform