Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPCustomizeSheet and Multiple MDI Document Types
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPCustomizeSheet and Multiple MDI Document Types

 Post Reply Post Reply
Author
Message
grahamf View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2009
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote grahamf Quote  Post ReplyReply Direct Link To This Post Topic: CXTPCustomizeSheet and Multiple MDI Document Types
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.027 seconds.