Print Page | Close Window

CXTPCustomizeSheet and Multiple MDI Document Types

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=15767
Printed Date: 18 July 2025 at 5:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCustomizeSheet and Multiple MDI Document Types
Posted By: grahamf
Subject: CXTPCustomizeSheet and Multiple MDI Document Types
Date 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




Replies:
Posted By: Oleg
Date Posted: 04 December 2009 at 8:02am

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



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