Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: Gideon Perez
  Where is Gideon Perez?
 Surrey
 Canada
 Gideon Perez
 Tags
Subject: RE: Hiding or disabling the menu in a top-level form
Thread ID: 93970 Message ID: 94287 # Views: 24 # Ratings: 1
Version: Visual FoxPro 9 Category: Menus
Date: Wednesday, April 26, 2006 10:40:49 AM         
   


I think I've found the solution. It's also from you to Sweaty Broham. I just have to set the WindowType property of my child forms to modal. That's it.
>
> Thanks again.


Is that really a solution? Think about it. You call, or are called by, a client.
The info on that client is through some client form.

So you happily open that form, look up the client and then the client wants some information on a certain product.
You want to open the product form through the menu.... but it's not working, since the client form is modal thus locking up the menu.

So what you can do is use the skip for option in the menu.

What I did is as follows:
I created a small prg called FormIsThereAlready
It looks whether any forms are on _screen and then skips through them to compare the name given in the skip for option in the menu with names of the available forms.

In the menu I have set the skip for option to FormIsAvailable("frmCloseTest")
That is the form.name property! So be sure not to have that the same in two different forms.


The option will be grayed out when the form runs, and is available when the form is closed.
It's all in this zipfile

Have fun.

Boudewijn LutgeĀ®ink
My Blog is here


COMPLETE THREAD

Hiding or disabling the menu in a top-level form Posted by Gideon Perez @ 4/22/2006 2:48:07 AM
RE: Hiding or disabling the menu in a top-level form Posted by Boudewijn Lutgerink @ 4/25/2006 7:40:40 AM
RE: Hiding or disabling the menu in a top-level form Posted by Gideon Perez @ 4/25/2006 11:11:15 PM
RE: Hiding or disabling the menu in a top-level form Posted by Boudewijn Lutgerink @ 4/26/2006 10:40:49 AM
RE: Hiding or disabling the menu in a top-level form Posted by Gideon Perez @ 4/27/2006 9:10:01 PM