Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help with disabling and enabling menu items!
Message
From
02/12/1997 12:45:04
 
 
To
02/12/1997 12:42:59
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00063319
Message ID:
00063343
Views:
62
>>>>>I'll give a very simple example to show what I would like to do:
>>>>>Menu name: 'super1'
>>>>>Menu Pad: 'cu' ----> opens form 'dataentry'
>>>>>
>>>>>I want menu pad 'cu' to be disabled while form dataentry is being used.
>>>>>
>>>>>I assume that I have to enter some code in the "skip for" box which tests to see if form 'dataentry' is being used. Am I on the right track here? If so, how do I get the menu to determine that form 'dataentry' is indeed being used? If I'm out in right field with this, do you have any other suggestions?
>>>>>
>>>>>Any help would be appreciated.
>>>>>
>>>>>Thanks, AL
>>>>
>>>>You can put e.g. oApp.skipcupad into 'Skip' clause in Menu Designer, and toggle oApp.skipcupad=.t./.f. each time you load/unload the form.
>>>
>>>Thanks ED, I'll give this a try. This is probably a more flexible solution for a complex menu than using 'WEXIST"
>>>
>>>AL
>>
>>Excellent suggestion Ed.
>>I've used a lot of
>>DO FORM NAME x then place x in the menu and tested for its existence but have run in to some problems. Better just to set the variable within the toolbar.
>
>Actually, I have toolbar methods SetToolbarMenu,RestoreToolbarMenu when start/finish a form.

So when are you going to start giving classes, Ed. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform