Applies to
RibbonComboBoxItem controls
Description
Specifies a user event as the Modified event of the RibbonComboBoxItem. The RibbonComboBoxItem control requires that the modified event have a long parameter for receiving the handle of the combo box. For how to define the Modified user event for RibbonComboBoxItem controls, see Modified in PowerScript Reference.
Usage
In scripts
The following scripts bind the
ue_ComboBoxPageSizeModified
user event with the Modified
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_ComboBoxPageSizeModified
user event with the Modified event of the combo box using the XML
file:
<ComboBox PictureName="PageSizeSmall!" Label="Page Size" Modified="ue_ComboBoxPageSizeModified" Selected="ue_ComboBoxPageSizeSelected" SelectionChanged="ue_ComboBoxPageSizeSelectionChanged">