CXTPToolBar question |
Post Reply |
Author | ||
yoavo
Senior Member Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 23 May 2004 at 8:12am |
|
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
pCommandBars->GetCommandBarsOptions()->bShowExpandButt onAlways = FALSE;
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
|
How about being able to turn it off for a selected toolbar? Say I create an CXTPControlCustom animation bar and want to be able to turn it off.
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
You can override CXTPToolBar: class CToolBoxBar : public CXTPToolBar CSize CalcDockingLayout(int nLength, DWORD dwMode, int nWidth); }
IMPLEMENT_XTP_COMMANDBAR(CToolBoxBar, CXTPToolBar)
CSize CToolBoxBar::CalcDockingLayout(int nLength, DWORD dwMode, int nWidth) return sz;
usage: CXTPToolBar* pToolBox = (CXTPToolBar*) but you must make CXTPToolBar::CalcDockingLayout virtual (in next version it will be) |
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
|
Ok, I was able to remove the expand button. However if I move the resulting CXTPToolBar to the right side of the window, it stops from what appears to be the width of the ExpandButton, form the right side of the window. In contrast, if I move a toolbar with the ExpandButton visible, the toolbar will be flush with the right side of the window.
|
||
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
|
I guess the lack of response means it cannot be done. Is this a Microsoft shortcoming or a codejock shortcoming?
|
||
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
|
This problem can be seen in the ToolKitPro examples, CommonControls when you add the following to the MainFrm OnCreate function: GetCommandBars()->GetCommandBarsOptions()->bShow ExpandButtonAlways = FALSE; Try to move the Animation, slider and the one with the words "Opened Documents" toolbars to the far right of the window and you can see it will stop exactly one dropdown button width from the right side. |
||
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
|
Found the problem in the codejock software and fixed it.
|
||
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 |