Quick Find: Search for:

 Total Access Components
Control Tour

Return to Components Home
 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

About Box

AVI (Video)

Bitmap Effects

Border
Browse for Folder New!
CD Player
Clipboard
Clock
Common Dialogs
Date Time Picker New!
Digital Display
Enhanced Button
Gauge
Icon Menu
INI File
Marquee
Notes
Popup Menu
Progress Meter
Registry
Resize
Slider
Spin Button
Splitter
System Info
Tab Strip
Text Effects
Timer
Wave
 

 

Total Access Components Tour: Progress Meter

The Progress Meter is a databound control that is designed to provide visual feedback to your users about various processes, such as the duration of an event or the magnitude of a value. Your user can make visual estimates of the time remaining to complete an event, or the percent of a numeric value without having to translate numbers or time units mentally.

The FMS Progress Meter has a wide variety of styles. The bar style of the meter can be either solid or segmented. If the meter is segmented, the segments may either be flat, raised, or sunken. A segmented meter may also use different colors for different segments. The Visual Unit (VU) style mimics the look of the VU meter of a sound system. The meter has a caption to display the numeric value of the meter, or the percent value. The meter may be oriented either vertically or horizontally, and may be filled either from the left/bottom or the right/top.

The best way to determine which style is right for your application is to experiment with the various settings using the property sheet for the control while it is in design mode. All properties of the progress meter can also be set programmatically during run-time.

Using the Min and Max Properties

Determine the range of values that your control displays by setting the Min and Max properties. If Min is set to zero and Max is set to 100, then when the meter is filled halfway, the value of the control is 50. The Min and Max values can be set to any numeric integer value. The only restriction is that the Min value must be less than the Max value. This means that if you are trying to reset the Min and Max values such that the new Min value is higher than the current Max value, adjust the Max value first, then change the Min value.

Using the Value Property

The Value property of the control sets the percentage of the bar that is filled in. Set the Value property to a number between the Min and Max values, and the progress meter automatically displays the appropriate bar or number of segments.

Using the Visual Unit (VU) Color Properties

The visual display of the VU-style progress meter can be further enhanced by specifying the colors to be used for up to four sets of segments. Specify the colors you wish to use for the segment sets by selecting the color for the VUColor1, VUColor2, VUColor3 and VUColor4 properties. Then specify the percentage point at which the segments change from one color to another by setting the corresponding VUPercent2, VUPercent3 and VUPercent4 properties. There is no VUPercent1 property since the VUColor1 property is used for the first segment set.

Displaying Text with the Caption Property

The Caption property of the meter can be used to display any text. This is a good place to display the actual numeric value that is reflected in the display of the meter. The Progress Meter also recognizes the special case of using a percent sign (%) in the caption. The % is automatically replaced with the actual percentage value. For example, if the caption is set to “%”, the actual caption displays “55 %” (where 55 is the actual percentage value).

Progress Meter Properties

Name

Description

BackColor

The background color for the “undone” portion of the progress meter.

BarColor

The color for the “done” or bar portion of the progress meter.

BarStyle

The style of the progress meter.

EffectStyle

The appearance of the border surrounding the control.

Caption

The string to place in front of the Value property.

FillStyle

Where the bar begins to fill.

Font

The font for the text.

Max

The maximum value.

Min

The minimum value.

Orientation

The orientation of the progress meter.

Value Default Databound

The value of the control.

VUColor1

The color for the first visual unit (VU) Segment.

VUColor2

The color for the second VU Segment.

VUColor3

The color for the third VU Segment.

VUColor4

The color for the fourth VU Segment.

VUPercent2

The percentage where VU Color2 starts drawing.

VUPercent3

The percentage where VU Color3 starts drawing.

VUPercent4

The percentage where VU Color4 starts drawing.

Progress Meter Events

Name

Description

Click Fires when the mouse is clicked over the control.
DblClick Fires when the mouse is double clicked over the control.
KeyDown Fires when a key is depressed.
KeyPress Fires when a key is pressed.
KeyUp Fires when a key is released.
MouseDown Fires when a mouse button is depressed over a control.
MouseMove Fires when the mouse moves over the control.
MouseUp Fires when a mouse button is released over a control.

 

Contact Us  l   Web questions: Webmaster   l   Copyright © 2008 FMS, Inc.

Celebrating 22 Years of Software Excellence