Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal to modeless at a runtime
Message
De
01/06/2015 11:54:53
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
31/05/2015 05:56:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01620405
Message ID:
01620438
Vues:
67
>Is there a way to switch window type property at a runtime from modal to modeless and oposit. I want to forbid user navigate to other open window in vfp app when i start some action till job is done. Maybe some other solution?
>
>Thanks in advance.
WITH This
   IF .Visible    && Can't switch modality on a visible form. 
      _SCREEN.LockScreen = .T.
      .LockScreen = .T.
      .Visible = .F.
      .Show(1)   && Show modal.
   ELSE
      .Show(1)   && Show modal.
   ENDIF   
   * If form has ShowWindow = 2, you need to issue a READEVENTS to cause a wait state.
   IF .ShowWindow = 2
      READ EVENTS   
   ENDIF
ENDWITH
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform