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
De
22/09/2000 10:08:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00418733
Message ID:
00419698
Vues:
34
>Dangerous eh? VMP4 .setIcon() sets to (1) the applications icon or (2) a blank icon. If I don't want one of these 2 icons that I set it my self. Where is the danger in that? If I was doing some type of blind data manipulation then I think it would be different.

I only meant dangerous in the sense that you applied a band-aid fix to something without knowing why it was working the way that it does. If you had known that VMP uses the SetIcon method, you could have simply overridden that method in the form instance, but instead you put code in a method that could run any number of times during the form's life, potentially incurring an unnecessary performance hit.

I don't mean to sound harsh- sometimes methods like you used seem like the easiest way out and seem therefore to make the most sense. I've used them myself, I just wanted to caution against recommending blind fixes to others.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform