Print Page | Close Window

ExpandButtonsAlways Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1026
Printed Date: 25 April 2024 at 2:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ExpandButtonsAlways Problem
Posted By: Kenneth
Subject: ExpandButtonsAlways Problem
Date Posted: 05 August 2004 at 11:53am

In Xtreme Toolkit Pro, versions 9000 and 9100, if you set bShowExpandButtonsAlways=FALSE, the command barswill not align to the application right border correctly.  This can be seen by adding:

 GetCommandBars()->GetCommandBarsOptions()->bShow ExpandButtonAlways = FALSE;

in the Mainfrm.cpp, OnCreate function in the CommonControls sample.  There are four command bars in this sample, and all have the problem except for the on commandbar that has three radio buttons.

In addition to not aligning correctly to the application right border, they will also leave a gap between two adjoining commandbars on the same row.

 




Replies:
Posted By: Oleg
Date Posted: 10 August 2004 at 5:31am

Was bug with Toolbars with single buttons.

To fix in CXTPToolBar::CalcDockingLayout replace

if (dwMode & LM_HORZDOCK)
      sz.cx = max(sz.cx, szMin.cx + 11); else
      sz.cy = max(sz.cy, szMin.cy + 11);

to

    if (m_pControls->GetVisibleCount() > 1)
    {    
     if (dwMode & LM_HORZDOCK)
      sz.cx = max(sz.cx, szMin.cx + 11); else
      sz.cy = max(sz.cy, szMin.cy + 11);
    }

 

 



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


Posted By: Kenneth
Date Posted: 11 August 2004 at 7:57pm
That fixed it.  Many thanks for this and the XTColorDialog fix.



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