Sign in Join
Wiki copytemporary

HistoryFiles/fr: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: HistoryFiles/fr

OldNewLine
1+### About
2+
3+This component store the recent files list into an .ini file and show the result into a menu. It's possibile to insert the list into any point of your menu. A method help you to have access of all property and method of the Menu Items so for example do you can specify the image of each items.
4+
5+The download contains the component, and two demo projects: one for Lazarus and one for Delphi.
6+
7+### Author
8+
9+Andrea Russo
10+
11+### License
12+
13+[LGPL](http://www.opensource.org/licenses/lgpl-license.php)
14+
15+### Download
16+
17+The latest stable release can be found on the [Lazarus CCR Files page](http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=208312).
18+
19+### Change Log
20+
21+- Version 1.2.1 2009/05/22 new demo compatible with latest Lazarus version (tested on Lazarus 0.9.26.2), new demo for Kylix 3 Open Edition;
22+- Version 1.2 mis à jour le 2009/05/22
23+
24+### Dependencies / System Requirements
25+
26+- None
27+
28+### Notes
29+
30+Status: Stable
31+
32+Issues: Tested on: Lazarus 0.9.18; Delphi 2,3,4,6,7,D2005,D2009 all personal or standard editions; Kylix 3 Open Edition
33+
34+### Installation
35+
36+Open the package HistoryLazarus.lpk, compile and install it.
37+
38+### Usage
39+
40+Properties
41+
42+------------------------------------------------------------------------
43+
44+- FileMustExist\
45+ If true the files that don't exists will be deleted from the history list\
46+ (default False)
47+
48+- IniFile\
49+ This is the name of the IniFile with full path\
50+ (default History.ini)
51+
52+- IniKey\
53+ This is the name of the key into the ini file
54+
55+- LocalPath\
56+ If specified all the files that have the path equal to LocalPath are shows into the list without the path.\
57+ If ShowFullPath is false this value it's indifferent.
58+
59+- MaxItems\
60+ This is the max lenght of the recent list showed and stored into the ini file (it's a lifo list).\
61+ (default 5)
62+
63+- ParentMenu\
64+ This is the TMenuItem parent of the history list.
65+
66+- Position\
67+ This is the insert position of the list into the parent menu.\
68+ The possible position is between 0 and the value of ParentMenu.Count
69+
70+- Separator\
71+ To divide the list by the other menu items if do you want.\
72+ Possible values: sepNone, sepTop, sepBottom, sepBoth\
73+ (default sepNone)
74+
75+- ShowFullPath\
76+ If true the file names are showed with full path otherwise not.\
77+ (see also the LocalPath property)\
78+ (default True)
79+
80+- ShowNumber\
81+ If true an item number is showed before the file name.\
82+ (default True)
83+
84+- Sorted\
85+ If true the list is sorted.\
86+ (default False)
87+
88+- Count\
89+ Indicates the number of items of the history list.\
90+ (read only)
91+
92+Methods
93+
94+------------------------------------------------------------------------
95+
96+- UpdateList(thefile: string)\
97+ Insert the file into the list and rebuild the history menu.
98+
99+- UpdateParentMenu\
100+ Rebuild the menu\
101+ (called also by UpdateList).
102+
103+Events
104+
105+------------------------------------------------------------------------
106+
107+- OnClickHistoryItem\
108+ procedure (Sender: TObject; Item: TMenuItem; const Filename: string)\
109+ When one history item is clicked this event returns the related file name.\
110+ By this event do you personalize the item menu clicked (properties like image or checked; or assign events like OnDrawItem,etc.).
111+
112+- OnCreateItem\
113+ procedure (Sender: TObject; Item: TMenuItem; const Filename: string)\
114+ When an history item is inserted into the parent menu this event returns this item and the filename.\
115+ By this event do you personalize each item menu (properties like image or checked; or assign events like OnDrawItem,etc.).
116+
117+Warning: Don't modify the tag property of the TMeuItem created by this component, this property is used into the source code.
118+
119+Warning: Don't re-assign the OnClick events that it's used by the component to return the filename (OnClickHistoryItem);
120+
121+### The Demo Example Application
122+
123+The zip file contains a demo project for Lazarus into the DemoLazarus folder.
124+
125+---
126+*From the Free Pascal wiki, page "HistoryFiles/fr", as it stood on 2023-02-05 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
127+Category: Pages for deletion

Back to history