Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox not modal (bug or Design)
Message
 
À
16/04/2002 01:28:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00645035
Message ID:
00645395
Vues:
20
>Hi,
>PMFJI,
>
>4096 is declared in Foxpro.h as "MB_SYSTEMMODAL", 0 as "MB_APPLMODAL" (what means every MESSAGEBOX needs to be modal to the app).
>
>Actualy 4096 lost its systemmodal. In the moment I'm writing this a messagebox with value 4096 added is active, VFP 7.0 is blocked but nothing else.
>
>So we can not set a messagebox modal to the system, what ever this may be good for.
>
>Finaly this seems to be a bug.
>
Agnes,

Under Win32 there is no such thing as an app providing system wide modality. Under Win16 there was. The function is a call to the API function by the same name. In order to properly process the timeout, however, the caller must not be blocked from evaluating the timeout. If it is made modal to the application, it will be blocked.

Bottom line is you either add the MB_SYSTEMMODAL value and put up with the fact that the window will be always on top if you need the timeout clause, or hope that the user doesn't click anywhere other than the window.

In my judgement, this isn't something that can be dealt with otherwise, so I wouldn't look for a "fix" at anytime in the future.
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