Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have a form that disables everything else?
Message
De
21/10/2000 02:37:16
 
 
À
20/10/2000 22:33:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00432090
Message ID:
00432441
Vues:
18
If I'm understanding what you want to do, I think it can be achived by a modal Form, and in the Init of the Form:
PUBLIC lSomeVariable = .T.
DO MENU <Dsabled Menu> && With a Skip For lSomeVariable = .T. on every menu pad.
Be sure to reset the Menu when the Form is released.

Dave



>>Hi,
>>
>>I want to do something similar to the messagebox function, i.e. having a top-level form that's the only active component in my application. I don't want any menus or any forms to be activated or enabled. In fact, if the user clicks anywhere other than in the current active form, I want VFP to "beep" (thus behaving exactely like a messagebox).
>>
>
>Global event handlers are not currently hookable from VFP alone; you need code that operates outside the VFP process, a capability not directly supported by VFP - the reaon that OKLs are only processed in the VFP app. You can write C code, and possibly VB code, to do this, or investigate the Zero Administration Kit, which can limit the user's access to some of the standard Windows tools. The 'system modal' behavior is not now supported.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform