Author Topic: BasicLabel with context menu (multiple address access)  (Read 154 times)

Godra

  • Hero Member
  • *****
  • Posts: 624
    • View Profile
BasicLabel with context menu (multiple address access)
« on: November 28, 2017, 03:40:34 PM »
Could be used for quick access to any address from its collection, which is populated by the user.

The context menu, which pops up on the right-click of the mouse, will have the address selected for the currently shown value (just like the picture shows).

Apart from the mentioned feature, it has the same functionality as the stock BasicLabel.
« Last Edit: January 13, 2018, 12:45:59 AM by Godra »

Phrog30

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Re: BasicLabel with context menu (multiple address access)
« Reply #1 on: November 28, 2017, 04:52:32 PM »
Most users will have zero idea on what those choices mean. Text would be a better idea.

Godra

  • Hero Member
  • *****
  • Posts: 624
    • View Profile
Re: BasicLabel with context menu (multiple address access)
« Reply #2 on: November 28, 2017, 06:27:04 PM »
You might be correct so I have added an option to put descriptive comments after the address.

Godra

  • Hero Member
  • *****
  • Posts: 624
    • View Profile
Re: BasicLabel with context menu (multiple address access)
« Reply #3 on: January 12, 2018, 11:37:02 PM »
This control was updated and file replaced in the initial post.

The new updates are described in this topic: http://advancedhmi.com/forum/index.php?topic=1973.0
« Last Edit: January 13, 2018, 12:47:08 AM by Godra »

Godra

  • Hero Member
  • *****
  • Posts: 624
    • View Profile
Re: BasicLabel with context menu (multiple address access)
« Reply #4 on: January 17, 2018, 09:57:16 PM »
The latest addition to this modified BasicLabel is ability to Read/Write predetermined length Modbus string. Predetermined length would actually denote the number of elements (or words or Modbus addresses) so any string that is equal or shorter than that number, will fit in.

There are 2 new properties, InterpretValueAsModbusString and ModbusStringLength.
The driver's MaxReadGroupSize property will have to be adjusted to accommodate the length for all the labels used on the form.

One thing that doesn't work for this particular version of the BasicLabel control is access to multiple Modbus addresses (so each label can only read a string from one Modbus address).

There might be bugs so do report them.

In order to have this control work,you would also have to replace the SubscriptionHandler file with the attached modified version.
The new BasicLabel control is also attached in this post.

« Last Edit: January 17, 2018, 11:03:38 PM by Godra »