Feature request/suggestion lazarus / 9-Editor ---------------------------------------------------------------------- 440bx · 2025-05-15 03:30 Hello, In the Source Editor Window Manager it is possible to alphabetically sort the list which, when dealing with a lot of windows, makes it much easier to locate a specific window. Unfortunately, there doesn't seem to be a way to alphabetically sort the editor tabs/labels.  In the attachment, notice that the tabs are _not_ alphabetically sorted.  That's the feature request/suggestion: provide a way to sort those tabs/labels to make it easier to locate the tab of a particular editing window. Comments and questions welcome. ---------------------------------------------------------------------- paweld · 2025-05-15 04:19 Try the PackageTabs component - Lazarus menu: Package > Install/Uninstall Packages ..., on the right side search for “packageTabs” and click Install selection and then Build IDE. ---------------------------------------------------------------------- 440bx · 2025-05-15 04:33 Quote from: paweld on May 15, 2025, 06:19:44 amTry the PackageTabs component - Lazarus menu: Package > Install/Uninstall Packages ..., on the right side search for “packageTabs” and click Install selection and then Build IDE. Paweld, thank you for the suggestion. I installed the package and after installing it, I got what shows in the attachment. My question is: is there a way to have all the tabs in a single line instead of occupying most of the editor screen ? Thank you for your help. ---------------------------------------------------------------------- paweld · 2025-05-15 05:07 Unfortunately, no. I use as a bar on the left side of the editor. The component settings are available: Tools > Options > Editor > Pages and Windows ---------------------------------------------------------------------- 440bx · 2025-05-15 05:39 Either way, it takes too much space for my taste but, it was definitely worth a try.  Thank you for the suggestion @paweld ---------------------------------------------------------------------- n7800 · 2025-05-15 17:35 Quote from: 440bx on May 15, 2025, 06:33:50 amI installed the package and after installing it, I got what shows in the attachment. My question is: is there a way to have all the tabs in a single line instead of occupying most of the editor screen ? I took the liberty of opening a feature request on the bug tracker. I listed some implementation options. Perhaps they will be considered. ---------------------------------------------------------------------- 440bx · 2025-05-15 17:58 Quote from: n7800 on May 15, 2025, 07:35:32 pmI took the liberty of opening a feature request on the bug tracker. I listed some implementation options. Perhaps they will be considered. Thank you for doing that @n7800.  I wasn't even sure how to describe the problem/enhancement. ---------------------------------------------------------------------- wp · 2025-05-17 09:04 Quote from: 440bx on May 15, 2025, 07:39:00 amEither way, it takes too much space for my taste [...] Did you notice that there is a splitter at the side of the tab bar to adjust its width? For me personally the PackageTabs is one of most important additions to the Lazarus IDE that I always install. But it makes sense only at the left or right side of the editor - tree-like grouping by package is confusing in horizontal orientation of the tabs. Since monitors are rather wide nowadays there is more space at the side of the editor window than above/below it. Due to the vertical stacking a lot of tabs can be accomodated at the sides of the editor, and even a scrollbar becomes visibible if there are too many. ---------------------------------------------------------------------- 440bx · 2025-05-17 09:49 Quote from: wp on May 17, 2025, 11:04:21 amDid you notice that there is a splitter at the side of the tab bar to adjust its width? For me personally the PackageTabs is one of most important additions to the Lazarus IDE that I always install. Hello wp, What you've got looks very nice.  Because of that, I thought I'd give the tabs package another shot. Please refer to the attachment for what follows. I haven't been able to get something that looks like your setup.  Specifically, in yours the label text seems to be left justified.  In mine it looks centered which is not really good.  How do you get yours to be left justified ?  If possible, I'd like to have all your tab settings because I like the result you posted a picture of. Thank you!. ETA: Added the forgotten attachment. PS: need to scroll horizontally to see the right hand side window. ---------------------------------------------------------------------- wp · 2025-05-17 10:19 Quote from: 440bx on May 17, 2025, 11:49:45 amI haven't been able to get something that looks like your setup.  Specifically, in yours the label text seems to be left justified.  In mine it looks centered which is not really good.  How do you get yours to be left justified ?  There was a recent change in the PackageTabs to right-align the captions. If you don't use Laz/main make the following changes to file packagetabs_impl.pas in components/packagetabs of your Lazarus installation Find the implementation of TPackageTabButton.Create, and add the following highlighted code after "inherited Create(aOwner)" to left- align the speedbutton captionsCode: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i constructor TPackageTabButton.Create(aOwner: TComponent);begin  inherited Create(aOwner);   if IDEEditorOptions.TabPosition in [tpLeft, tpRight] then  begin    Alignment := taLeftJustify;    Margin := Scale96ToFont(4); // need for left text align    BorderSpacing.Left := Scale96ToFont(8);    BorderSpacing.Right := 1;  end;   Transparent := True;[...]Further down in procedure TPackageTabPanel.RecreateToolBar, find the line "if FPanel is TPackageTabScrollBox then" and insert the instruction to set the Borderspacing to get a more pleasing display of the package names:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [...]        if FPanel is TPackageTabScrollBox then        begin          xLbl.Alignment := taLeftJustify;          xLbl.BorderSpacing.Left := FPanel.Scale96ToFont(4);        end        else if FPanel is TPackageTabFlowPanel then  [...] ---------------------------------------------------------------------- 440bx · 2025-05-17 10:43 That worked great !! Thank you WP. ---------------------------------------------------------------------- n7800 · 2025-05-18 19:02 Quote from: 440bx on May 17, 2025, 11:49:45 amI haven't been able to get something that looks like your setup.  Specifically, in yours the label text seems to be left justified.  In mine it looks centered which is not really good.  How do you get yours to be left justified ?  I can't help but brag that this is my fix )) @wp, I just noticed that you added High-DPI support to it, thanks. Unfortunately, I only have one standard monitor, so I can't provide this support, since I won't be able to test it anyway. ---------------------------------------------------------------------- 440bx · 2025-05-18 20:15 Quote from: n7800 on May 18, 2025, 09:02:05 pmI can't help but brag that this is my fix )) Here is a heartfelt thank you and a well deserved compliment, well done!