Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox hidden
Message
De
07/06/2019 05:05:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/06/2019 03:05:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01624326
Message ID:
01668953
Vues:
69
>Hi Fabio!
>
>Did you find a Solution?
>We have the Same behavior sometimes...
>
>>We have this problem.
>>When the program executes a MessageBox,
>>the message window does not appear in the foreground.
>>By pressing ALT in some cases it appears, but very often
>>we have to try several times.
>>
>>Does anyone have a solution?

Don't use messagebox. It's a foreign body, a form outside the app, the whole app loses focus, and besides it's so limited - you don't even get to define the buttons, you get to choose a combination of preset buttons. And the return values make no sense, why would 6 mean "yes"? And now with M$ changing its mind several times about new app windows taking focus or not, you can't even rely on messagebox always showing up.

Which is why I wrote alert.prg (https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=9445), or why Frederico Tomazetti adapted it into alert2: https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=16185.

BTW, later this year that piece of code will be 25 years old.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform