Print Page | Close Window

CXTPRibbonControlSystemRecentFileList

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=16617
Printed Date: 27 November 2024 at 2:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonControlSystemRecentFileList
Posted By: Baldur
Subject: CXTPRibbonControlSystemRecentFileList
Date Posted: 21 April 2010 at 12:45pm
With the new version 13.3.1 i can create a very nice CXTPRibbonControlSystemRecentFileList
But i can't save/restore the RecentFileList with SaveStateToString/LoadStateFromString.
 
In your Documentation you provide the Save/LoadCommandbars, but this access the Registry and i want to store this in a file.
 
Please add the Save/Restore also to th SaveStateToString/LoadStateFromString methods.
 
On the other hand, you can provide a pinned-property for each item in the list, so i can save/restore it by myselve.



Replies:
Posted By: JantjeKeizer
Date Posted: 22 April 2010 at 5:26am
The recentfilelist is quite limited in terms of functionality. You have no control over it.
For that reason I switched to CXTPRibbonControlSystemPopupBarListCaption
Just create a 'CXTPRibbonControlSystemPopupBarListCaption' using the CreateCommandBarControl function and then fill that with
'CXTPRibbonControlSystemPopupBarListItem's created with that same function.
It allows you to get the exact same looks as the recent file list, except for the pins.
Then set its BeginGroup to true, or else it will look ugly.


Posted By: Baldur
Date Posted: 22 April 2010 at 6:00am
Thanks, but this i already use with a ListBox.
I hoped to use the pins-style. I think i must emulate this with a reportcontrol and use pin-icons by myself.


Posted By: CapoPezzio
Date Posted: 11 May 2010 at 3:55pm
Originally posted by JantjeKeizer JantjeKeizer wrote:

The recentfilelist is quite limited in terms of functionality. You have no control over it.
For that reason I switched to CXTPRibbonControlSystemPopupBarListCaption
Just create a 'CXTPRibbonControlSystemPopupBarListCaption' using the CreateCommandBarControl function and then fill that with
'CXTPRibbonControlSystemPopupBarListItem's created with that same function.
It allows you to get the exact same looks as the recent file list, except for the pins.
Then set its BeginGroup to true, or else it will look ugly.


I did this, and it looks really nice, but I get no Execute-event from the CommandBar when I hit one of the CXTPRibbonControlSystemPopupBarListItems in the list i created. Any idea?


-------------
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 (32bit)
Language: Visual Basic 6.0


Posted By: SuperMario
Date Posted: 12 May 2010 at 8:46am
you should see XTP_ID_FILE_MRU ID in execute event



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