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 


Delphi graphics

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Wed Sep 26, 2007 5:24 am    Post subject: Delphi graphics Reply with quote

To make your form border-less while dragging, just put this piece of code into your source.
Code:

procedure TForm1.PanelTopMouseDown(Sender: TObject; 
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 
begin 
   if (Button=mbLeft) then 
   begin 
   ReleaseCapture; 
   (Self as 
TControl).Perform(WM_SYSCOMMAND,SC_DRAGMOVE,0); 
   end; 
end; 


To prevent minimising of your program window by dragging.
Put this in your private
Code:

procedure WMSysCommand(var Msg: TWMSysCommand); message WM_SYSCOMMAND;

And the rest in the body of the code
Code:

procedure TForm1.WMSysCommand(var Msg: TWMSysCommand);
begin
  if ((Msg.CmdType and $FFF0) = SC_SIZE) then
  begin
    Msg.Result := 0;
    Exit;
  end;
  inherited;
end


To hide your program from taskbar, either use it via checkbox
Code:

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
 if checkbox1.Checked = true then
 ShowWindow (Application.handle, SW_HIDE)
 else
 ShowWindow (Application.handle, SW_SHOW);
end;

or using formcreate()
Code:

procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowWindow(Application.Handle, SW_HIDE);

  SetWindowLong(Application.Handle, GWL_EXSTYLE,
          GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);

  ShowWindow(Application.Handle, SW_SHOW);
end;

_________________


Last edited by jongwee on Fri Sep 28, 2007 1:44 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 26, 2007 9:00 am    Post subject: Reply with quote

WOWOMG why do we need an entire topic for this? as it can be found using the search button... Nice work using Dark Bytes bandwidth!
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Sep 26, 2007 1:12 pm    Post subject: Reply with quote

thats not his bandwidth dumbass, its his server space Rolling Eyes

nice job jongwee

Kevinnn just because you have a high post count, doesn't mean your penis is big...

_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 26, 2007 2:25 pm    Post subject: Reply with quote

what if it aint? Razz

heh, anyways these newbs should search before posting !
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Sep 26, 2007 3:03 pm    Post subject: Reply with quote

could you show me the post please? have'nt seen this one
_________________
Back to top
View user's profile Send private message
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Thu Sep 27, 2007 1:52 am    Post subject: Reply with quote

Kevinnn wrote:
motherfucking cock sucking moron, this must be your most embarresed moment... posting such fucking useless topics. Well its random spam so i guess its ok.

Kevinnn wrote:
... cool't

Kevinnn wrote:
How do i remove it!!?!

its fucking annoying, using space Sad You know, its the one where you can choose language, EN, DE, DK, US and so on! Everytime i right click and remove it, and then when i reboot it comes up again!!


plsplspls

I don't see why a hypocrite has the rights to blame someone. Thanks Blankrider.

_________________
Back to top
View user's profile Send private message MSN Messenger
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Sep 27, 2007 3:32 am    Post subject: Reply with quote

Kevinnn wrote:
what if it aint? Razz

heh, anyways these newbs should search before posting !


If anyone here is 'newb' its you. Jongwee has been here a lot longer than you. He's giving something, the only time i've seen you post is when you're asking for help.
Back to top
View user's profile Send private message MSN Messenger
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Fri Sep 28, 2007 1:45 am    Post subject: Reply with quote

noz3001 wrote:
Kevinnn wrote:
what if it aint? Razz

heh, anyways these newbs should search before posting !


If anyone here is 'newb' its you. Jongwee has been here a lot longer than you. He's giving something, the only time i've seen you post is when you're asking for help.

Haha thanks a bunch buddy. Updated

_________________
Back to top
View user's profile Send private message MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Fri Sep 28, 2007 2:39 am    Post subject: Reply with quote

Thanks jongwee, usefull for new comers (though i know this)

And kevinnn, stop complaining, he is here longer than you.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Fri Sep 28, 2007 3:14 am    Post subject: Reply with quote

Thanks, can be useful..
Back to top
View user's profile Send private message
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