Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Read ribbon bar files from CommandbarDesign?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Read ribbon bar files from CommandbarDesign?

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

Joined: 28 October 2004
Location: The Netherlands
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote Insad Quote  Post ReplyReply Direct Link To This Post Topic: Read ribbon bar files from CommandbarDesign?
    Posted: 09 February 2015 at 9:45am
Hello all,

I'm trying to get the exported XML from the CommandbarDesigner (RibbonBar) to work in my MFC app.

The sample in the TKP 16.4.0 seems to work but I can't figure out how to get such an XML exported from the CommandbarDesigner?
It seems that the sample was made in a very old version of the CommandbarDesigner?

I also need to import the images, which is not shown in the RibbonMDISample.
As does it lacks a sample on how you can use actions in the XML.

I tried reading the xcb file instead of the XML (See this thread: http://forum.codejock.com/forum_posts.asp?TID=16803).

This does work. Sort of..
The theming gets screwed up and the current theme needs to be applied again. This needs fixing somehow.
But the icons are also not read or shown in case :(

Can someone give me some info on how to get it working?

Regards,

Insad

Products in use: XTP version 13.4.2/15.3.1/16.4.0/17.3.0
Platforms: Win2003(R2)/Win2008(R2)/Win7/Win2011/Win8(.1)/Win2012(R2)/Win10 (x86/x64)
Langs: VC++ (MFC) 6/2005/2008/2013/2015/2017
Back to Top
Insad View Drop Down
Groupie
Groupie
Avatar

Joined: 28 October 2004
Location: The Netherlands
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote Insad Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2015 at 5:51am
Okay, I found why the icons where not shown.

After reading the XCB file I called my (old) LoadIcons() function which removed all other icons and loads the ones that where loaded in the old, programmed situation; which had other IDs.

Everything works now with the following exceptions:

- When I load the xcb file in a theme setting with Office2010(Black), the theming of the ribbon is a bit off; The first tab (home tab) is incorrectly drawn. When I change the theme then to another Office2010 setting (Blue for example) then everything is ok?

- After loading the xcb, when I change theming to Office2013(Word) the app crashes.. It looks like the resource DLLs for Office2013 are lacking information on how the ribbonbar should be drawn (missing FRAMETOPLEFT etc. entries)

It seems that the CommandbarDesigner isn't ready for Office2013?
It also lacks the look of the Office 2010 theme?

Insad
Products in use: XTP version 13.4.2/15.3.1/16.4.0/17.3.0
Platforms: Win2003(R2)/Win2008(R2)/Win7/Win2011/Win8(.1)/Win2012(R2)/Win10 (x86/x64)
Langs: VC++ (MFC) 6/2005/2008/2013/2015/2017
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2015 at 4:19pm
Insad,

Thank you for letting us know of this issue.  We have let our development team know to look further into the issue.  If the matter has been resolved please let us know. 
Luke McMasters, 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.142 seconds.