Recent

Author Topic: TtabControl, I want a rounded keystone shape for tabs ?  (Read 1731 times)

jamie

  • Hero Member
  • *****
  • Posts: 6090
TtabControl, I want a rounded keystone shape for tabs ?
« on: June 01, 2021, 05:22:47 pm »
I thought the Ttabcontrol had a flag for setting this type of tab?

I would be tempted to do the drawing my self however, it seems the owner draw property settings does nothing for you cause I don't see the OnDraw event published?
The only true wisdom is knowing you know nothing

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: TtabControl, I want a rounded keystone shape for tabs ?
« Reply #1 on: June 01, 2021, 08:16:26 pm »
Hi!

TTabControl and TPageControl are stubborn components.

My Workaround: Put a component with a canvas (PaintBox, Image, Panel ...) on the page and paint on it.

Until now I've got no other idea.

Winni

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: TtabControl, I want a rounded keystone shape for tabs ?
« Reply #2 on: June 01, 2021, 09:46:31 pm »
IIRC unit LazControls  class ExtendedNotebook => it has some code that manages to paint onto the tabs.

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: TtabControl, I want a rounded keystone shape for tabs ?
« Reply #3 on: June 01, 2021, 10:55:49 pm »
OK I see what the problem is now...

 Old Silly Billy out on his Yacht from the grand ocean is trying to assimilate us all with his demands of accepting the fact we will like the style of tabs he dictates us to use along with all the other non overridable controls..

 That's, fine. I did write a TTabs control way back for my Delphi, close to what they did back in the early days.. Maybe I can resurrect it from the long dead! I just hope it wasn't on the PC that crashed and burned on me then!  :o


The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018