Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change picture in short-cut menu during runtime
Message
From
03/01/2002 09:52:30
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00600207
Message ID:
00600259
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform