PageControl button close lazarus / 61-Beginners ---------------------------------------------------------------------- BIT · 2021-02-21 06:28 Hello! I need help how to make the close tab PageControl button in Windows. The question is how to draw, create a dynamically close tab button and do it correctly? ---------------------------------------------------------------------- lucamar · 2021-02-21 13:34 Doesn't setting nboShowCloseButtons in Options work? ---------------------------------------------------------------------- BIT · 2021-02-21 13:45 It doesn't work in windows( ---------------------------------------------------------------------- Handoko · 2021-02-21 14:29 I just tested on Win7 and Ubuntu Mate. Same source code but the close buttons didn't show up on Windows. Maybe a bug or unimplemented feature. ---------------------------------------------------------------------- lucamar · 2021-02-21 15:12 Quote from: Handoko on February 21, 2021, 03:29:39 pmMaybe a bug or unimplemented feature. I've been looking through my notes and it seems it's widgetset- dependant: works ok in (most?) Linux-gtk but not in Windows (have it as "tested XP, 7, 10: no deal"). I should have looked before commenting ---------------------------------------------------------------------- dsiders · 2021-02-21 15:20 Quote from: lucamar on February 21, 2021, 02:34:53 pmDoesn't setting nboShowCloseButtons in Options work? There is no code to support nboShowCloseButtons in TWSCustomPage or TWSCustomTabControl. ---------------------------------------------------------------------- BIT · 2021-02-22 16:48 So this solution works perfectly! https://forum.lazarus.freepascal.org/index.php?topic=52236.0 ---------------------------------------------------------------------- Handoko · 2021-02-22 17:42 Good to hear you you've found a solution for it.