Print Page | Close Window

How to disable the toolbar popup

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=23340
Printed Date: 27 April 2024 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to disable the toolbar popup
Posted By: BobC
Subject: How to disable the toolbar popup
Date Posted: 22 May 2017 at 11:52pm
When a user right-clicks on a toolbar, a popup menu appears that lets the user uncheck the toolbar and make it disappear. After that, the user can right-click on the menu bar to get the toolbar back.

However, my application does not have a menu bar. How do I disable the ability to turn off the toolbar, because without the menu bar, I don't see a way for the user to get the toolbar back.

I have been looking through the documentation, and thought CXTPCommandBars::GetToolbarsPopup() would lead me to the solution, but that looks like a dead end.



Replies:
Posted By: BobC
Date Posted: 25 May 2017 at 9:01am
Answered my own question: CXTPToolBar::SetCloseable() does what I need. Don't know why I didn't see that method earlier....



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