Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2005, 11:51 PM
tomas tomas is offline
Senior Member
 
Join Date: Aug 2001
Posts: 142
Default Form resizing and repaitning

Hi,

I am using D7 WinXP Home. I have a very unusual problem, my forms simply does not resize and does not realing to theri parent.
The application has many forms (No my wrok) which appears like a panel.
For example:

MainForm.MainPanel is a parent for a form TChartForm, what has also a panel on which is placed an another form etc.

And sometimes when I amximize the Main window, the child forms on panels simply does not resize their child controlls.

I you have ever meet this problem, please help me because it is very annoying

Thank you
Tom.



Tomas.
Reply With Quote
  #2  
Old 03-23-2005, 02:58 AM
Eddy-B Eddy-B is offline
Senior Member
 
Join Date: Feb 2002
Posts: 1,467
Default RE: Form resizing and repaitning

They don't resize because this is by far not a normal programming style. Forms should not be placed into panels.

If you want this to work, you need to write event handlers to resize your "child" windows after the parent has resized. Use the WM_SIZE message for this


Eddy-B

Please click Accept as answer if this helped
Reply With Quote
  #3  
Old 03-23-2005, 05:54 AM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Default RE: Form resizing and repaitning

use this component
"winsizer" (free + sources)

install it and put the component in the form that you want to be "elastic", when resizing the form all commponents will streech automatically,etc...

download to d1-d5

download to d6-d7




Regards
BaraoZemo

ps, donīt forget to Accept as Answer if this helped you!
Reply With Quote
  #4  
Old 03-24-2005, 02:05 AM
autocorect autocorect is offline
Senior Member
 
Join Date: Mar 2005
Posts: 725
Default RE: Form resizing and repaitning

You can use this component "ActionList" find in standard tab.

put on form ... dblclick on hem, select button 'New Action'
select "New Standard Action..." ... select All you need in topic "Window".

then you can put meniu with submeniu Maximaze, minimaze, cascade, etc, and assing action. All midichid automat will responded for you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.