Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hidden MessageBox
Message
 
À
28/07/1997 04:22:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041174
Message ID:
00041922
Vues:
51
>
>George:
>
>Thanks for kicking in on this. I'm afraid I don't know enough about what you are talking about to even try it. What is the syntax for adding these numbers into my call to MESSAGEBOX()? How can I change the modality once I have added these numbers? Sorry to be so ignorant . . . .
>
>TIA.
>John

John,

Don't apologize, we've all been there.

Somewhere in your code, in setting the button, icon, etc., I suspect that you've got some code that looks something like:

* Yes/No buttons, Stop icon, Second button has the focus
lnDialogBoxType = 4 + 16 + 256

Either that or you're passing the values directly.

To change the modality level, simply change the above to:

* Yes/No buttons, Stop icon, Second button has the focus, Task modal
lnDialogBoxType = 4 + 16 + 256 + 4096

This should bring it to the foreground.

Unfortunately, this functionality wasn't documented in the help file. I first found out about it from using the MsgBox() function in FOXTOOLS.FLL, and reading the Win 3.1 SDK. Both MsgBox() in FOXTOOLS and MESSAGEBOX() in VFP are really nothing more than a call to the MESSAGEBOX() function in the Windows API. The modality level (or scope) is mentioned in the SDK documentation.

Please let me know if this solves your problem.

Good Luck,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform