AdvancedHMI Software

General Category => Support Questions => Topic started by: boldive on October 04, 2018, 06:49:38 PM

Title: Properties of CircularProgressBar component
Post by: boldive on October 04, 2018, 06:49:38 PM
Hello!

How to change font, color and position of Value and ValueSuffix elements?

To let PLC change Minimum and Maximum value I use
Code: [Select]
CircularProgressBar1.Minimum = EthernetIPforCLXCom1.Read("PLC_Tag1")
CircularProgressBar1.Maximum = EthernetIPforCLXCom1.Read("PLC_Tag2")


It works fine. However, if no connection to PLC then Visual Studio generates an error "Exception Unhandled" (No response from PLC).

Any ideas how to handle this error? It is hard to work on design if PLC is offline.

Thanks.
Title: Re: Properties of CircularProgressBar component
Post by: Archie on October 04, 2018, 07:16:53 PM
Edit the class and add these lines of code:

Public Property PLCAddressMinimum As String
Public Property PLCAddressMaximum As String
Title: Re: Properties of CircularProgressBar component
Post by: boldive on October 05, 2018, 08:32:23 AM
Thank you Archie.

I am beginner in Visual Studio. Please guide me how to open a class.
In Solution Explorer under AdvancedHMIControls => Controls => CircularProgressBar component.
When it opens I don't see a logical place where to add those 2 lines of code.
However in line:    Inherits MfgControl.AdvancedHMI.Controls.CircularProgressBar if I right click on "CircularProgressBar" and then click on "Go to definition" then looks like the right Class is opens. For some reason it opens for view only, I can't edit.

Please advice how to do it in right way.

The question "How to change font, color and position of Value and ValueSuffix elements?"is still active.

Thanks
Title: Re: Properties of CircularProgressBar component
Post by: Phrog30 on October 05, 2018, 09:10:08 AM
Archie offers very good personalized training. It's very affordable and reasonable compared to other groups. I recommend you look into it.
Title: Re: Properties of CircularProgressBar component
Post by: Archie on October 05, 2018, 11:17:48 AM
Please guide me how to open a class.
In Solution Explorer under AdvancedHMIControls => Controls => CircularProgressBar component.
When it opens I don't see a logical place where to add those 2 lines of code.
Look for #Region "Properties" and place it just below that
Title: Re: Properties of CircularProgressBar component
Post by: boldive on October 07, 2018, 03:17:09 PM
Thank you Archie, it works.