Author Topic: Graphical Indicator with Transparent Backgroud Support  (Read 4383 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Graphical Indicator with Transparent Backgroud Support
« on: March 15, 2018, 11:48:20 AM »
This is a n updated control that will be in a future version, but I wanted to put it out there for some initial testing.

- Download the attached file
- In Solution Explorer, expand down AdvancedHMIControls
- Right click the PurchasedControls folder and select Add Existing
- Browse to the attached file
- Expand down the Controls folder
- Right click the GraphicalInidcator.vb and select View Code
- On line 7 , change the Inherits line to this
Code: [Select]
Inherits GraphicIndicatorBase
« Last Edit: March 15, 2018, 06:48:26 PM by Archie »

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: Graphical Indicator with Transparent Backgroud Support
« Reply #1 on: March 16, 2018, 02:09:51 PM »
Hey Archie, I'm not sure what the new control is supposed to do over the old one but I did notice that the entire area fills with the selected back color if either ValueSelect1 or 2 is set to true.   

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Graphical Indicator with Transparent Backgroud Support
« Reply #2 on: March 16, 2018, 02:39:57 PM »
Attached is another update.

When the Background is set to Transparent and the graphic has transparent content, such as PNGs, it should let you overlap Indicators.

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: Graphical Indicator with Transparent Backgroud Support
« Reply #3 on: June 14, 2018, 05:27:32 PM »
hello

can i make it to work for one address?

so graphic select 1 and  graphic select 2

for one plc address


Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Graphical Indicator with Transparent Backgroud Support
« Reply #4 on: June 15, 2018, 02:23:26 AM »
You can use the same address but graphic 2 will never show unless you use opposite states with NOT prefix.

The example could be address "00001" in the graphic select 1 and "NOT 00001" in the graphic select 2 (and vice versa).
« Last Edit: June 15, 2018, 02:11:26 PM by Godra »