BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Resize the window ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Peter Jackson
Guest





PostPosted: Tue May 15, 2007 8:11 am    Post subject: Resize the window ? Reply with quote



hi,

I want to resize the window but inside windows objects aspect ratio remain constant.....
Like I have on form . On form i placed one panel.I fixed
the width and height of panel.
When i resize the window , the panel should also be
resized according to form resize but its aspect
ratio(width/height) remain constant....

Please help me


-------
Thanks
Peter Jackson
Back to top
Hans Galema
Guest





PostPosted: Tue May 15, 2007 2:46 pm    Post subject: Re: Resize the window ? Reply with quote



Peter Jackson wrote:

Quote:
I want to resize the window

We already know because you already posted that question.

In the meantime you could have refrased your question though.

Quote:
... On form i placed one panel.I fixed
the width and height of panel.

???

Width and Height?

You let us guess how you placed the TPanel.
What are the values for it's property Anchors?

Quote:
When i resize the window , the panel should also be
resized according to form resize but its aspect
ratio(width/height) remain constant....

Anchors should do the trick I think.

Hans.
Back to top
Spine
Guest





PostPosted: Wed May 16, 2007 7:02 pm    Post subject: Re: Resize the window ? Reply with quote



hi,

I gues writing an onresize event handler for your form that resizes your
panel will do the trick.

Spike

"Peter Jackson" <Peter4You (AT) yahoo (DOT) co.in> wrote in message
news:46492dc0$1 (AT) newsgroups (DOT) borland.com...
Quote:

hi,

I want to resize the window but inside windows objects aspect ratio
remain constant.....
Like I have on form . On form i placed one panel.I fixed
the width and height of panel.
When i resize the window , the panel should also be
resized according to form resize but its aspect
ratio(width/height) remain constant....

Please help me


-------
Thanks
Peter Jackson
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.