LabWindows/CVI

ColorPicker_GetAttribute

int ColorPicker_GetAttribute (int panel, int control, int attribute, void *value);

Purpose

Obtains the value of a color picker attribute.

Parameters

Input
Name Type Description
panel int The specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel.
control int The ID you specified as the canvas parameter in the ColorPicker_Convert function call. This value must be the same as the defined constant, located in the .uir header file, that you assigned to the original canvas control.
attribute int The color picker 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 list of the available attributes. LabWindows/CVI dims attributes whose values cannot be obtained. Help text is shown for each attribute. To select an attribute, double-click it or select it and then press <Enter>.

If the attribute you select has named constants as valid values, you can open a list of constants 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
value void * The value of the specified color picker control attribute.

If the attribute you select has named constants as valid values, you can open a list of constants 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: Color Picker Control

Include file: custctrl\color_picker.h

LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later