Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the menu pad color programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00471562
Message ID:
00471728
Vues:
21
Hello Vlad

Thanks for your response. I dont think I explained the problem, Sorry.

I know about Skip, disable/enable popup prompts, define bar etc. But I need to change the color of the Menu Pad programmatically. The best example is as follows:

When VFP starts, its puts it menu up. (File, Edit, View etc)
Now how would I change the color of say the "File" pad AFTER the menu is up through a form/programmatically.

In my application, I open a form. once the form is open, I ADD some choices in the main menu to a Pad called "View" i.e. Customer transcations, Credit limit etc. I dont want to activate the Pad (i.e. drop the list down) but change the color of the "View" pad. This way the user knows that there are more options/choices in the "View" drop down menu. This would make it easier for new users of the app.

Is there any way to do this.

Thanks
Mohammed
www.imaginecorp.com/whatwedo.htm


>Hi!
>
>Look into the help file for DEFINE BAR command.
>
>First of all, you can define any colors for menu bars. BUT...
>
>The most common approach used by everyone to make user see that some option could not be used - is to disable menu item. You do not need colors at all, just use SKIP clause in DEFINE BAR command or use SET SKIP OF command to change enabled/disabled status of the bars in the menu.
>
>>Stuck at a problem and am running out of time. I have put in toooooo many
>>hours and my brain is NOT working. Hoping someone here will have a quick
>>answer
>>
>>In an application I am writing, I have a "View" Pad in my menu.
>>
>>When a Form is opened, the form includes some choices in the drop down popup
>>of this View Pad, needed only by the form.
>>
>>This is done by the "ActivateEvent" of the form with a "Push" and "Pop"
>>popup. followed by a DEFINE BAR mbar OF itsview PROMPT "\-" etc etc
>>
>>I would like to be able to change the color of the View Pad, when the form
>>opens. This way the user knows there are options that he can use. (visual
>>aid)
>>
>>Anybody knows how to do this, if this can even be done in VFP 6, is there a
>>windows call I can use
>>
>>Any and all suggestions would be greatly appreciated.
>>
>>Thanks
>>
>>Mohammed
>>www.imaginecorp.com/whatwedo.htm
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform