Print Page | Close Window

Configuration Options

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=5669
Printed Date: 04 October 2024 at 5:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Configuration Options
Posted By: Simon HB9DRV
Subject: Configuration Options
Date Posted: 03 December 2006 at 3:41pm
Hi Oleg,

I'm lost - simple command bar problem.

The command bar may not wrap, instead when there is not enough room to show all controls I want the expand button, The user may not customise the command bar.

So what options do I enable so that my command bar only shows the expand button when there is not enough room and does not allow customisation?

I've tried many options and failed, must be getting late :-(

Many thanks for your excellent support,


-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 04 December 2006 at 12:37am
Hi,
here property:
GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;


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


Posted By: Simon HB9DRV
Date Posted: 04 December 2006 at 3:09am
Originally posted by oleg oleg wrote:

Hi,
here property:
GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;

Hi - doesn't work - I guess I have a conflict somewhere. Here's what I am doing:

pToolBar = pCommandBars->Add(_T("Standard"), xtpBarTop);

pToolBar->LoadToolBar(IDR_TOOLBAR_STD_INPUT);

pToolBar->GetControls()->CreateOriginalControls();
pToolBar->SetVisible(TRUE);
pToolBar->EnableDocking(xtpFlagAlignTop | xtpFlagHideWrap | xtpFlagStretched);
pToolBar->ModifyBarStyle(CBRS_GRIPPER, 0);
pToolBar->SetContextMenuPresent(false);


then
 
pCommandBars->GetCommandBarsOptions()->bShowPopupBarToolTips = FALSE;
pCommandBars->GetCommandBarsOptions()->ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault);
pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;


However when there is not enough room for the toolbar I do not get the >> menu on the right :-(


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 04 December 2006 at 11:01am
Think problem in xtpFlagStretched - if you set stretched flag it will not work.

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


Posted By: Simon HB9DRV
Date Posted: 04 December 2006 at 12:44pm
Originally posted by oleg oleg wrote:

Think problem in xtpFlagStretched - if you set stretched flag it will not work.

Thanks - I'll try this.

Maybe you could add this as a request / bugfix please :-)


-------------
Simon HB9DRV



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