Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have a form that disables everything else?
Message
From
21/10/2000 02:37:16
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00432090
Message ID:
00432441
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform