Announcements and Chatter
Extending gradient objects with gdi to show a picture instead of a gradient
Gravatar is a globally recognized avatar based on your email address. Extending gradient objects with gdi to show a picture instead of a gradient
  Alejandro A Sosa
  All
  Nov 11, 2017 @ 08:00am

Hi,

I've been looking how to make VFP command buttons prettier.

In http://vfpimaging.blogspot.com/2006/07/gradient-objects-with-gdi-revisited_48.html there is an interesting technique that creates a composite image with the label and icon specified in the command button plus a gradient background. It then stretches the new image on top of the button for a combined effect. Very clever.

I'd like to modify the class so that instead of a gradient background it shows the picture of a beautiful button. Any suggestions?

Thank you,

Alex

Gravatar is a globally recognized avatar based on your email address. re: Extending gradient objects with gdi to show a picture instead of a gradient
  Tuvia Vinitsky
  Alejandro A Sosa
  Dec 1, 2017 @ 07:01am

I am not sure what you mean exactly; we use gdi gradiant buttons extensively in our desktop apps. Can you post an image or sketch of what you have in mind?

© 1996-2024