Print Page | Close Window

Tabbed Toolbar.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5928
Printed Date: 12 November 2025 at 3:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabbed Toolbar.
Posted By: venkyhyd
Subject: Tabbed Toolbar.
Date 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.
 
 



Replies:
Posted By: Oleg
Date Posted: 28 December 2006 at 3:12pm
Hi,
You can call pToolBar->SetMinimumWidth...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: venkyhyd
Date 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
 
 


Posted By: venkyhyd
Date Posted: 04 January 2007 at 4:43am
Any suggestions on this....


Posted By: Oleg
Date 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


Posted By: venkyhyd
Date 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


Posted By: venkyhyd
Date Posted: 08 January 2007 at 12:10am
Any suggestions on this.....


Posted By: Oleg
Date 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


Posted By: venkyhyd
Date Posted: 08 January 2007 at 8:52am
Hello
Already logged a issuetrak# 11581
thnks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net