UIChoice.new

Inputs:

  • parentSizer [UISizer]:
  • choices [list]: Choices of the combobox as an array of strings
  • defaultIndex [integer?]: Index of the choice to be selected by default [optional, default=-1]
  • xPosition [integer?]: [optional, default=-1]
  • yPosition [integer?]: [optional, default=-1]
  • width [integer?]: [optional, default=-1]
  • height [integer?]: [optional, default=-1]
  • borderDirection [integer?]: (BorderDirection.ALL, BorderDirection.TOP, BorderDirection.BOTTOM, BorderDirection.LEFT or BorderDirection.RIGHT) [optional, default=BorderDirection.NONE]
  • borderSize [integer?]: in pixels [optional, default=0]
  • proportion [integer?]: [optional, default=0]

Outputs:

  • uiChoice [UIChoice]:

UIChoice:destroy

UIChoice:getEnabled

Outputs:

  • [boolean]:

UIChoice:getOptionString

Inputs:

  • index [integer]: The options index.

Outputs:

  • [string]:

UIChoice:getValue

Outputs:

  • [integer]:

UIChoice:isVisible

Outputs:

  • [boolean]:

UIChoice:setChoices

Inputs:

  • choices [list]: Choices of the combobox as an array of strings
  • defaultIndex [integer?]: Index of the choice to be selected by default [optional, default=-1]

UIChoice:setEnabled

Inputs:

  • enabled [boolean?]: [optional, default=true]

UIChoice:setOnChangeCallback

Inputs:

  • callbackFunction [object]: function(boolean, string)
  • functionObject [object?]: functionObject [optional, default=NULL]

UIChoice:setToolTip

Inputs:

  • tooltip [string]:

UIChoice:setVisible

Inputs:

  • visible [boolean?]: [optional, default=true]

Last updated 12 Apr 2025, 16:09 +0200 . history