Callback "getLabel"

You may use the callback "getLabel" with the following controls:

  • Tab
  • Group
  • Button
  • ToggleButton
  • Label
  • Checkbox
  • Dropdown
  • EditBox
  • Gallery
    • Button
  • SplitButton
  • Combobox
  • DynamicMenu
  • Menu
    • Button
    • ToggleButton
    • Checkbox
    • Menu - Control
  • ButtonGroup - Button
  • ButtonGroup - ToggleButton

This callback let you dynamically set the label for the ribbon controls. Therefor the Ribbon XML will call the callback "GetLabel" that is stored in the module "basRibbonCallbacks".

To set this callback for a control, choose from the context menu (right mouse button) of the field "Label" the entry "Use Callback "getLabel"".

Subsequent to this selecting the field "Label" as well as the ribbon control will display "*getLabel*". This will ensure that during an export the callback is set accordingly to the Ribbon XML.

You can set the Callback for getLabel in the Options.

To remove the callback allocations for the control select "Delete Callback" from the context menu.