ProgressBar_ConvertFromSlide
int ProgressBar_ConvertFromSlide (int panel, int slideCtrl);
Purpose
Converts an existing numeric slide control to a progress bar control.
Pass the existing slide control ID to this function as the value of the slideCtrl parameter. This ID becomes the ID for the progress bar control.
When you finish with the progress bar, call ProgessBar_Revert to restore the progress bar to its former state as a numeric slide control.
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. |
slideCtrl | int | The defined constant, located in the .uir header file, that you assigned to the numeric slide control in the User Interface Editor, or the ID of the numeric slide control returned by NewCtrl or DuplicateCtrl. This ID becomes the ID for the progress bar control, and you can use it to specify the control in subsequent function calls. You can pass to this function a numeric slide of the following types: CTRL_NUMERIC_LEVEL_VSLIDE CTRL_NUMERIC_LEVEL_VSLIDE_LS CTRL_NUMERIC_FLAT_VSLIDE CTRL_NUMERIC_LEVEL_HSLIDE CTRL_NUMERIC_LEVEL_HSLIDE_LS CTRL_NUMERIC_FLAT_HSLIDE |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. Call the GetGeneralErrorString toolbox function to get a descriptive error message. |
Additional Information
Library: Progress Bar Control
Include file: custctrl\progressbar.h
LabWindows/CVI compatibility: LabWindows/CVI 2009 and later
Example
Refer to userint\custctrl\progressbar\progressdemo.cws for an example of using the ProgressBar_ConvertFromSlide function.