• Welcome to Theos PowerBasic Museum 2017.

Winlift Buttons

Started by Ron Allen, April 07, 2013, 07:09:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ron Allen

Hi,
Does anyone have and example of how to change a Winlift custom button on the fly?
As when the user clicks it, the image would change from checked to unchecked.
thank you in advance for any help.
Ron

Patrice Terrier

Create two buttons using the same size and coordinates, and HIDE/SHOW them in sequence, just like play/pause button.
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Ron Allen

Thank you Sir, for the fine products and help!

Patrice Terrier

If you want to change digits, then you could use a customed TrueType font (like Windings), and use skSetLabelFont to change the text on the fly.

But in case of image button, better to use the show/hide technic, because check/uncheck is like play/pause.
And usually better to have distinct WM_COMMAND control ID, instead of the same one...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com