![]() |
Disabling Quick Access Bar |
Post Reply ![]() |
Author | |
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 680 |
![]() ![]() ![]() ![]() ![]() 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++) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 680 |
![]() ![]() ![]() ![]() ![]() |
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++) |
|
![]() |
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 |