Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with disabling and enabling menu items!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00063319
Message ID:
00063369
Vues:
52
>>>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.
>
>
>Ed, This approach works great. Thanks for the tip. I have another question, if you don't mind. One of the menu pads is devoted to printing reports. For each report, I give the user the option to print to printer or screen. When I run the compiled exe on our network, the menu works fine except for this:
>
>After the user prints a report to the screen, all of the menu pads are enabled (as they should be), and when I select a menu pad, the corresponding sub-menu appears. The problem is that nothing happens when I select one of the sub-menu pads. This does not happen when I run the app on my C: drive. Any ideas?
>
>Thanks, AL

What code is under this pad? And it will be better if you put details here as beginning of new thread. It will be helpful for you, first of all, because many UT experts will get opportunity to contribute efficiently.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform