Print Page | Close Window

Converting older XTP app to Office stype RibbonBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=15208
Printed Date: 21 November 2024 at 5:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Converting older XTP app to Office stype RibbonBar
Posted By: guru_florida
Subject: Converting older XTP app to Office stype RibbonBar
Date Posted: 18 September 2009 at 1:15pm
Hi,
 
I am a long time XTP programmer. I am converting our application to the Ribbon bar style. Following the direction of the MDI sample app. I have everything loading up ok and the ribbon bar appears and seems to work. I don't have a default new document creating as most default MDI apps do, my app starts with a blank workspace. For initial simplicity I brought over the FILE and EDIT group and much of the init code completely from the MDI sample for testing.
 
1. When I use the New command, it seems the menu merging behaviour happens when the new doc/view is created and my ribbon bar starts showing all the File|Edit|View|etc menu options from the old style menus and the Ribbon groups become empty. I have looked over the MDI sample. It still has the document menu resource, and I can't find any code that prevents the menu merge.
 
2. I have borrowed the shinygears.png for the command icon for now, but it seems to use that png AND also overlay my application icon onto the command button...I used pControlFile->SetIconId(IDB_GEAR).
 
Thanks,
Colin


-------------
----
http://www.colinmackenzie.net/
Electronics, Programming, Robotics, CNC



Replies:
Posted By: znakeeye
Date Posted: 21 September 2009 at 4:03pm
3) I'd recommend multi-toplevel windows instead of MDI. Ribbon + MDI is not optimal...

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: guru_florida
Date Posted: 23 September 2009 at 11:41am
Originally posted by znakeeye znakeeye wrote:

3) I'd recommend multi-toplevel windows instead of MDI. Ribbon + MDI is not optimal...
Changing the windowing of our mature application is not really an option. The sample app I am following is MDI.
 
What do you mean by non-optimal? Are you referring to execution performance? usability?
 
Colin


-------------
----
http://www.colinmackenzie.net/
Electronics, Programming, Robotics, CNC


Posted By: znakeeye
Date Posted: 24 September 2009 at 11:38am
Look at Word XP/2003/2007. No MDI...
Look at Office XP/2003/2007. No MDI...
 
I'm not saying MDI is worse than the other, but modern applications tend to move away from it.
 
("optimal" as in usability)


-------------
PokerMemento - http://www.pokermemento.com/



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