Print Page | Close Window

Why do I get a list of toolbars in QAT popup menu

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=13243
Printed Date: 26 June 2024 at 6:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why do I get a list of toolbars in QAT popup menu
Posted By: DavidH
Subject: Why do I get a list of toolbars in QAT popup menu
Date Posted: 23 January 2009 at 11:19am
This is about the small arrow at the right of the Quick Access Toolbar on a Ribbon.

I have the problem that the toolbars that I add to the CommandBars are shown in the drop down menu when clicking this arrow.

I'm aware that (according to the Fluent UI license) toolbars cannot be used in combination with the ribbon, but I use them as floating mini frames to facilitate hundreds of elements that are not suited to put into galleries.

My code to add a toolbar:

class CRailPartsToolBar : public CXTPToolBar { ... }

CXTPCommandBars* pCommandBars = GetCommandBars();

pCommandBars->Add("Name 1" , xtpBarFloating, RUNTIME_CLASS(CRailPartsToolBar));


With this, a menu item 'Name 1" appears in the popup menu along with the normal 'Customize' items.

I cannot find where in the Codejock sources this happens, or how to prevent this from happening.

Any help will be highly appreciated!



Replies:
Posted By: DavidH
Date Posted: 27 January 2009 at 2:20pm

Hi all,

My problem has been resolved through regular support.

The solution is to call:

pToolbar->SetContextMenuPresent(FALSE);

David.
file:///C:%5CUsers%5CDavid%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml -
file:///C:%5CUsers%5CDavid%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml -


Posted By: ogreen
Date Posted: 27 February 2009 at 12:50pm
David,

Where do you place the command pToolbar->SetContextMenuPresent(FALSE)?

Thanks,
Owen



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