BPC-Components

Home > Products > BPC PowerForms > Knowledge Base > API Reference > The ProgressBar control

The ProgressBar control

Designer Properties

The ProgressBar control can be used instead of a numeric textbox. The value can also by shown as a percentage.

 

 

Type : ProgressBar

Name

Provides a unique name for the control.

#SNP_Binding#

#SNP_Enabled#

Required

Marks the cotnrol as Required.

By default, the system recognizes required fields and marks them with this flag. Additionaly, controls can be marked as required event if the bound column is not.

#SNP_EnabledFormula#

Visibility Formula

Define a valid formula (using javascript) that will be evaluated during runtime to show or hide the control.

The expression should return a boolean value.

For example :

Code

form.FieldValue("c_Status") != "Rejected" || form.UserID() == "1"

#SNP_ControlValue#

Example :

Code

="User : " + form.UserFullName()

#SNP_Layout#

Width

Defines the width of the control.

When the value is zero, the maximum allowed width will be used.

Please note that you can only change the Slider's width using the above Layout property and not by adjusting the number of boxes it occupies on the designer view.

#SNP_Height#

Please note that you should also set the control's height greater than 0.

H.Alignment

Defines the horizontal alignment of the parent cell (values : left, right, center)

V.Alignment

Defines the vertical alignment of the parent cell (values : top, bottom, center)

#SNP_ForeColor#

Back Color

Defines the Background color of the control.

#SNP_CellColor#

#SNP_FontSize#

#SNP_Margin#

#SNP_FontStyle#

#SNP_NoLookup#

Extra Configuration

MinimumValue

Indicates the minimum value for the progress bar.

MaximumValue

Indicates the maximum value for the progress bar.

Decimals

Sets the number of decimals for the displayed value, default is 0.

Decimals

Sets the number of decimals for the displayed value, default is 0.

TextMode

Display the value as the actual value or as a percentage.

TextColor 

Set the text's color.

#SNP_ControlScript#