Author Topic: Add functions to existing buttons  (Read 1474 times)

Holmux

  • Newbie
  • *
  • Posts: 34
    • View Profile
Add functions to existing buttons
« on: March 22, 2020, 06:33:27 AM »
Hi
I hope everyone is safe and in good health.

I hope I can get a little help with a task
I generate a array of basic buttons on a page, when one of the buttons is pushed first time I set an "X" into the text, if the same button is pushed again I highlight it, and if pushed again I clear both.
I am using the valueToWrite option, which simplifies my PLC code, using this value as a pointer speeds up my reaction time, Everything is working great :)

But now my customer would like a third option, like first push "X", second push "Orange", third push "Red", fourth push clear the button, I was thinking Basic Indicator would do the job, but  am missing the ValueToWrite option, would that be possible to add to the basic indicator ?
Or is there a different option i can use ?

/Holmux

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Add functions to existing buttons
« Reply #1 on: March 22, 2020, 06:21:56 PM »
Try using the attached modified BasicIndicator control.


Holmux

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Add functions to existing buttons
« Reply #2 on: March 23, 2020, 07:01:08 PM »
Hi Godra

Thanks, just what I was looking for :)

Regards
/Holmux