![]() |
CXTPCustomizeSheet and Multiple MDI Document Types |
Post Reply ![]() |
Author | |
grahamf ![]() Groupie ![]() ![]() Joined: 29 October 2009 Location: United States Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 02 December 2009 at 4:48pm |
Hi there,
I am continuing the evaluation of ToolKit Pro 13.1 to replace RogueWave's Objective Toolkit and have made a lot of progress. However I have another question/problem with regard to CXTPCustomizeSheet and MDI document commands. We have a number of MDI document types, and I am looking to add each document type's set of commands (that is, menus) to the customise pages. However, when I use the AddCategories(resourceID) method on the command and keyboard pages, I wind up with duplicate commands (for example, File->Open...), which is not very helpful. My question therefore is: 1) Am I missing something on how to prevent duplicate commands being added to the customise pages (command and keyboard pages)? I have fiddled with the MDITabWindow sample but cannot get it to not add duplicate command entries, and I don't see any sample that makes two AddCategories() calls to say the command page; 2) Given that it isn't currently possible to prevent duplicates with the existing ToolKit Pro 13.1, would I be correct in assuming I would need to derive from the CXTPCustomizeCommandsPage and CXTPCustomizeKeyboardPage classes, and cull out the duplicate CXTPControl entries before display? Thanks in advance. Cheers, Graham |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Most easy way it to create additional Menu template that will have all controls you need for Customize pages.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |