Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-05

Is TTabControl deprecated?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

Hi,

I'm looking for component which have "pages" functionality, but I want draw it by my self. TPageControl and TNotebook has no events for that. Only TTabControl has OnDrawTab event and OwnerDraw property but it seems that this control is incomplete or abandoned:
- OnDrawTab event exists but where draw it? FCanvas is in private section and there is no public property
- OwerDraw property is not used anywhere

Regards.

Reply by email

zeljko
to Krzysztof
Krzysztof wrote 9 lines
Hi, I'm looking for component which have "pages" functionality, but I want draw it by my self. TPageControl and TNotebook has no events for that. Only TTabControl has OnDrawTab event and OwnerDraw property but it seems that this control is incomplete or abandoned: - OnDrawTab event exists but where draw it? FCanvas is in private section and there is no public property - OwerDraw property is not used anywhere

Tabs cannot be draw under most of widgetsets, but there are customdrawn controls and I think tab control is useable.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120522/7420f073/attachment.html>

Reply by email

Martin
to zeljko
zeljko wrote 26 lines
On Tuesday 22 of May 2012 20:14:36 Krzysztof wrote: > Hi, > > I'm looking for component which have "pages" functionality, but I want > draw it by my self. TPageControl and TNotebook has no events for that. > Only TTabControl has OnDrawTab event and OwnerDraw property but it > seems that this control is incomplete or abandoned: > - OnDrawTab event exists but where draw it? FCanvas is in private > section and there is no public property > - OwerDraw property is not used anywhere Tabs cannot be draw under most of widgetsets, but there are customdrawn controls and I think tab control is useable.

TExtendedNotebook does draw ON the tab on all platforms.

Well it doesnot draw the tab itnself, it only adds the arrows, when dragging tabs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120522/3eb186a1/attachment.html>

Reply by email