On Tue, 14 Mar 2006 12:47:21 +0200
"Yury Sidorov" <[EMAIL PROTECTED]> wrote:
> From: "Mattias Gaertner" <[EMAIL PROTECTED]>
> >> > AFAIK the form size and its content is not completely under control
> >of > > the LCL. So only the most simplest forms can be made fixed size.
> >>
> >> Sure. If resizing do nothing useful for particular dialog, there is no
> >> need to allow user to resize it.
> >
> > I'm not sure, you understood.
> > Especially if the resizing does nothing useful, the fixed size makes
> > trouble. For example your controls need a height of 200, but the window
> > manager only gives you a size of 190.
>
> Hmm, then user need to resize forms constantly by himself...
> How it can happen if I set client height of form to 200, but it actually
> set to 190?
There are several problems.
Some window managers define the width and height including the border, some
without, and there is no easy way to find out. It seems getting better, so
at least it works under the most common wm.
Then come the hen and the egg problem: To determine the needed ClientHeight,
you need the theme and the font size, which needs the Handle, which needs
the ClientHeight.
And some window managers do not allow free resizing of windows, only in non
'ugly' steps.
And last but not least: Calculating the correct ClientHeight can depend on a
lot of data, which a LCL interface may not have implemented yet for all
cases. The gtk and win32 interfaces are getting stable and complete, but we
already get three new interfaces: qt, wince and carbon.
Of course programmers don't want to wait years, until these interfaces get
the state of the gtk/win32 interfaces. Programmers want to use the IDE and
the LCL with their favorite interfaces, even if there are some ugly todos.
> >> IMHO MessageDlg need not be resized at all in any cases.
> >
> > Then you are living in a perfect world. :)
>
> I am not sure :)))
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives