>"unless the icons is set in the property sheet"? It is still overwritten by the setIcon method, there is no check to see if the user set it in the property sheet (vmp4) ... I like the subclass setIcon idear. Thanks, I was too lazy to go search around to see when setIcon was being called so I just put it in the Refresh method. What danger is there in setting the icon in the refresh method?
>L8r,
>George.
Hey George,
The only time VMP overwrites the Icon property value set in the property sheet is when the form is modal. According to The Windows Interface Guidelines for Software Design, modal forms should not have icons. Drew inserted a blurb about this so you would know why it's happening. Subclassing SetIcon would take care of this "feature" as well.
As for setting it everytime in the Refresh method, there is no reason you couldn't do it. It won't break anything. However, Refresh is one of the most called methods in VFP/VMP, because of this adding any overhead/extra processing is not somehting I would normally do.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao