Subversion Repositories DevTools

Rev

Rev 2263 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2263 kivins 1
//---------------------------------------------------------------------------
2
 
3
#include <vcl.h>
4
#pragma hdrstop
5
 
6
#include "InitProgress.h"
7
//---------------------------------------------------------------------------
8
#pragma package(smart_init)
9
#pragma resource "*.dfm"
10
TInitValuesProgressForm *InitValuesProgressForm;
11
//---------------------------------------------------------------------------
12
__fastcall TInitValuesProgressForm::TInitValuesProgressForm(TComponent* Owner)
13
	: TForm(Owner)
14
{
15
}
16
//---------------------------------------------------------------------------
17
 
18
void TInitValuesProgressForm::Advance(const char *label)
19
{
20
	Label1->Text = label;
21
    ProgressBar1->StepIt();
22
 
23
    Update();
24
}
25
 
26
//---------------------------------------------------------------------------
27
 
28
void TInitValuesProgressForm::AddStep()
29
{
30
	AddSteps(1);
31
}
32
 
33
//---------------------------------------------------------------------------
34
 
35
void TInitValuesProgressForm::AddSteps(int steps)
36
{
37
	ProgressBar1->Max += steps;
38
    ProgressBar1->Update();
39
}
40
 
41
//---------------------------------------------------------------------------
42