### Set LED Style

Example defining a Label as (kind of) LED with colors Red & Green.
Uses the CSSUtils Library.
Define the views Label (as LED) and Buttons (to set the Label Color)
Private led1 As Label
Private led2 As Label
Private btnGreen As Button
Private btnRed As Button
Button Events
`Sub btnRed_MouseClicked (EventData As MouseEvent)
SetLED(led1, fx.Colors.Red)
SetLED(led2, fx.Colors.Green)
End Sub`
`Sub btnGreen_MouseClicked (EventData As MouseEvent)
SetLED(led1, fx.Colors.Green)
SetLED(led2, fx.Colors.Red)
End Sub`
Set the Label Color. The label has a border of 2 and radius 15
`Sub SetLED(led As Label, clr As Paint)
CSSUtils.SetBorder(led, 2, fx.Colors.Black, 15)
CSSUtils.SetBackgroundColor(led, clr)
End Sub`

Changed: , Category: Label, File: T6C213M1551.htm, ID: 1551