S
scdoudou
Unregistered / Unconfirmed
GUEST, unregistred user!
unit thread;
interface
uses
Classes,ShDocVw;
type
webdata = class(TThread)
protected
procedure Execute;
override;
public
constructor Create();
end;
implementation
constructor webdata.Create();
begin
FreeOnTerminate := True;
end;
procedure webdata.Execute;
begin
end;
end.
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ToolWin, Menus, StdCtrls, ImgList, StdActns, ActnList,
OleCtrls, SHDocVw, ExtCtrls,thread;
type
TForm1 = class(TForm)
procedure CheckBox1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
If CheckBox1.Checked = true then
begin
Webdata.create();
end;
end;
end.
interface
uses
Classes,ShDocVw;
type
webdata = class(TThread)
protected
procedure Execute;
override;
public
constructor Create();
end;
implementation
constructor webdata.Create();
begin
FreeOnTerminate := True;
end;
procedure webdata.Execute;
begin
end;
end.
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ToolWin, Menus, StdCtrls, ImgList, StdActns, ActnList,
OleCtrls, SHDocVw, ExtCtrls,thread;
type
TForm1 = class(TForm)
procedure CheckBox1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
If CheckBox1.Checked = true then
begin
Webdata.create();
end;
end;
end.