Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I replace the VFP icon on the form title bar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00418733
Message ID:
00419657
Vues:
33
>"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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform