Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent window from been deactivated?
Message
From
06/07/1997 22:38:23
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, United States
 
 
To
06/07/1997 03:51:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00038701
Message ID:
00038750
Views:
38
>Hi Barbara!
>
>I want prevent user to activate another window by mouse click. But modal
>window doesn't reflect my needs. I'll try to explain situation. Just
>imagine that my app have toplevel form as main window. On this window I
>place all necessary grids for displaying information which user want. This
>main form have a toolbar (New, Edit etc buttons). This toolbar is generic
>for all lookup forms with grids, when you press New button on toolbar then
>I call appropriate form for editing/adding records. Modal form work fine if
>I call this form for editing records, but when I call form for view my
>lookup table user shouldn't be able to switch to another window and should
>be able click on toolbar. In case of modal form it isn't possible ;( May
>be someone here know how to do this stuff?
>BTW, why do you confused? ;) I'm sorry in advance if my English not so
>clear fot understand.
>
>Have a happy day
>Vladimir Shevchenko
>
>> answer is correct. Or are you trying to keep people from clicking on
>> another window? In this case, making the window MODAL would be better.
>> I'm confused.

Vladimir - What I've done in a similar situation is to set the Enabled property of all forms, except the one I want the user to use, to .F. Also, set the AlwaysOnTop property of the form you want the user to use to .T. This will simulate a modal form, but it should allow the toolbar to remain active. So, in the Init() or Activate() event of the form you use to view the lookup table, in your case, set the Enabled property of all other forms to .F. Then in the Destroy() event of the same form, set the Enabled property of all other forms back to .T. HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform