Combo_GetComboAttribute
- Updated2023-02-21
- 6 minute(s) read
int Combo_GetComboAttribute (int panel, int controlID, int controlAttribute, ...);
Purpose
Obtains the value of a Combo Box attribute from the selected panel and Combo Box control.
Since attributes may return values of different data types with different valid ranges, a list of attributes, their data types, and their valid values are provided in the help for attributeValue.
Parameters
| Input | ||
| Name | Type | Description |
| panel | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
| controlID | int | The defined constant (located in the UIR header file) that was assigned to the original string in the User Interface Editor or the ID returned by the Combo_NewComboBox function. |
| controlAttribute | int | The combo box control attribute value to obtain. In the function panel, when you click the control or press <Enter>, <Spacebar>, or <Ctrl-down arrow>, a dialog box appears containing a hierarchical list of the available attributes. Attributes whose values cannot be obtained are dimmed. Help text is shown for each attribute. To select an attribute, double-click it or select it and then press <Enter>. If the attribute shown in this ring control has named constants as valid values, you can open a list of them by moving to the Attribute Value control and pressing <Enter>. The Attribute Values dialog box displays the values and value help for the constants. |
| Output | ||
| Name | Type | Description |
| attributeValue | ... | The value of the specified combo box control attribute. If the attribute shown in this control has named constants as valid values, you can open a list of them by pressing <Enter>. The Attribute Values dialog box displays the values and value help for the constants. |
Return Value
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|
Additional Information
Library: Combo Box
Include file: custctrl\combobox.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later
Example
Refer to userint\activex\WebBrowser.cws for an example of using the Combo_GetComboAttribute function.