Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Converting older XTP app to Office stype RibbonBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedConverting older XTP app to Office stype RibbonBar

 Post Reply Post Reply
Author
Message
guru_florida View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2009
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru_florida Quote  Post ReplyReply Direct Link To This Post Topic: Converting older XTP app to Office stype RibbonBar
    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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
guru_florida View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2009
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru_florida Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
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.203 seconds.