TExtendedNotebook and its nboShowCloseButtons lazarus / 31-LCL ---------------------------------------------------------------------- sproject · 2013-03-17 16:30 Hi, I'd like to ask about TExtendedNotebook's option nboShowCloseButtons. I set this True, but there is still no close button on tabs. Probably I have to do something more to make it work. But I have no idea and can't find any documentation or demo for this compononent. Can you help me to solve this issue? ---------------------------------------------------------------------- Blaazen · 2013-03-17 17:02 I just tried on Linux+Qt, SVN r. 40563 and close buttons are there. I personally didn't use TExtendedNotebook ever but I have a very good experience with TPageControl. Frankly, I don't know what is the difference, I only see there some "TabDrag...." properties. ---------------------------------------------------------------------- Avishai · 2013-03-17 17:05 I am not sure about this but I think if you are using MSWindows it will not show a close button. ---------------------------------------------------------------------- Leledumbo · 2013-03-17 17:28 It works only on LCL platforms supporting the feature (GTK2, Qt, maybe Carbon). On thing for sure, WinAPI is not one of them. ---------------------------------------------------------------------- sproject · 2013-03-17 17:35 Quote from: Blaazen on March 17, 2013, 06:02:54 pmFrankly, I don't know what is the difference, I only see there some "TabDrag...." properties. And AFAIK you're right. TExtendedNotebook supports auto dragging and there is nothing more extras. Quote from: Avishai on March 17, 2013, 06:05:18 pmI am not sure about this but I think if you are using MSWindows it will not show a close button. Still hope that there is way to force it to work. PS I thought about manually added close button. Few years ago I did it with D7 and TPageControl. Just noticed that LCL has not OwnerDraw property for components. Will that be a problem? ---------------------------------------------------------------------- fabiopesaju · 2014-04-12 13:28 and you can tell us how to do it? ---------------------------------------------------------------------- howardpc · 2014-04-12 13:48 This thread http://forum.lazarus.freepascal.org/index.php/topic,22130.msg133771.ht ml#msg133771 has information about custom drawing on the TExtendedPageControl tab, since the Windows widget has more limited display options compared to gtk and Qt tabcontrols. Quotecan't find any documentation or demo for this compononent. The Lazarus Source Editor is a demonstration of this component. ---------------------------------------------------------------------- Martin_fr · 2014-04-12 14:53 Have you tried the package CustomDrawn? It has a pagecontrol, with close button. It does however look different from the default windows pagecontrol. Adding it to the existing, is not just drawing. You would also need to change the measurement, so there is space to draw the button.