ComboBoxListener
Package: Libraries.Interface.Events · Inherits from: Libraries.Language.Object
A ComboBoxListener is told when the user chooses a different choice in a ComboBox. Add one with the combo box's AddComboBoxListener action, and write ComboBoxChanged. A program's own Select doesn't tell listeners.
Example Code
use Libraries.Interface.Events.ComboBoxChangedEvent
use Libraries.Interface.Events.ComboBoxListener
class SizeListener is ComboBoxListener
integer chosen = -1
action ComboBoxChanged(ComboBoxChangedEvent event)
chosen = event:GetNewIndex()
end
end
Actions
ComboBoxChanged(Libraries.Interface.Events.ComboBoxChangedEvent event)
This action is called when the user chooses a different choice in a combo box.
Parameters
eventLibraries.Interface.Events.ComboBoxChangedEvent: The combo box, the old and new index, and the chosen text.