[Lazarus] IDE docking flaw?
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Jun 8 12:59:59 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 the preparation of this patch I found a problem with the Source
editor forms - they seem to have bad (default) values in
UndockWidth/Height :-(
I didn't know where to send the patch, so I'll attach it to this
message, for all interested readers. Above fix is made conditional, so
that it can be tested easily.
The attached patch addresses the
handling of multi-monitor coordinates:
- Screen coordinates and bounds (forms.pp, screen.inc)
- allow for negative coordinates in Options Window
- and in CustomCoordinatesAreValid
and using the new methods:
- using Screen.FitToMonitor instead of agnostic checks
and a minor fix:
- properly handle negative Width/Height in GetDefaultBounds
Tested on Win32 with no docking packages installed.
DoDi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: WinPos.patch
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110608/c9533ebf/attachment-0003.ksh>
More information about the Lazarus
mailing list