Author Topic: MultiState Indicator based on Value  (Read 1980 times)

rbelknap

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
MultiState Indicator based on Value
« on: November 05, 2015, 09:22:57 AM »
Archie,

You were a great help to me for the pilot light additions.

Now I would like to create a control, similar to the Basicindicator, but that could change the color and message based on a value property.

The MultiStateSelector has a property called states to set it up.  I've looked on the web, but can't seem to locate how I would go about implementing it on a new control.

My current need is for 5 "states" something like the following.

Value     Color     Message
0            Grey      Pending
1            Cyan     Testing
2            Green    Pass
3            Red       Fail
4            Yellow   Abort

It feels like it should be fairly simple, but I'm sure there is a lot more too it.

Thanks for any help you can provide.

Rich




Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MultiState Indicator based on Value
« Reply #1 on: November 05, 2015, 09:43:43 AM »
The MessageDisplayByValue may be able to do what you want

rbelknap

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: MultiState Indicator based on Value
« Reply #2 on: November 05, 2015, 09:54:36 AM »
Just when I thought I had looked through all of the controls.

That will do what I need.

Thanks