Author Topic: SevenSegment2 Can we have a 2nd text property  (Read 1552 times)

MWDoty

  • Newbie
  • *
  • Posts: 6
    • View Profile
SevenSegment2 Can we have a 2nd text property
« on: June 17, 2021, 11:02:12 AM »
Hello,

I'm building an HMI using v3.99t beta 38 and am using the SevenSegment2 control.
It works great but I need a 2nd text property that is displayed in the lower border area.
I'm using the existing text property to display the PLC tag description.
I'd like to display the tag name & units in a 2nd text property if possible.
Any chance that could be useful enough to others that it could be added?
Maybe there is another way of doing this, I'm open to consider alternatives.

Thanks
Mike

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: SevenSegment2 Can we have a 2nd text property
« Reply #1 on: June 17, 2021, 11:27:47 AM »
You could put  BasicLabel under the SevenSegment if it is a one time use. If you intend to use it many times, then it will require some custom programming to extend the control.

MWDoty

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SevenSegment2 Can we have a 2nd text property
« Reply #2 on: June 17, 2021, 12:29:41 PM »
Hi Archie,

I'm putting several SevenSegment2 controls in a flowlayoutpanel on a form using code on startup for a live tag monitor form so I'm not sure how it will work out to add basiclabels but I'll play around with it.

On the custom programming front, how do you handle that? Quote, work, CC payment?
This is something I may be able to expense if it's not over my limit.

Thanks
Mike

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: SevenSegment2 Can we have a 2nd text property
« Reply #3 on: June 17, 2021, 12:38:08 PM »
This is something you could do yourself if you are familiar with VB.NET, a quick example is mentioned here:

https://www.advancedhmi.com/forum/index.php?topic=2511.msg15138#msg15138

MWDoty

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SevenSegment2 Can we have a 2nd text property
« Reply #4 on: June 19, 2021, 08:52:18 PM »
While I'm currently programming in C# due to company directive I did many years in VB (actually my preference).
I didn't see the controls source code but your example is perfect. I'll run with that and add the additional test display as needed.

Thank You So much!
Mike