Applies to
Ribbon controls (including RibbonTabButtonItem, RibbonLargeButtonItem, RibbonSmallButtonItem, RibbonCheckBoxItem, RibbonComboBoxItem, and RibbonMenuItem)
Description
Specifies a user event as the Selected event of the ribbon control. Different ribbon controls have different requirements on the number of parameters and types of the user event. For how to define the Selected user event for ribbon controls, see Selected in PowerScript Reference.
Usage
In a script
The following scripts bind the Ue_CheckBoxSelected
user
event with the Selected event of the check box.
Long ll_Handle_Category, ll_Handle_Panel, ll_Handle_CheckBox, ll_Handle_CheckBox2 RibbonCheckBoxItem lr_CheckBox ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory") ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel", "AddSmall!") ll_Handle_CheckBox = rbb_1.InsertCheckBoxFirst (ll_Handle_Panel, "Distill Custom PostScript", "Ue_CheckBoxClicked") lr_CheckBox.Text = "Print Title" lr_CheckBox.Clicked = "ue_CheckBoxPrintTitleClicked" lr_CheckBox.Selected = "ue_CheckBoxPrintTitleSelected" ll_Handle_CheckBox2 = rbb_1.InsertCheckBox (ll_Handle_Panel, ll_Handle_CheckBox, lr_CheckBox)
In the XML file
You can also bind the Ue_CheckBoxSelected
user event
with the Selected event of the check box in the XML file.
<CheckBox Text="Print Title" Clicked="ue_CheckBoxPrintTitleClicked" Selected="ue_CheckBoxPrintTitleSelected" />