Author Topic: Make Custom Components  (Read 884 times)

tbrew01

  • Newbie
  • *
  • Posts: 8
    • View Profile
Make Custom Components
« on: July 25, 2022, 06:30:23 AM »
Hi, How do I go about make a custom component, i'd like to make a simple PID pump graphic, turns green when running, grey when idle and a red circle around it when faulted. I thought I might be able to modify the three colour pilot light, except can't figure out how to get to the graphics side of it. example image attached.

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Make Custom Components
« Reply #1 on: July 25, 2022, 10:27:39 AM »
Making custom components can get very involved and require a significant amount of VB knowledge. The best route may be to look through the Additional Component section on here to download some examples.

The one thing to understand is that AdvancedHMI components consist of 2 layers. The first is a generic component that has no ties to AdvancedHMI. It is a Windows component that can be used in any application. The second layer is the code that turns the Windows component into an AdvancedHMI component by linking everything to the drivers. In the base code, you will only see the second layer which is why you can't see or edit the graphic side of existing components.