Author Topic: BasicLabel Highlight forecolor  (Read 1765 times)

Morgan

  • Newbie
  • *
  • Posts: 44
    • View Profile
BasicLabel Highlight forecolor
« on: June 20, 2016, 09:36:43 AM »
In future releases to would be nice if a Highlight forecolor property were included.  Also, it would be nice if the Highlighting worked for boolean values also.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: BasicLabel Highlight forecolor
« Reply #1 on: June 20, 2016, 02:02:44 PM »
Will post an updated BasicLabel with these features later today.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: BasicLabel Highlight forecolor
« Reply #2 on: June 20, 2016, 05:04:12 PM »
- Download the attached file
- Open your project in Visual Studio
- In Solution Explorer, expand down the AdvancedHMIControls project
- Right click the Controls folder and select Add Existing Item
- Browse to the file you downloaded
- It will ask if you want to replace the existing, select Yes
- Build your solution

You should now have the requested features

Morgan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: BasicLabel Highlight forecolor
« Reply #3 on: June 21, 2016, 11:38:01 AM »
Thanks for the quick update. 
Two minor observations:
1. The Prefix/Suffix do not work when "Display as time" is selected.
2. Format(Math.Floor(Minutes), "00")) would have been better as Math.Floor(Minutes).ToString("00").  This eliminates the need for the Microsoft.Visualbasic reference.
« Last Edit: June 21, 2016, 11:55:46 AM by Morgan »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: BasicLabel Highlight forecolor
« Reply #4 on: June 21, 2016, 10:16:17 PM »
An updated version. This one is based on seconds instead of hours. The ValueScaleFactor can be used to change that.
« Last Edit: June 21, 2016, 10:18:28 PM by Archie »