-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgress.cpp
More file actions
28 lines (21 loc) · 725 Bytes
/
Progress.cpp
File metadata and controls
28 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//---------------------------------------------------------------------------
#pragma hdrstop
#include "Progress.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
potok::potok(bool CreateSuspended)
: TThread(CreateSuspended)
{
shag=0;
}
//---------------------------------------------------------------------------
void __fastcall potok::Execute()
{
if(Form1->ProgressBar1->Position<99)
{
Form1->ProgressBar1->Position=Form1->ProgressBar1->Position+shag;
Form1->Refresh();
}
}
//---------------------------------------------------------------------------