Click here to Skip to main content
14,334,249 members
Rate this:
Please Sign up or sign in to vote.
See more:
Looking to create a tabcontrol that always shows navigation arrows, regardless if the size is not big enough for the amount of tabs.

Is there a way to do this?

I've seen something similar in Java but no source.

Not even sure what to look for, perhaps force the control to send a message to create it navigation scroller?
Updated 15-Aug-14 3:39am
Sergey Alexandrovich Kryukov 14-Aug-14 22:54pm
It should not look like that. Using TabControl is a very simple thing. It means that you screwed up something, but how can we know where? This post makes no sense and is not helpful, unless you create and show minimal but comprehensive code sample and steps to reproduce the problem.
Ramza360 15-Aug-14 9:33am
The point of this post was to ask if it is possible to force the navigation arrows to remain, hence the sentence "Looking to create a tabcontrol that always shows navigation arrows, regardless if the size is not big enough for the amount of tabs."

Perhaps understanding the post should come first. Updated the question for clarity.
Sergey Alexandrovich Kryukov 15-Aug-14 11:09am
Oops! Sorry, I certainly misunderstood your question.

Now, the trouble with this approach is: the "navigation arrows" you mentioned, in a TabControl (by the way, you should better indicate which one are you interested in, full type name, but so far it does not matter) those arrows are not exactly navigational, they are like scrolling. The arrows only "expand the space", not change tab page selection. Therefore, if they function as they actually do, they would be useless when there is enough room for those tabs.

That said, you probably want to change the role of the arrows, to make the navigate. Hard to say for 100% sure, but it sounds to be difficult, or maybe nearly impossible, unless you create your own control not even inherited from TabControl, which is always an option.

Ramza360 18-Aug-14 12:10pm
Sergey, thanks for the information, it definitely helped. I think the custom control option just might be what I'll do, and keep track of tab index and visible tabs and such. Thought perhaps there was a message that could be used, however that message would never get called in the win API if not needed.

Thanks again!
Sergey Alexandrovich Kryukov 18-Aug-14 12:13pm
If you mean Windows message, I doubt it; more importantly, I would not recommend use Windows messaging in general case; it can compromise platform compatibility of your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100