Applies to
Ribbon item controls (including RibbonTabButtonItem, RibbonLargeButtonItem, RibbonSmallButtonItem, RibbonCheckBoxItem, and RibbonMenuItem)
Description
Specifies a user event as the Clicked event of the ribbon item control. Different ribbon item controls have different requirements on the number of parameters and types of the user event. For how to define the Clicked user event for ribbon item controls, see Clicked in PowerScript Reference.
Usage
In a script
The following scripts bind the
ue_CheckBoxPrintTitleClicked
user event with the Clicked
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_CheckBoxPrintTitleClicked
user
event with the Clicked event of the check box in the XML file.
<CheckBox Text="Print Title" Clicked="ue_CheckBoxPrintTitleClicked" Selected="ue_CheckBoxPrintTitleSelected" />