Mega Search
23.2 Million


Sign Up

Make a donation  
pagecontrol resize  
News Group: embarcadero.public.delphi.vcl.components.using

Hi,
In D7, I put a pagecontrol on a MDI Form and set its align property to alClient. Now I have 2 problems:
1. the form cannot be moved (by dragging its caption by mouse).
2. when I want to resize the form, the page control resizes instead!

Any help would be appreciated!

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 8:06 AM EST
From: naser fadaei
 
Re: pagecontrol resize  
News Group: embarcadero.public.delphi.vcl.components.using
naser fadaei wrote:

> > {quote:title=naser fadaei wrote:}{quote}
> > Hi,
> > In D7, I put a pagecontrol on a MDI Form and set its align property
> > to alClient. Now I have 2 problems:  1. the form cannot be moved
> > (by dragging its caption by mouse).  2. when I want to resize the
> > form, the page control resizes instead!
> > 
> > Any help would be appreciated!
> 
> the problem solved by changing align property of the form from alTop
> to alNone.  is there any way to set form's align property to alTop
> and also solve the mentioned problems?

Well, a align other than alNone conflicts with dragging, of course. If
you let go of the mouse the form repositions itself as dictated by the
Align property.

You may want to leave the property at alNone at design-time and set it
to alTop at run-time, e. g. in the form's OnCreate event. But be
advised that MDI child forms do not play well with Align, due to the
way the Windows MDI framework they use is designed.

-- 
Peter Below (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 11:03 AM EST
From: Peter Below
 
Re: pagecontrol resize  
News Group: embarcadero.public.delphi.vcl.components.using
> {quote:title=naser fadaei wrote:}{quote}
> Hi,
> In D7, I put a pagecontrol on a MDI Form and set its align property to alClient. Now I have 2 problems:
> 1. the form cannot be moved (by dragging its caption by mouse).
> 2. when I want to resize the form, the page control resizes instead!
> 
> Any help would be appreciated!

the problem solved by changing align property of the form from alTop to alNone.
is there any way to set form's align property to alTop and also solve the mentioned problems?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 8:20 AM EST
From: naser fadaei