Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Weird TabToolbar behavior
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Weird TabToolbar behavior

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: Weird TabToolbar behavior
    Posted: 27 July 2009 at 9:50pm
Using 13.1.0:
 
I have a tabbed toolbar (CXTPTabToolbar) with several tabs and varying number of buttons.  If I select a tab that only has a couple of small buttons, the toolbar collapses to the minimum possible size, which results in all but the current tab disappearing (and the current label only being partially displayed), and a pair of scroll arrows taking their place.
 
Since I can't imagine why I would want my tab labels to disappear, is there any way to tell the tabbed toolbar to always display all of the tabs (other than forcing the minimum size to be the window width)?
 
Rex
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2009 at 12:41am
Hi,
 
Call pToolBar->SetMinimumWidth(..) method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2009 at 8:08am
That's what I've done, but it requires that I know the greater of the width of the tab labels and the widest toolbar.  That gets cumbersome when the toolbar is user-defined.
 
Rex
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.