[Lazarus] Editor File Manager in Windows menu

Martin lazarus at mfriebe.de
Sun Feb 19 01:34:57 CET 2012


On 19/02/2012 00:26, Juha Manninen wrote:
> 2012/2/17, Martin<lazarus at mfriebe.de>:
>> procedure TSourceNotebook.MoveEditor(OldPageIndex, NewPageIndex: integer);
>    TSourceNotebook.MoveEditor(...)
> is protected, so I used:
>    TSourceNotebook.NotebookPages.Move(...)
That is dangerous, yuo must also do
   UpdatePageNames;
   UpdateProjectFiles;

At least the 2nd is needed or changes do not go into the session (and 
maybe other problems...

But more so, yours is not future save....

Feel free to make MoveEditors public
(Note there is a version with window-index too. best keep them together)


General rule here is.
Things are added and kept none public, if not needed. Helps future 
refactoring.
If needed, then most methods can be made public

>
>> If you allow sorting tabs, how do you display files, that are open in
>> several windows?
> Now it lists all windows in all editor windows and allows moving them
> inside the same window. If you try to move over the boundary, you get
> a "List index out bounds" error.
> I will look at it later.
>
>
> Zeljan, a future version will use TListView + Checkable. It may take
> some time though. I would like to implement the filter edit control
> for TListView at the same go.
>
>
> Juha
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list