Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Usage > D7: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 106 of 174
Post > Topic >>

D7: How to determine size of client are in MDI application?

by ma_dr@[EMAIL PROTECTED] (Markus Dreinberg) May 11, 2004 at 10:30 AM

Hello,

I create a new MDI Form (Form1) and a ChildForm (Form2). After that I
put a button on Form1 which has the following implementation:

form2.Left :=0;
form2.Top := 0;
form2.Width := self.ClientWidth; // self == form1
form2.Height := self.ClientHeight;

When I press the button form2 is resized but after resizing it is a
little bit to large for the client area of the parentform. So how do I
determine the correct size of the client area?

Thank you,
Markus
 




 1 Posts in Topic:
D7: How to determine size of client are in MDI application?
ma_dr@[EMAIL PROTECTED]   2004-05-11 10:30:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 2:42:00 CDT 2008.