Recent

Author Topic: [SOLVED] Source editor (2)  (Read 1124 times)

CM630

  • Hero Member
  • *****
  • Posts: 1168
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
[SOLVED] Source editor (2)
« on: June 06, 2024, 09:33:18 pm »
I have all dockings in the IDE installed.
When I open some projects, instead of having the project open in th emain form, I get a second main form, titled „Source editor (2)“.
Any idea how to have these projects open normally in a single window?
« Last Edit: June 07, 2024, 08:26:39 am by CM630 »
Лазар 3,4 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10249
  • Debugger - SynEdit - and more
    • wiki
Re: Source editor (2)
« Reply #1 on: June 06, 2024, 09:44:52 pm »
Dock the 2nd SourceEditor? SCNR.

Ok, what you have is a 2nd Window (can be docked) containing sources. In an undocked IDE, you can have as many of them as you want and position them side by side, so you can see several files at once. Or even one and the same file, but several times (scrolled differently).

If you wanted, then in AnchorDocking you can dock them side by side too.

If you don't want them side by side, then just drag the editor tab (not the anchor docking tab, but the editor tab, with the source file name) into the tabs of your existing source-editor.  (You can probably just close all tabs in that 2nd editor window, and then they should reopen in the first, if you reopen them / though there are various settings ...)



As to how you may have gotten them...

There are menu entries in the editor tabs context menu.
There are key combos.

Once you had an editor in a 2nd (or 3rd) window, the IDE remembers for that project. So it will restore this, if you reopen the project. If you however close them, and then make sure the project session is saved, then the info should be gone....
Well the IDE would still know, where the unit was last opened.... (That is why you may have to move the tabs back).

For opening units, there are settings in "Pages and Windows" of the editor options.


CM630

  • Hero Member
  • *****
  • Posts: 1168
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Source editor (2)
« Reply #2 on: June 07, 2024, 08:26:23 am »
Moving and dragging the window did not help.
But following your explanation, I opened Main menu — Project — Project options — Session.
Save session information in was set to Save in .lpi file. I changed it to Save in .lps file in the project directory, then I deleted the .lps file.
Now it works fine.
Лазар 3,4 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018