Hızlı Konu Açma

Hızlı Konu Açmak için tıklayınız.

Son Mesajlar

Konulardaki Son Mesajlar

Reklam

Forumda Reklam Vermek İçin Bize Ulaşın

DELPHI / Open Source İarotatetimer

YaSa22

Fahri Üye
Fahri Üye
Katılım
12 Temmuz 2014
Mesajlar
2,293
Tepkime puanı
2
Puanları
0
Konum
GTA
unit IARotateTimer;

interface

uses
Windows,Classes,Forms,Controls;

const
cm_RotatedOn =cm_Base+105;

type
TiaRotateTimer = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
public
Dtime : integer;
Handle1 : HWND;
end;

implementation

{ Important: Methods and properties of objects in VCL can only be used in a
method called using Synchronize, for example,

Synchronize(UpdateCaption);

and UpdateCaption could look like,

procedure TiaRotateTimer.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }

{ TiaRotateTimer }

procedure TiaRotateTimer.Execute;
begin
repeat
sleep(Dtime);
sendmessage(Handle1,CM_ROTATEDON,0,0);
until terminated;
{ Place thread code here }
end;

end.
 

Users Who Are Viewing This Konu (Users: 0, Guests: 1)

Üst