Online documentation, manuals and tutorials
< All Topics
Print

ButtonMatrix

Description

The Button Matrix object is a lightweight way to display multiple buttons in rows and columns.

More info

Properties

Specific

Buttons

Array

List of buttons. Each button has the following properties:

  • New line: if enabled then this is not actual button, but it introduces line break in button matrix.
  • Text: Label of the button
  • Width: The buttons’ width can be set relative to the other button in the same row. E.g. in a line with two buttons: btnA, width = 1 and btnB, width = 2, btnA will have 33 % width and btnB will have 66 % width.
  • HIDDEN Makes a button hidden (hidden buttons still take up space in the layout, they are just not visible or clickable)
  • NO_REPEAT Disable repeating when the button is long pressed
  • DISABLED Makes a button disabled Like LVSTATEDISABLED on normal objects
  • CHECKABLE Enable toggling of a button. I.e. LVSTATECHECHED will be added/removed as the button is clicked
  • CHECKED Make the button checked. It will use the LVSTATECHECHKED styles.
  • CLICKTRIG Enabled: send LVEVENTVALUECHANGE on CLICK, Disabled: send LVEVENTVALUE_CHANGE on PRESS
  • POPOVER Show the button label in a popover when pressing this key
  • RECOLOR Enable recoloring of button texts with #. E.g. “It’s #ff0000 red#”
  • CUSTOM_1 Custom free to use flag
  • CUSTOM_2 Custom free to use flag

One check

Boolean

The “One check” feature can be enabled to allow only one button to be checked at a time.

Page content