Print Page | Close Window

Read ribbon bar files from CommandbarDesign?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=22533
Printed Date: 05 July 2024 at 11:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Read ribbon bar files from CommandbarDesign?
Posted By: Insad
Subject: Read ribbon bar files from CommandbarDesign?
Date 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



Replies:
Posted By: Insad
Date 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


Posted By: mcmastl
Date 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



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