Print Page | Close Window

How to control the customization on commandbars

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=5134
Printed Date: 04 October 2024 at 3:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to control the customization on commandbars
Posted By: simus
Subject: How to control the customization on commandbars
Date Posted: 25 September 2006 at 6:02am
Hi,
 
I would like to allow the user to Customize the Context Menu that are available in my application when right clicking on my app objects, just like it is possible with Toolbars and MenuBar using the standard customization.
 
For the moment what I do is, at start of customization I create a dummy CXTPToolbar where I add all the Context menu I want to. Then the user organize them as he wants. Then after customization I will get back the organization of the context menus by exploring them, and I'll use that to recreate them after.
 
Now the problem I see is that  the user can drag/drop items from the dummy toolbar to the standard toolbar or menu bar and vice versa.
 
I want to prevent the user to be able to drag/drop a CXTPControl from the dummy toolbar to any other Context menu that from the one it comes, I just want to let him reorganize the inside of the Context menu, does anyone have an idea on how to do that?
 
I saw the OnCustomizeDragEnter and OnCustomizeDrop virtual functions but they are on CXTPControl class, so it won't help I think.
 
Please help, Thanks a lot
 



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