Recent

Author Topic: [SOLVED] Why Tab event DrawTab is not firing?  (Read 3199 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
[SOLVED] Why Tab event DrawTab is not firing?
« on: August 15, 2014, 04:26:42 pm »
I don't understand why tab event drawtab is not firing? I put a break on it, but it won't break at the breakpoint.

I am using Lazarus 1.0.12 and fpc 2.6.2 on Linux OS.
« Last Edit: August 22, 2014, 10:08:10 pm by reltek »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Why Tab event DrawTab is not firing?
« Reply #1 on: August 15, 2014, 08:45:41 pm »
If you are referring to the OnDrawTab event of TTabControl then I don't think it is ever called. It is a placeholder for owner-draw capability that has not been implemented AFAIK.
The Lazarus TPageControl lacks owner-draw functionality as well.

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Why Tab event DrawTab is not firing?
« Reply #2 on: August 15, 2014, 08:52:30 pm »
Is there any workaround for this? maybe other using some other tools?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Why Tab event DrawTab is not firing?
« Reply #3 on: August 15, 2014, 10:47:56 pm »
You could try the customdrawn package which is distributed with Lazarus (but not installed in the IDE by default because it is under development), which is completely custom drawn. Its TCDPageControl offers 3 events (OnChange, OnChanging, OnUserAddedPage).
Alex22 has also written an anti-aliased custom-drawn pagecontrol, see
http://forum.lazarus.freepascal.org/index.php/topic,24666.msg148964.html#msg148964

Anyway, what are you actually wanting to do? It may be possible with the Lazarus TPageControl.

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Why Tab event DrawTab is not firing?
« Reply #4 on: August 22, 2014, 04:57:26 pm »
Thank you Howard, but I found something else. Its is called ATTAbs component. It works on Windows and Linux Lazarus.

 

TinyPortal © 2005-2018