Tpagecontrol : Ttabsheet close button lazarus / 7-LCL ---------------------------------------------------------------------- mmab · 2010-01-27 10:33 It would be great if Ttabsheet has a close button at the caption area. or option to put it. I know it is possible in QT. It there any intention to add this capability? thanks ---------------------------------------------------------------------- davesimplewear · 2010-01-27 21:37 I'm fairly sure the TNotebook has this in the Options, but as you say it would be good for TTabsheet and TPageControl as well. ---------------------------------------------------------------------- mmab · 2010-01-28 00:59 Quote from: davesimplewear on January 27, 2010, 10:37:00 pmI'm fairly sure the TNotebook has this in the Options, but as you say it would be good for TTabsheet and TPageControl as well. I've tried what you've mentioned. But it looks like TNotebook's close button property is not working for me.My platform is Win XP, Laz. 0.9.29.22078 fpc 2.2.4. ( not a stable version) However I've also tried in the stable version but it  didnt work also. Can you please test it? I dont want to put a post to bugtracker until I am sure. Thanks for the reply. ---------------------------------------------------------------------- Leledumbo · 2010-01-28 07:39 QuoteBut it looks like TNotebook's close button property is not working for mePerhaps this is why there's no close button on editor tabs in Lazarus for Windows. Linux GTK+ has this though. ---------------------------------------------------------------------- Paul Ishenin · 2010-04-15 23:39 Close button on Tabs is only available for Qt and Gtk. ---------------------------------------------------------------------- Leledumbo · 2010-04-16 01:52 QuoteClose button on Tabs is only available for Qt and Gtk.But why some Windows projects have it? Take a look, for example Notepad++. ---------------------------------------------------------------------- Paul Ishenin · 2010-04-16 13:00 Windows API does not give a direct way to do this. You can draw the tab yourself of course and handle clicks. ---------------------------------------------------------------------- eny · 2010-05-10 14:01 Quote from: Leledumbo on April 16, 2010, 03:52:33 amBut why some Windows projects have it? Take a look, for example Notepad++. I wouldn't mention Notepad++ when talking about an application that behaves well. The biggest bug: Ctrl-F4 doesn't close a document, which for a text editor (i.e. heavy keyboard usage) is a major showstopper. (And the 2nd one: RE's are so limited they are virtually unusable.) ---------------------------------------------------------------------- Marc · 2010-05-13 13:51 Quote from: Paul Ishenin on April 16, 2010, 03:00:13 pmWindows API does not give a direct way to do this. You can draw the tab yourself of course and handle clicks. And even if you draw it yourself you wouldn't get it 100% the same in vista or win7. I needed some hacks to draw themed tabs on XP, on vista/win7 the winapi lacks one message to draw the "orange" mouseover colors.