On Sun, 04 Apr 2010 19:25:08 +0200 Hans-Peter Diettrich <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
