Print Page | Close Window

Pinable recent files with Command Bars Designer

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16962
Printed Date: 20 June 2025 at 11:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pinable recent files with Command Bars Designer
Posted By: lfoster
Subject: Pinable recent files with Command Bars Designer
Date Posted: 16 July 2010 at 6:31am
Has anyone got a pinable recent files list in a System Button menu created using the Command Bars Designer?

There's a sample "RibbonControls" that has a pinable recent files list that works great, but it doesn't load an XCB file like my application.

When loading an XCB file, the pinable recent files list is displayed and you can indeed pin files, however, when you close the System Menu any pinned files are forgotten.

It seems that if you create the "CXTPRibbonControlSystemRecentFileList" through the OnCreateControls() method it works fine, but just loading the control from an XCB means the pinned items are forgotten.

I'm loading my XCB file like this:

CFile pFile(fullPath,CFile::modeRead);
     CArchive ar1(&pFile,CArchive::load | CArchive::bNoFlushOnDelete);
     GetCommandBars()->LoadDesignerBars(ar1);     
     ar1.Close();


and then i specify the following in the applications InitInstance()


m_pRecentFileList = new CXTPPinableRecentFileList(0, _T("Recent File List xxxxx"), _T("File%d"), 16);
     m_pRecentFileList->ReadList();


Any ideas anyone?

Thanks,

Lewis



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