Lazarus

Programming => LCL => Topic started by: jamie on June 01, 2021, 05:22:47 pm

Title: TtabControl, I want a rounded keystone shape for tabs ?
Post by: jamie 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?
Title: Re: TtabControl, I want a rounded keystone shape for tabs ?
Post by: winni 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
Title: Re: TtabControl, I want a rounded keystone shape for tabs ?
Post by: Martin_fr on June 01, 2021, 09:46:31 pm
IIRC unit LazControls  class ExtendedNotebook => it has some code that manages to paint onto the tabs.
Title: Re: TtabControl, I want a rounded keystone shape for tabs ?
Post by: jamie 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


TinyPortal © 2005-2018