BFC_BusyForm |
Description
I think everyone
who has done some kind of programming had to do some processing
with which the end-user had to wait untill it was finished.
Until now we had to place a
progressbar (or something like that) on the form and displaying
some kind of message that the application is busy.
I think this component is a perfect solution for this. With
almost no programming you can do this... and more.
Place the component on the form and set the properties. The component creates an internal form which you can make visible or hide as you please.
There are two ways of using this
component.
Or you do everything yourself.
- Make the internal form visible by setting the visible-property to 'true'.
- Build a loop (while... do or for ....) and do what you have to do
- During the loop fill in the ProgressPosition property
- After the loop make the internal form hidden
Or you can let the component to everything by itself
- Assign the right value to ProgressMin, ProgressMax and ProgressStep (= the start, end and stepvalue of the loop)
- Assign a procedure to the OnStep-event. This procedure holds the code that has to be executed for every step.
- Fire the Execute-method
Properties
CancelCaption | Declaration property CancelCaption: TCaption; Description |
|
Canceled | Declaration property Canceled: boolean; Description |
|
CancelEnabled | Declaration property CancelEnabled: boolean; Description |
|
FormCaption | Declaration property FormCaption: TCaption; Description |
|
LabelCaption | Declaration property LabelCaption: TCaption; Description |
|
ProgressBar | Declaration property ProgressBar: TProgressBar; Description |
|
ProgressMax | Declaration property ProgressMax: Integer; Description |
|
ProgressMin | Declaration property ProgressMin: Integer; Description |
|
ProgressPosition | Declaration property ProgressPosition: Integer; Description |
|
ProgressStep | Declaration property ProgressStep: Integer; Description |
|
ResetOnCancel | Declaration property ResetOnCancel: boolean; Description |
|
VisibleOnExecute | Declaration property VisibleOnExecute: Boolean; Description |
Methods
Execute | Declaration procedure Execute; Description This process can only be canceled by the end-user if he clicks the cancel-button (when enabled; see CancelEnabled) |
|
Hide | Declaration procedure Hide; Description |
|
Show | Declaration procedure Show; Description |
Events
OnCancel | Declaration property OnCancel: TNotifyEvent; Description |
|
OnStep | Declaration property OnStep: TNotifyEvent; Description |