Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Tabbed Toolbar.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabbed Toolbar.

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


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Topic: Tabbed Toolbar.
    Posted: 28 December 2006 at 9:46am
hello
 
When try to undock / float the Tabbed Toolbar. The tab size get resized based on the buttons in that particular tab. Can we make the tab size standard instead of resetting it based on the no of buttons in the tab.
 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 28 December 2006 at 3:12pm
Hi,
You can call pToolBar->SetMinimumWidth...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2006 at 4:15am

Hello

pToolBar->SetMinimumWidth would set the minimum width of the Toolbar it works but here I manipulated the TabToolbar so that when ever we try to float or dock it, its always vertical instead of horizontal. And SetMinimumWidth would work only in case the toolbar is Horizontally docked or floating.

I guess we should be handling that in CXTPControls::CalcDynamicSize, here in this function it would check for the no of buttons exist in the tab and then it would calculate the size of the toolbar (sumation of size of buttons) and the set the size. Instead of based on the no of buttons can we set the minimum height of the tabtoolbar.
 
Thnks
 
 
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2007 at 4:43am
Any suggestions on this....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 04 January 2007 at 5:59am
Hi,
I not sure where problem... You want to set height of toolbar if no buttons in some tab?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 3:43am
Hello
 
 
No My question is how can i set the minimu hieght of the tab when undocked irrespective of the no of buttons each tab has.
 
I derived a class from CXTPTabToolBar and overridden this function, CalcDynamicLayout and handled the size returned from
CSize sz = CXTPToolBar::CalcDynamicLayout(nLength, nMode);
 
and checked if sz.cy < 500 then reset the size as follows

int maxY= GetSystemMetrics(SM_CYSCREEN);

if(sz.cy < 500)

sz.cy = maxY - 50;

Here the question frames is in two ways:
1. Imagine a tab1 as got 15buttons and a tab2 as 2 buttons only now when we undock it with keeping tab1 as active the size (height) of the Tabbed toolbar would be computed with the all the buttons in it. and if we keep tab2 active and undock it the height of the tabbed toolbar would be only based on the 2 buttons present in tab2. So here how can me maintain the average height irrespective of the buttons each tab contain.
2. Now how can we make the toolbar when undocked display the buttons in column wise, i.e, restricting it to have minimum height and can increase in width (keep increasing the columns based on the number of buttons)
thnks
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2007 at 12:10am
Any suggestions on this.....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 08 January 2007 at 2:57am
Hi,
 
Create issue in issuetrack, attach changed sample. I need see all changes you did.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2007 at 8:52am
Hello
Already logged a issuetrak# 11581
thnks
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.030 seconds.