SelectionChanged

Applies to

RibbonComboBoxItem controls

Description

Specifies a user event as the SelectionChanged event of the RibbonComboBoxItem. The RibbonComboBoxItem control requires that the SelectionChanged event have two long parameters for receiving the handle and index of the combo box. For how to define the SelectionChanged user event for RibbonComboBoxItem controls, see SelectionChanged in PowerScript Reference.

Usage

In scripts

The following scripts bind the ue_ComboBoxPageSizeSelectionChanged user event with the SelectionChanged event of the combo box.

Long ll_Handle_Category, ll_Handle_Panel, ll_Handle_ComboBox
RibbonComboBoxItem lr_ComboBox

ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory")
ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel", "AddSmall!")
lr_ComboBox.Label = "Page Size"
lr_ComboBox.PictureName = "PageSizeSmall!"
lr_ComboBox.SelectionChanged = "ue_ComboBoxPageSizeSelectionChanged"
lr_ComboBox.Selected = "ue_ComboBoxPageSizeSelected"
lr_ComboBox.Modified = "ue_ComboBoxPageSizeModified"
ll_Handle_ComboBox = rbb_1.InsertComboBoxFirst (ll_Handle_Panel, lr_ComboBox)

In the XML file

You can also bind the ue_ComboBoxPageSizeSelectionChanged user event with the SelectionChanged event of the combo box using the XML file:

<ComboBox PictureName="PageSizeSmall!" Label="Page Size" Modified="ue_ComboBoxPageSizeModified" Selected="ue_ComboBoxPageSizeSelected" SelectionChanged="ue_ComboBoxPageSizeSelectionChanged">