Ets_Ctl_Selected_Item_Set()
Note: Requires OPNET Development Kit
Abstract
Sets the selected item by index for a combo box or pop-up menu control.
Syntax
Ets_Ctl_Selected_Item_Set (ctl_ptr, selected_item)
| Argument | Type | Description |
|---|---|---|
ctl_ptr |
EtsT_Ctl * |
pointer to an ETS control |
selected_item |
int |
the index of the item to be selected |
Return Type
EtsT_Compcode
EtsC_Compcode_Failure if the control is not a combo box or pop-up menu; EtsC_Compcode_Success otherwise.
Header
ets_api_gui.h
Details
For pop-up menu and combo box controls, selects the item at the specified index. For other types of controls, a recoverable error is issued.