Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


(*Adding Compomemts at Runtime *Delphi*)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Fri Jul 06, 2007 9:04 pm    Post subject: (*Adding Compomemts at Runtime *Delphi*) Reply with quote

Code:

//
// assuming: your form is called "Form1"
//
with TLabel.Create( Form1 ) do
begin
  Parent  := Form1;  // this is important
  Left    := 50;     // X coordinate
  Top     := 60;     // Y coordinate
  Caption := 'hello, world';

  //
  // set your other parameters here...
  //

  //
  // you don't have to set the Name
  // parameter, but...
  //
  Name    := 'Label1';

  //
  // finally make it visible
  //
  Visible := True;
end;


Variable Used to Keep track of the "TLabel"

Code:

var
  l : TLabel;

begin
  //
  // assuming: your form is called "Form1"
  //
  l := TLabel.Create( Form1 );

  l.Parent  := Form1;  // this is important
  l.Left    := 50;     // X coordinate
  l.Top     := 60;     // Y coordinate
  l.Caption := 'hello, world';

  //
  // set your other parameters here...
  //

  //
  // you don't have to set the Name
  // parameter, but...
  //
  l.Name    := 'Label1';

  //
  // finally make it visible
  //
  l.Visible := True;
end;

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites