[Lazarus] Patch for simple docking.

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Apr 4 20:12:01 CEST 2010


On Sun, 04 Apr 2010 19:25:08 +0200
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:

> Michael Van Canneyt schrieb:
> 
> > I'm writing an article about docking in Lazarus.
> 
> First question: which DockManager do you use?
> 
> Did you see:
> http://wiki.lazarus.freepascal.org/LCL_Drag_Drop#Common_Principles
> 
> > The first - and most simple - example I tried, failed:
> > - Drop a panel on a form
> > - Set dragkind to dkDock
> > - Set dragmode to dkAutomatic.
> > - Run application
> > - Drag panel outside form, and let go.
> > 
> > expected behaviour: a small form should appear, and the panel should be 
> > on it.
> > 
> > Actual behaviour: 4 Access violations (fix one to get to the next ;) ).
> 
> Sounds like new autosize bugs. Did you use -dOldAutoSize when building 
> the LCL?

The patch checks Icon<>nil, which is a good thing in an event. 

The new autosize algorithm unhid many bugs, that worked by luck not by
design.

Mattias




More information about the Lazarus mailing list