Author Topic: How to Use Advanced HMI with other Windows Controls  (Read 2295 times)

rbeavers

  • Newbie
  • *
  • Posts: 19
    • View Profile
How to Use Advanced HMI with other Windows Controls
« on: October 01, 2016, 05:04:09 PM »
Hello! I am trying to create a new button using a custom button control that allows for some pretty unique properties such as gradations. In addition to these unique properties, there are the standard windows button properties and events. How would I read and write to the Advanced HMI PLC communication capabilities, say using a typical MouseDown event?

In other words, is there a way to incorporate controls other than the Advanced HMI controls?

Thanks!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5324
    • View Profile
    • AdvancedHMI
Re: How to Use Advanced HMI with other Windows Controls
« Reply #1 on: October 01, 2016, 05:10:21 PM »
In a short answer... Yes.

The architecture of AdvancedHMI controls is based on an underlying Windows control. This control is inherited into a new class that adds the AdvancedHMI functionality such as the ComComponent property. The easiest way to do this is to make a copy of a class that is close to the Windows control you want to transform into an AdvancedHMI control. For example, in your case you may copy BasicButton.vb

After making a copy of the file, you will then edit the line "Inherits xxxx" to make inherit your custom Windows controls.

You can get more details of the process in the forum thread:

http://advancedhmi.com/forum/index.php?topic=185.0