Syntax 4: For Ribbon controls
Description
This is a user event which occurs when the item is selected in the
ribbon combo box control.
Make sure the parameter (quantities and types) of the user event
is correctly defined according to the requirement of the ribbon combo
box control.
Applies to
RibbonComboBoxItem controls
Arguments
|
Argument |
Description |
|---|---|
|
ItemHandle |
Long. The handle of the item. |
|
index |
Long. The index of the item |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Example
This example is a user event for a combo box. In this example, the
Ue_ComboBoxSelectionChanged user event must be defined with two long
parameters for receiving the handle and index number of the combo box
which is selected.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
//Ue_ComboBoxSelectionChanged user event must have two long parameters for //receiving the handle and index number of ComboBox which is selected event type long ue_comboboxselectionchanged(long itemhandle, long index); Integer li_Return String ls_Text RibbonComboBoxItem lr_ComboBox li_Return = rbb_1.GetComboBox(ItemHandle,lr_ComboBox) If li_Return = 1 Then ls_Text = lr_ComboBox.Text(Index) End If Return 1 end event |
See also