Converting older XTP app to Office stype RibbonBar |
Post Reply |
Author | |
guru_florida
Senior Member Joined: 18 September 2009 Status: Offline Points: 105 |
Post Options
Thanks(0)
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
3) I'd recommend multi-toplevel windows instead of MDI. Ribbon + MDI is not optimal...
|
|
PokerMemento - http://www.pokermemento.com/
|
|
guru_florida
Senior Member Joined: 18 September 2009 Status: Offline Points: 105 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
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 |