Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Disabling Quick Access Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabling Quick Access Bar

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Disabling Quick Access Bar
    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++)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.