TPageControl tab area OnMouseEnter OnMouseLeave events

Posted by daemon_x on Stack Overflow See other posts from Stack Overflow or by daemon_x
Published on 2010-12-28T09:38:36Z Indexed on 2010/12/28 9:54 UTC
Read the original article Hit count: 122

Filed under:
|

Hello,

I need to catch the "OnMouseEnter" and "0nMouseLeave" for a certain area of the TPageControl component. With that specific area I mean the whole "tab header" rectangle.

The problem is, that the page control doesn't catch the messages (I'm catching internal control messages CM_MOUSEENTER and CM_MOUSELEAVE) in the "empty" space.

screenshot

The aim for me is to draw a small arrow in the right empty side when user hovers in the red framed area (and drawing is just piece of cake) and erase it when leaves this area. And I'm don't care about the overflow of the tabs (which causes to draw scrolling double button) - that will never happen.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about winapi