[Lazarus] IDE docking flaw?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Jun 7 19:26:30 CEST 2011

Mattias Gaertner schrieb:

>> BTW the SimpleLayout should *not* remember the bounds of *docked* forms, 
>> instead it should retain their *undocked* bounds, for use when such a 
>> form is undocked later.
> That's just my preference: When a form is undocked it should not move. 
> You can send me a patch to make this optional.

In IDEWindowIntf.TSimpleWindowLayout.ReadCurrentCoordinates replace 
Width and Height (ln. 831 ff.):

Dunno how you want to handle the form position. Best guess: the origin 
should not be changed when the form is docked (HostDockSite<>nil). 
Optionally don't change *anything* in this case.

I just came (again) across another bug, that makes the form position 
unusable on my multi-monitor system, with negative coordinates. IDE 
Options Windows GetSize doesn't return the current coordinates for a 
window on my secondary monitor. I'll supply my patch for proper screen 
bounds, including methods to fix out-of-bounds coordinates.


More information about the Lazarus mailing list