Admin Production ni-theme
Current Publication

ProgressBar_Create

LabWindows/CVI

ProgressBar_Create

int ProgressBar_Create (int panel, char *label, int top, int left, int vertical);

Purpose

Creates a new progress bar 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.
label char * Label of the new progress bar control. Pass "" or 0 if you do not want a label.
top int Vertical coordinate at which to place the upper left corner of the control, not including labels.

The coordinate must be an integer value from –32,768 to 32,767. The origin (0,0) is at the upper-left corner of the panel, directly below the title bar, before the panel is scrolled.
left int Horizontal coordinate at which to place the upper left corner of the control, not including labels.

The coordinate must be an integer value from –32,768 to 32,767. The origin (0,0) is at the upper-left corner of the panel, directly below the title bar, before the panel is scrolled.
vertical int Specify a nonzero value or select yes in the function panel to create a vertical progress bar.

Specify 0 or select no in the function panel to create a horizontal progress bar.

Return Value

Name Type Description
progressBarControl int Returns the ID you can use to specify the progress bar control in subsequent function calls. 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