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.):
    Width:=Form.UndockWidth;
    Height:=Form.UndockHeight;

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.

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to