![]() |
How to control the customization on commandbars |
Post Reply ![]() |
Author | |
simus ![]() Groupie ![]() Joined: 08 July 2005 Status: Offline Points: 43 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
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 |