Recent

Author Topic: [SOLVED] RXSwitch  (Read 515 times)

Petrus Vorster

  • Full Member
  • ***
  • Posts: 224
[SOLVED] RXSwitch
« on: December 11, 2025, 08:55:36 am »
Hi All.
The RX components have a few handy tools, but information is quite scarce.

There is a near little on-off switch in Horizontal mode that looks slim and neat and the event for on/off is simple.
Perhaps someone know how you can read and set the Switch state on those?

There is no "Clicked" or easily identifiable property what i can see to set or read status like e.g. a Checkbox.

I know its an old Component set, if there is something similar and newer available as package that would work as well.. Its merely for aesthetics mainly.

Regards, Peter 
« Last Edit: December 11, 2025, 10:35:27 am by Petrus Vorster »

Zvoni

  • Hero Member
  • *****
  • Posts: 3269
Re: RXSwitch
« Reply #1 on: December 11, 2025, 09:12:02 am »
EyeCandy-Controls-Package?
It has a "Switch"-Control, which has a "State"-property
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Petrus Vorster

  • Full Member
  • ***
  • Posts: 224
Re: RXSwitch
« Reply #2 on: December 11, 2025, 09:18:59 am »
Yes, I think I should change to Eye Candy.

Thanks mate.

-Peter

paweld

  • Hero Member
  • *****
  • Posts: 1568
Re: RXSwitch
« Reply #3 on: December 11, 2025, 09:19:52 am »
has the StateOn property
Code: Pascal  [Select][+][-]
  1.   if RxSwitch1.StateOn = sw_off then
  2.     ShowMessage('State OFF')
  3.   else
  4.     ShowMessage('State ON');
Best regards / Pozdrawiam
paweld

Petrus Vorster

  • Full Member
  • ***
  • Posts: 224
Re: RXSwitch
« Reply #4 on: December 11, 2025, 10:35:00 am »
Thank You.
-Just moved to eye-candy.  :'(

 

TinyPortal © 2005-2018