Print Page | Close Window

Disabling Quick Access Bar

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=17875
Printed Date: 28 November 2024 at 8:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabling Quick Access Bar
Posted By: cpede
Subject: Disabling Quick Access Bar
Date Posted: 14 February 2011 at 10:04am
I really having problems getting things to work with the Quick Access Bar. I have a custom made combobox, and when I add this to the ribbon and then add it to the quick access bar, the contents is not synchronized. This code does not seem to be enough:
 
 CXTPControlComboBox* pControlCombo = (CXTPControlComboBox*)pGroup->Add(xtpControlComboBox,DX_RIBBON_ID1);
 pControlCombo->GetCommandBar()->SetCommandBars(pCommandBars);
 pControlCombo->ModifyListBoxStyle(0,LBS_OWNERDRAWFIXED|LBS_HASSTRINGS);
 pControlCombo->SetWidth(200);
 pControlCombo->SetStyle(xtpButtonUndefined);
 pControlCombo->AddString(_T("Dummy"));
 pControlCombo->SetCurSel(0);
If I add e.g. the font name combobox in one of the samples, it seems to work. I probably need to wrap the whole thing into some kind of gallery for this to work?
 
 
Then, to get rid of the Quick Access Bar I call:
 
 pRibbonBar->ShowQuickAccess(FALSE);
 pRibbonBar->AllowQuickAccessCustomization(FALSE);
 
But it seems, that the vertical separator is not removed, which looks strange?
 
-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Oleg
Date Posted: 15 February 2011 at 2:43am
Hello,

Yes, you need add Update even and syncronie its ListItem/Text with some of your CMainFrame variable. Please check CustomThemes sample or RibbonSample.

2. Fixing separator for 15.0.2 HotFix .


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


Posted By: cpede
Date Posted: 23 February 2011 at 8:54am
Please also remember to remove the empty space (or line) left behind when disabling the Quick Access Bar when the frame theme is disabled!
 
Forget this, since it is probably not possible. When using Context tabs in the Ribbon there are displayed in that area.
 
-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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