Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performance question on GDI+ classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Performance question on GDI+ classes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01468355
Message ID:
01468355
Vues:
190
I am currently trying out Bernard’s shiny glass VFP buttons which utilize these classes. The form that will contain these buttons will also contain a background picture under the buttons. If I render these buttons using the default render mode of zero (memory BMP), then the surrounding areas of the button which accommodate the shadow show up and cover the background image. So, I changed the surrounding colors to be .Color.Transparent and tried render modes of 4 and 5 (memory/file PNG). This got the transparency to work perfectly, however the performance of the buttons as they get rendered (i.e. a new Draw() during MouseEnter and MouseLeave) is extremely slow.

Would anyone have any ideas as to how to get my performance back? The only thing I could think of right now is to save multiple PNGs to represent the button’s different states (default, hovered, and clicked) and just those for the events on a standard image control. However, I'd prefer just using the controls as designed with better performance.

Any assistance would be greatly appreciated.
Jon Rosenbaum
Devcon Drummer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform