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
 
 
À
21/09/2000 13:30:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00418733
Message ID:
00419646
Vues:
27
>>I'm using Visual MaxFrame Professional 4. When I set Icons using property sheet or by setting Thisform.Icon in the init method, then the icon was being over-written. No biggie, I just set the icon in the refresh method to make sure I had proper one.
>
>Solutions like this are dangerous. You worked around the problem without knowing the cause. Chances are, VMP has a set method to use to set the icon, and by using your own method instead you are stepping on VMP's toes.
>
>JMHO-

Erik,
You are absolutely correct. There is a SetIcon method in FrmBase that is called from the Show method when the form is launched. Since Show is done after Init, anything you set in Init will get overwritten.

The default is to have one icon specified in the APPINFO table and it is used for all forms unless an icon is set in the property sheet. If you want to change this behavior, subclass SetIcon and do what you want.
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