madsnowman
Newcomer
- Joined
- Mar 29, 2006
- Messages
- 1
Sorry if this has been discussed before, but I couldn't find anything quite like my issue in the search results.
I've got a problem selecting tabs that are drawn within a custom TabControl class I've created. The class inherits from the standard TabControl and overrides the OnPaint method to draw the tabs. The size (and general look) of the tabs themselves is different depending on which tab is selected.
The problem is, I can't get the selectable area of the tabs to reflect their actual size. The selection hotspots for all the tabs are simply the hotspots that would occur if I had used the standard TabControl (where the hotspot is simply governed by the length of the Tab text). Overriding various Mouse events appears to be useless, due to the fact that they don't even register until the mouse enters these pre-defined hotspots.
Is there any way to define the selectable area without also writing a custom TabPage and TabPageCollection class?
Thanks in advance for any help!
~Josiah
I've got a problem selecting tabs that are drawn within a custom TabControl class I've created. The class inherits from the standard TabControl and overrides the OnPaint method to draw the tabs. The size (and general look) of the tabs themselves is different depending on which tab is selected.
The problem is, I can't get the selectable area of the tabs to reflect their actual size. The selection hotspots for all the tabs are simply the hotspots that would occur if I had used the standard TabControl (where the hotspot is simply governed by the length of the Tab text). Overriding various Mouse events appears to be useless, due to the fact that they don't even register until the mouse enters these pre-defined hotspots.
Is there any way to define the selectable area without also writing a custom TabPage and TabPageCollection class?
Thanks in advance for any help!
~Josiah