>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