![]() |
Tabbed Toolbar. |
Post Reply
|
| Author | |
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2006 at 3:12pm |
|
Hi,
You can call pToolBar->SetMinimumWidth...
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 January 2007 at 4:43am |
|
Any suggestions on this....
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2007 at 12:10am |
|
Any suggestions on this.....
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2007 at 8:52am |
|
Hello
Already logged a issuetrak# 11581
thnks
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |