Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to add "Recent documents" to SystemButton Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add "Recent documents" to SystemButton Menu

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

Joined: 17 December 2008
Location: Netherlands
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote adwild2 Quote  Post ReplyReply Direct Link To This Post Topic: How to add "Recent documents" to SystemButton Menu
    Posted: 05 February 2009 at 3:14am

When you open the system menu in Microsoft Word you see the recently opened documents right of the other menu options. How can i achieve this with the CodeJock CommandBars Control? An expample would be great, don't mind in what programming language.

I probably have to attach a commandbar of type CXTPRibbonSystemPopupBarPage to the System Button Menu, but haven't found an example how this should be done.
 
MS Word example:
 
Greetings,
Arie
( Xtreme SuitePro (ActiveX) version 12.1.1 )
 
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP SP3 (32bit)
Language: Progress OpenEdge 10.2A
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2009 at 10:10am
I need solution too!
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2009 at 11:33am
I have find a solution!

Quote
control = CommandBarsInst.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListCaption");
SystemMenuInst.CommandBars.Controls.AddControl(control, null);

item = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem");
item.Caption = "first recent item";
SystemMenuInst.CommandBars.Controls.Add(item, null);


BUT!

How I can add buttons to bottom of system menu (like "Exit Word") ???
Back to Top
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2009 at 5:14pm
Hello,
im trying to use this:
 

        ' MRU
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemRecentFileList")
        Control.Caption = "Onlangs geopende documenten"
        Control.BeginGroup = True
        Control.Id = XTP_ID_FILE_MRU
        .AddControl Control
        CommandBars.RecentFileList.Add "file1.txt"
        CommandBars.RecentFileList.Add "file2.txt"
        CommandBars.RecentFileList.Add "file3.txt"
        ' ....
        ' EXIT
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarButton")
        Control.Caption = "Exit from Word"
        Control.Id = ID_APP_EXIT
        .AddControl Control
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0

Platform: Windows Vista (32bit) - SP 2

Language: Visual Basic 6.0 (SP6)

Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2009 at 6:14am
Thanks! It works!
Back to Top
JvdH View Drop Down
Groupie
Groupie


Joined: 09 May 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote JvdH Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2009 at 4:20am

Hello,

How can I add items to the recent list at runtime?
Product: Xtreme SuitePro (ActiveX) version 13.2.1
Platform: Windows 7 (64bit)
Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2009 at 2:16am
Originally posted by Albert1 Albert1 wrote:

 
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem")
        Control.Caption = "C:\Filename\try.doc"
        Control.Id = ID
        .AddControl Control
 
NOTE: i have changed class to CXTPRibbonControlSystemPopupBarListItem
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
Back to Top
JvdH View Drop Down
Groupie
Groupie


Joined: 09 May 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote JvdH Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2009 at 5:11pm
Originally posted by joeliner joeliner wrote:

Originally posted by Albert1 Albert1 wrote:

 
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem")
        Control.Caption = "C:\Filename\try.doc"
        Control.Id = ID
        .AddControl Control
 
NOTE: i have changed class to CXTPRibbonControlSystemPopupBarListItem
This doesnt really work runtime?
Product: Xtreme SuitePro (ActiveX) version 13.2.1
Platform: Windows 7 (64bit)
Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2009 at 2:03am
CommandBars.RecentFileList.Add works out out of the box. see sample.
 
 
If you want to add simple command button then use CXTPRibbonControlSystemPopupBarListItem
 
regards,
 
 
 
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2009 at 5:14am
Hi,

is there a way to get the status of the recent files entries, e.g. Pinned/Unpinned by code?

Thanks, Peter




Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2009 at 7:17am
Not possible at the moment.
 
Probably CJ can add Pinned Property to RecentFileList
 
regards,
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
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.141 seconds.