On Fri, 6 Jan 2006 20:10:02 +0100 (CET)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
>
> On Fri, 6 Jan 2006, Mattias Gaertner wrote:
>
> > On Fri, 6 Jan 2006 17:33:36 +0100 (Romance Standard Time)
> > Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > On Fri, 6 Jan 2006, Mattias Gaertner wrote:
> > >
> > > > On Fri, 6 Jan 2006 10:20:28 +0100 (Romance Standard Time)
> > > > Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > >
> > > >>
> > > >>
> > > >> On Fri, 6 Jan 2006, Alexander Todorov wrote:
> > > >>
> > > >>> Hello,
> > > >>> I've made a simple program that shows the problem.
> > > >>> It contains a TPanel that shows inside itself another TForm.
> > > >>> Under Linux everything is ok but on Windows there are some
> > > >problems: >> 1) When a TForm is shown in the panel it captures focus
> > > >and other >> components on parent form can't get focus
> > > >>> 2) Main menu is not working.
> > > >>> 3) Pressing Alt+F4 closes the form inside the panel not the main
> > > >form. >>
> > > >>> Uder Linux all that stuff works fine and you will never guess that
> > > >tha >> panel contains another form. Is this a bug ? Should I add it
> > > >to >> mantis?
> > > >>
> > > >> You cannot solve this. This is how Windows works with docked forms.
> > > >
> > > > This does not mean, it is impossible for the LCL.
> > > > Under gtk you can't use gtkwindows as childs as well. That's why the
> > > > gtk interface does not create a gtk_window, when the form has a
> > > > parent. Instead it only uses the client area widget, and that's why
> > > > you can't see a border. Eventually it should show some kind of
> > > > frame, at least with a close button.
> > >
> > > No close button. I use docking of windows all the time, standard no
> > > buttons are shown if a form is put on a parent form.
> >
> > And how do you close them?
>
> You simply call Free. The user cannot close them, if that is what you
> mean. There is no window border, no system menu, no system buttons.
> if a form is docked on a parent control, it gets no OnCloseQuery etc.
> events, it behaves like a normal control then (a frame, almost), as far as
> Windows is concerned.
If I dock the objectinspector, then I expect to still be able to close it.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives