Text of TMSFMXSlider

Hallo,

is there a way to change or disable the ON/OFF Text of TMSFMXSlider?

Best

- Sascha -

Hi, 


Yes with the following code you can:

procedure TForm1.TMSFMXSlider1ApplyStyleLookup(Sender: TObject);
begin
  (TMSFMXSlider1.GetOnElement.FindStyleResource('ontextelement') as TText).Text := '1';
  (TMSFMXSlider1.GetOffElement.FindStyleResource('offtextelement') as TText).Text := '0';
end;

Kind Regards,
Pieter

Perfect. Many thanks

Sascha