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!
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)
> {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?