Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change picture in short-cut menu during runtime
Message
De
03/01/2002 09:52:30
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00600207
Message ID:
00600259
Vues:
18
>Is there a way to modify what image is displayed in the shortcut during run time? In our case we have a menu that pops up when the user right clicks, one of the menu options has an edit image beside it. If the item has been locked (completed) then we want to show a little padalock image instead. (Actually my boss does, I think disable is good enough).
>
>Thanks for any help
>
>Kirk

Hi,

You just need to re-define the BAR with the new PICTURE clause to specify the new Icon (i.e. run another DEFINE BAR command).

p.s. have a look at my object-oriented menu classes, which aim to make this sort of thing a little more straightforward. e.g.
_SCREEN.Menu.Shortcut.Icon = "c:\graphics\newicon.ico"
Menulib for VFP at http://www.hidb.com/menulib
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform