RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomRibbon.AddRecentItem Method

Add new entry into Recent Items list.

Pascal
function AddRecentItem(const FileName: string): Integer;
C++
__fastcall int AddRecentItem(const AnsiString FileName);

Call AddRecentItem to add a new entry into the Recent Items list to the right of the Application Menu. The new entry is automatically added to the top of the Recent items list, and if an entry with the same filename already exists, it is deleted. 

This method should only be called when the command type for the application menu is set to ctRecent

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!