Softelvdm.Controls Class Library for Windows Controls 1.0

ProgressBarPartClass Constructor

Softel vdm, Inc.

Initializes a new instance of the ProgressBarPartClass class.

Syntax      ProgressBarPartClass Class (Softelvdm.Controls)

VB   

Public Sub New()
Public Sub New( _
     ByVal Min As Integer, _
     ByVal Max As Integer, _
     ByVal Pos As Integer, _
     ByVal MinWidth As Integer, _
     ByVal MinHeight As Integer, _
     ByVal Style As GadgetAppearanceEnum, _
     ByVal ProgressColor As Color, _
     ByVal ProgressColorEnd As Color, _
     ByVal GradientMode As LinearGradientMode )

C#   

public ProgressBarPartClass();
public ProgressBarPartClass(
     int Min,
     int Max,
     int Pos,
     int MinWidth,
     int MinHeight,
     GadgetAppearanceEnum Style,
     Color ProgressColor,
     Color ProgressColorEnd,
     LinearGradientMode GradientMode );

C++   

public: ProgressBarPartClass();
public: ProgressBarPartClass(
     int Min,
     int Max,
     int Pos,
     int MinWidth,
     int MinHeight,
     GadgetAppearanceEnum Style,
     Color ProgressColor,
     Color ProgressColorEnd,
     LinearGradientMode GradientMode );

GradientMode

Defines the progressbar's gradient fill mode (GradientMode property).

LinearGradientMode

Value

Description

Horizontal

0

Specifies a gradient from left to right.

Vertical

1

Specifies a gradient from top to bottom.

ForwardDiagonal

2

Specifies a gradient from upper left to lower right.

BackwardDiagonal

3

Specifies a gradient from upper right to lower left.

Max

Defines the progressbar's maximum position value (Max property).

Min

Defines the progressbar's minimum position value (Min property).

MinHeight

Defines the progressbar's minimum height in pixels (MinHeight property).

MinWidth

Defines the progressbar's minimum width in pixels (MinWidth property).

Pos

Defines the progressbar's current position (Value property).

ProgressColor

Defines the progressbar's starting color (ProgressColor property).

ProgressColorEnd

Defines the progressbar's ending color (ProgressColorEnd property).

Style

Defines the progressbar display style (Appearance property).

GadgetAppearanceEnum

Value

Description

Default

0

The gadget has an appearance which is determined by a containing object or by the environment. If no containing object or environmental information is available, GadgetAppearanceEnum.Default is identical to GadgetAppearanceEnum.ThemedSystem.

System

1

The gadget has an appearance that mimics the current operating system, but does not use themes, even if these are enabled by the operating system.

ThemedAppearance

2

The gadget emulates an appearance that mimics Windows XP themes, even on operating systems that do not offer themes.

ThemedSystem

3

The gadget has an appearance that mimics the current operating system. For example, on Windows XP (and above), Windows themes would be used if these are enabled by the operating system. When Windows themes are used, certain color related properties no longer take effect, because the rendering is determined by the theme.

Plain

4

The gadget has no particular appearance and is completely defined by its own attributes.

Comments

The ProgressBarPartClass constructor initializes a new instance of the ProgressBarPartClass class.

Version Information

Supported in version 1.0.
Products Table


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com