AdvancedHMI Software

General Category => Additional Components => Topic started by: Archie on March 15, 2018, 11:48:20 AM

Title: Graphical Indicator with Transparent Backgroud Support
Post by: Archie 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
Title: Re: Graphical Indicator with Transparent Backgroud Support
Post by: MrPike 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.   
Title: Re: Graphical Indicator with Transparent Backgroud Support
Post by: Archie 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.
Title: Re: Graphical Indicator with Transparent Backgroud Support
Post by: oqapsking 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

Title: Re: Graphical Indicator with Transparent Backgroud Support
Post by: Godra 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).