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.

The same should work for the win32 interface.


The only way to correctly solve this is to use a TFrame, this should be
fixed. Frames do work, but not in the IDE, as far as I know. I already
asked Matthias to do some work on Frames (need them myself too...)

without h,

... help it will take some time ? =-)

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to