Hi!
I would like to know how to make a toggle button with a TsButton which would become:
lighted up only if On
else
always normal state not lighted up Off.
See attached image.
Here's what I was able to do so far:
Code:
procedure TEq.OnOffbutClick(Sender: TObject);
begin
if OnOffbut.Caption = 'Off' then
begin
OnOffbut.Caption := 'On';
// lighted up
// I know it should be something like: EqOnOffbut.SkinData.SkinManager.???
end
else
begin
OnOffbut.Caption := 'Off';
// not lighted up
end;
end;
Thank you for your answers!