Button groups are multiple buttons within one Interface object, also known as “Radio Buttons”.

Adding a ButtonGroup


after adding a ButtonGroup the button amount (entries) is empty

Adding entries


within the Inspector entries needs to be added

Define names and values

Events

There are multiple events to react on specific states:

  • On change (triggered each time if another button is choosen)
  • On change to index (triggered only if the defined index is equal)
  • On change to value (triggered only if the defined value is equal)

Scripting

ButtonGroup1.addEntry("name", value)
adds a entry with the given paramter.
value can also be a "string".

ButtonGroup1.buidFromTable("data table name", "name column", "name value")
Creates entries from a DataTable.
"data table name" = The name of the DataTable (“Data Table”).
"name column" = Choose the column from the DataTable which should create the names for the entries. (only worked if the column has an custom data)
"value column" = Choose the column from the DataTable which should create the values for the entries. (only worked if the column has an custom data)

ButtonGroup1.buidFromTable("data table name", index column, index value)
Creates entries from a DataTable.
"data table name" = The name of the DataTable (“Data Table”).
index column; = Choose the column from the DataTable which should create the names for the entries.
value column = Choose the column from the DataTable which should create the values for the entries.
ButtonGroup1.clear()
cleared (removed) all entries.

ButtonGroup1.deleteEntryWithIndex(index)
removed the entry with the given index.

ButtonGroup1.deleteEntryWithName("name")
removed the entry with the given name.

ButtonGroup1.deleteEntryWithValue(value)
removed the entry with the given value.
value can also be a "string".

ButtonGroup1.getEntries()
returend an array with arrays for each single entry.

ButtonGroup1.getEntry(index)
returend an array from the defined entry with name and value.

ButtonGroup1.getIndex()
returend the actual active index.

ButtonGroup1.getType()
returend the actual active name.

ButtonGroup1.getType()
returend always “ButtonGroup”.

ButtonGroup1.getValue()
returend the actual active value.

ButtonGroup1.setByIndex(index)
set the button with the given index.

ButtonGroup1.setByName("name")
set the button with the given name.

ButtonGroup1.setByValue(value)
set the button with the given value.
value can also be a "string".

ButtonGroup1.setSilentByIndex(index)
set the button with the given index but will not trigger any events.

ButtonGroup1.setSilentByName("name")
set the button with the given name but will not trigger any events.

ButtonGroup1.setSilentByValue(value)
set the button with the given value but will not trigger any events.
value can also be a "string".

ButtonGroup1.updateEntry(index, "name", value)
update the parameter name and value from the entry with the given index.
value can also be a "string".