LabWindows/CVI

Toolbar_GetCtrlFromIndex

int Toolbar_GetCtrlFromIndex (ToolbarType toolbar, int index, int *panel, int *control);

Purpose

Obtains the panel and control identifier for an item on the toolbar with a particular index.

Parameters

Input
Name Type Description
toolbar ToolbarType The specifier for the toolbar.

Obtain this handle from the Toolbar_New or Toolbar_Duplicate functions.
index int The index of the toolbar item.
Output
Name Type Description
panel int Returns the ID of the panel that contains the control with the specified index.
control int Returns the ID of the first control with the specified index.

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 8.0 and later