Powerbasic Museum 2020-B

IT-Consultant: Patrice Terrier => WinLIFT => Topic started by: Ron Allen on April 07, 2013, 07:09:11 PM

Title: Winlift Buttons
Post by: Ron Allen on April 07, 2013, 07:09:11 PM
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
Title: Re: Winlift Buttons
Post by: Patrice Terrier on April 07, 2013, 07:51:18 PM
Create two buttons using the same size and coordinates, and HIDE/SHOW them in sequence, just like play/pause button.
Title: Re: Winlift Buttons
Post by: Ron Allen on April 07, 2013, 08:01:34 PM
Thank you Sir, for the fine products and help!
Title: Re: Winlift Buttons
Post by: Patrice Terrier on April 07, 2013, 09:15:23 PM
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...