ATTR_CTRL_VAL (Control)
Type: | Control attribute |
Description: | The current value of a control. Using this in GetCtrlAttribute is equivalent to calling the GetCtrlVal function. Using this in SetCtrlAttribute is equivalent to calling the SetCtrlVal function, except that the control does not display the value until LabWindows/CVI processes draw events. Note: If the control in which you are setting the value is the active control in the panel, the control nevertheless displays the value immediately. For a list box, ring, or tree, using this in SetCtrlAttribute sets the current item to the first item with the value. (To set the current list item via zero-based index, use the SetCtrlIndex function instead.) For a text box, setting the value appends the value to the contents of the text box. |
Control Types: | Binary switches, color numerics, command buttons, LEDs, list boxes, numerics, picture buttons, picture rings, radio buttons, rings, numeric slides, ring slides, strings, text boxes, text buttons, text messages, toggle buttons, trees. |
Data Type: | variable |
LabWindows/CVI Compatibility: |
LabWindows/CVI 3.0 and later |