[Lazarus] Desktops and multiple source editors

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 10 00:26:02 CEST 2015


On Thu, 10 Sep 2015 00:13:24 +0200
Ondrej Pokorny <lazarus at kluug.net> wrote:

>[...]
> The Package editors:
> 1.) Position is controlled by the desktop for every package separately. 
> This means if you open a package and save the desktop, the next time you 
> open the package having the same desktop active in the IDE, it will be 
> correctly placed.

Good.

> 2.) The visibility is controlled by the fact if the package is open or 
> not. The desktop cannot reopen packages, obviously.It doesn't store the file info of the package. It is also not expected.

Why not?
The window has the name PackageEditor_ToDoListLaz, so you have the
package name. That is all you need to load the package.

 
> Again, the above applies to non-docked environment. Packages are a 
> problem in the docked environment. When you change the desktop, there is 
> a docked package and there is no docking information about it in the new 
> desktop, where should it be placed? IMO, it has to be detached from the 
> dock and placed in a window.

Yes.

> Now it gets closed.

What if the package was modified?


> Maybe it is easier to 
> disable docking capabilities for packages. Then the docked environment 
> would just ignore them.
> 
> I am not using AnchorDocking personally so somebody else should care of 
> the problems in AnchorDocking.

I will wait til the dust has settled.

 
> ---
> Patch attached.
> + I tested Windows 10 only. It seems to work pretty well for me.

Thanks, applied.

Mattias




More information about the Lazarus mailing list