Forum > SynEdit
Closebutton (X) in codeeditor tabs, How?
(1/1)
cdbc:
Hi
Quick question: How do they put a close button on each tab in the codeeditor?
Regards Benny
KodeZwerg:
Can you be a little more specific or show a small image of what you mean.
dsiders:
--- Quote from: cdbc on October 19, 2022, 12:50:51 pm ---Hi
Quick question: How do they put a close button on each tab in the codeeditor?
Regards Benny
--- End quote ---
In general, include nboShowCloseButton in the Options property for the tab control.
It should work for GTK and QT. It doesn't work on Windows... M$ decided people do not really need close buttons on Tabs in Vista.
EDIT:
After reading again, I see this is about SynEdit... so it probably doesn't apply.
wp:
Go to "Tools" > "Options" > "Editor" > "Pages and Windows" > "Notebook Tabs": Check the box "Show close buttons in notebook". But note that this may not work depending on your operating system. It definitely does not work on Windows (and here that checkbox even is disabled).
Another way to quickly close an editor tab is to click on the tab with the mouse-wheel. This works even on Windows.
cdbc:
Hi
@dsiders: You hit the hammer exactly on the nail...
Your tip
--- Quote ---In general, include nboShowCloseButton in the Options property for the tab control.
--- End quote ---
along with the codesnippet just did the trick, Thank you :)
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.pctMainCloseTabClicked(Sender: TObject);begin (Sender as TTabSheet).Free;end; @wp: I'm on QT so it works with the above...
Thank you
Regards Benny
Navigation
[0] Message Index