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] Form Docking

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sat Feb 02, 2008 2:35 pm    Post subject: [Delphi] Form Docking Reply with quote

I'm making a multi-form project, and I'm trying to get the menu to "dock" onto the main form so it moves around with it, how can I do this?
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Feb 05, 2008 7:06 am    Post subject: Reply with quote

(there IS an API way of doing this, but i lost it =( )

the general idea is to enum through all windows and see if any side of one form's RECT is within, say, 10 pixels away from any side of the other form's RECT

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Feb 05, 2008 7:12 am    Post subject: Reply with quote

Huh...
On Form1 Move/Drag or something?
try
Form2.Left := Form1.Left - 50;
Form2.Top := Form1.Top - 50;
Rolling Eyes ?
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