Toolbar_GetCtrlFromDescription
- Updated2023-02-21
- 1 minute(s) read
int Toolbar_GetCtrlFromDescription (ToolbarType toolbar, const char *description, int *panel, int *control);
Purpose
Obtains the panel and control identifier for an item on the toolbar with a particular description.
Parameters
| Input | ||
| Name | Type | Description |
| toolbar | ToolbarType | The specifier for the toolbar. Obtain this handle from the Toolbar_New or Toolbar_Duplicate functions. |
| description | const char * | The description of the toolbar item, as specified in Toolbar_InsertItem. |
| Output | ||
| Name | Type | Description |
| panel | int | Returns the ID of the panel that contains the control with the specified label or |
| control | int | Returns the ID of the first control with the specified label or |
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: Toolbar
Include file: custctrl\toolbar.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later