Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Bar runtime caption and check mark change.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00640085
Message ID:
00640859
Vues:
19
Igor,

>1.I'd like, if it possible, to change one of the Main Menu bar's caption in the runtime. I was able to change the caption for the menu bar in code by referencing goApp but I couldn't change it on the menu unless I exit application completely and enter again. Then it changed on the menu. Another words, if I enter SET STEP ON right after line of code that changing Menu bar caption I can see it has been changed but on the Main Mane it remains the same until I exit apps. Hope it make sense. I’ve tried to refresh
>the menu, didn't work.

Try calling the menu bar's Hide(), then Show() methods. This is the methodology used by CBar.llocalize_assign() to dynamically change the menu bar text to a different language.

>2.Is there a way to put a check mark on the Main Menu on the side of the bar that represents form name that is running and remove it when the form closed?

You can use VFP's SET MARK OF BAR command to do this...Check out the Framework's CBar.Click() method for an example of how you might do this.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform