Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

ProgressBar_Create

NI LabWindows™/CVI™ 2009 Help

Edition Date: November 2009

Part Number: 370051P-01

»View Product Info

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 Specifies whether the new progress bar control is vertical or horizontal.

Pass 1 to make the new control vertical.

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


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit