📄 mythread.pas
字号:
unit mythread;
interface
uses
Classes;
type
Tmythread = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
procedure cc;
end;
implementation
uses unit14;
{ Important: Methods and properties of objects in visual components can only be
used in a method called using Synchronize, for example,
Synchronize(UpdateCaption);
and UpdateCaption could look like,
procedure Tmythread.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }
{ Tmythread }
procedure tmythread.cc;
begin
While form14.ProgressBar1.Position<Form14.ProgressBar1.Max do
Form14.ProgressBar1.Position:=form14.ProgressBar1.Position+2;
end;
procedure Tmythread.Execute;
begin
{ Place thread code here }
Synchronize(cc);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -