Print Page | Close Window

Ribbon Load/SaveCommandBars in RibbonResource

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=23337
Printed Date: 24 November 2024 at 10:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon Load/SaveCommandBars in RibbonResource
Posted By: mihey
Subject: Ribbon Load/SaveCommandBars in RibbonResource
Date Posted: 17 May 2017 at 7:16am
Hi,

I'm trying to integrate saving/loading Ribbon state into my application but without a success till now.

The strange thing is - this also doesn't work even with RibbonResource sample project.

I took the sample project, add:

void CMainFrame::OnClose()
{
     SaveCommandBars("CommandBars");
     CXTPMDIFrameWnd::OnClose();
}


handler and enhanced:
CMainFrame::OnCreate
{
...
        LoadCommandBars("CommandBars");

     return 0;
}


as the last line before the return.

If now I open the sample; minimize the ribbon or switch quick access bar below the ribbon and close it. I do not see any changes saved after I start the sample again.

My question - should this work in combination with CXTPRibbonBuilder together in general?
If yes - that do I do wrong?

Best regards,
Mikhail


XTP17.3.0, VC++, VS2015, Win 7x64

   



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