[Lazarus] Patch for simple docking.

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 5 03:01:47 CEST 2010


On Sun, 4 Apr 2010 20:04:38 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> 
> 
> On Sun, 4 Apr 2010, Michael Van Canneyt wrote:
> 
> > Great, thank you.
> >
> > Maybe you can also have a look at the following bug:
> > - Create main form as above.
> > - Additionally Set docksite=true for the main form.
> > Run program.
> > - Drop panel outside main form. DockForm appears, panel is on it :-)
> > - Now drop the panel back on the main form.
> >
> > -> The panel disappears.
> >
> > All properties I thought of check out OK: visible, parent (it is main form), 
> > it's size.
> > (size of the form).
> >
> > The same problem happens when you manually dock the panel back on the main 
> > form:
> > I do this with the following code in a button on the main form:
> >
> >  Panel1.ManualDock(Self,Self,alTop,true);
> >
> > I tried debugging it, but the error escapes me. All seems to be working as it 
> > should,
> > except that the control is not drawn on it's new location :/
> >
> > It's not a panel problem, I tried with some other controls as well.
> > (tested on GTK2, latest Lazarus and FPC)
> 
> Follow-up, after tip from Hans-Peter Diettrich:
> 
> When building the LCL with -dOldAutoSize, the panel is shown.

This has been fixed.

Mattias




More information about the Lazarus mailing list