| View previous topic :: View next topic |
| Author |
Message |
Peter Jackson Guest
|
Posted: Tue May 15, 2007 8:11 am Post subject: Resize the window ? |
|
|
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
|
Posted: Tue May 15, 2007 2:46 pm Post subject: Re: Resize the window ? |
|
|
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
|
Posted: Wed May 16, 2007 7:02 pm Post subject: Re: Resize the window ? |
|
|
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 |
|
 |
|