Sign in Join
Wiki copytemporary

Lazarus Tutorial/it: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11*This is the start of a Lazarus Tutorial. Please feel free to add your experiences to it.*
22
33## Panoramica
44
55Lazarus è un strumento di sviluppo libero per il compilatore Free Pascal, anche esso gratis e open source. L'IDE Lazarus ([screenshot](http://lazarus-ccr.sourceforge.net/kbdata/lazide.jpg)) è uno stabile e ricco ambiente di sviluppo per la creazione di applicazioni grafiche e da console. Lazarus attualmente funziona su GNU/Linux, Mac OS X e Win 32 e fornisce un editor di codice personalizzabile ed un ambiente visuale per la creazione di form che include un package manager, un debugger ed una GUI completa, integrata con il compilatore Free Pascal.
66
77## Si inizia - Il tuo primo programma in Lazarus!
88
99Scarica, [[Installing Lazarus|installa]] ed esegui Lazarus con il quale sarà disponibile il compilatore FreePascal. Diverse finestre compariranno sul desktop. Il menù principale in alto, L'Object Inspector sulla sinistra, l'editor sorgente di Lazarus che occupa gran parte del desktop ed una finestra Form1 già pronta che invece occupa l'editor sorgente.
1010
1111Nella finestra del menù in alto, sotto la linea del menù c'è una riga di tab. Se la tab 'Standard' non è ancora selezionata, selezionala cliccandoci con il mouse. Quindi cerca l'icona del pulsante (un rettangolo con la scritta 'OK') e cliccaci con il mouse. Quindi clicca sulla finestra Form1, in un punto qualsiasi a sinistra a partire dal centro. Un rettangolo ombreggiato con il nome "Button1" comparirà. Clicca ancora sul pulsante nella Standard tab quindi clicca ancora nel Form1 a destra dal centro: comparirà un rettangolo con il nome 'Button2'.
1212
1313Ora clicca sul pulsante Button1 per selezionarlo. L'Object Inspector visualizzerà le proprietà dell'oggetto Button1. Vicino in alto c'è una proprietà che si chiama 'Caption' con visualizzato il valore 'Button1'. Clicca su questo riquadro e cambia 'Button1' con 'Press'. Se premi Enter o click in un altro riquadro, vedrai l'etichetta del primo pulsante su Form1 cambiato in 'Press'. Ora clicca sulla Events tab sull'Object Inspector per vedere i vari eventi che sono associati al pulsante. Questi includono OnClick, OnEnter, OnExit etc. Seleziona il riquadro a destra di OnClick: una piccolo pulsante con tre puntini compariranno. Clicca su questo. Sarai reindirizzato automaticamente sull'editor di codice e il cursore sarà collocato nel mezzo. Modifica il codice come segue:
1414
15-`procedure TForm1.Button1Click(Sender: TObject);`\
16-` begin`\
17-`   {now type:}    Button1.caption := 'Press again';`\
18-`   {the editor has already completed the procedure with}`\
19-` end;`
15+``` pascal
16+procedure TForm1.Button1Click(Sender: TObject);
17+ begin
18+ {now type:} Button1.caption := 'Press again';
19+ {the editor has already completed the procedure with}
20+ end;
21+```
2022
2123Premi F12 per selezionare la finestra Form1 anzichè l'editor di codice. Ora modifica le proprietà di Button2: clicca su Button2 per visualizzare le sue proprietà nel Object Inspector. Cambia la proprietà Caption 'Exit' al posto di 'Button2'. Ora seleziona la tab degli eventi e clicca sul riquadro OnClick. Clicca su .... . Dopo verrai reindirizzato all'interno dell'editor di codice all'interno di un altra procedura. Modifica il codice come segue:
2224
23-` procedure TForm1.Button2Click(Sender: TObject);`\
24-` begin`\
25-` {now type:}   Close;`\
26-` {the editor has already completed the procedure with} `\
27-` end;`
25+``` pascal
26+ procedure TForm1.Button2Click(Sender: TObject);
27+ begin
28+ {now type:} Close;
29+ {the editor has already completed the procedure with}
30+ end;
31+```
2832
2933Premi F12 per vedere la finestra Form1 di nuovo. Sei pronto per compilare ora: Il modo più semplice per farlo è selezionare 'Esegui' dal menù principale in alto con l'opzione run che si trova nel sotto-menù. In alternativa potresti semplicemente premere F9. Questo prima eseguirà la compilazione e dopo (se è andato tutto bene) il link, quindi eseguirà il tuo programma.
3034
3135Diverse finestre di testo appariranno e diversi tipi di messaggi verranno visualizzati, infine la tua finestra Form1 riapparirà ma senza la griglia di punti. Questa è la finestra principale della tua applicazione e sta aspettando che premi i pulsanti oppure che ci interagisci.
3236
3337Prova cliccando sul pulsante 'Press'. Noterai che questo cambia in 'Press again'. Ora clicca sul pulsante 'Exit'. La finestra si chiuderà ed il programma cesserà di funzionare. La finestra orginale Form1 con la griglia di punti riapparirà, pronta ad accettare altre attività di modifica.
3438
3539Puoi salvare il tuo lavoro ora selezionando Project \> Save Project As \> il tuo file .pas selezionato.
3640
3741### Seconda sessione
3842
3943Apri nuovamente il progetto che hai salvato. Sulla finestra Form1 clicca sul pulsante 'Press' (Button1) per selezionarlo. Seleziona la tab 'Events' sull'Object Inspector, clicca sul riquadro a destra dopo OnClick, clicca sui puntini (…), per ritornare sul punto esatto dell'editor sorgente.
4044
4145Modifica il codice come segue:
4246
4347procedure TForm1.Button1Click(Sender: TObject);
4448
45-`{Makes use of the Tag property, setting it to either 0 or 1}`\
46-` begin`\
47-`   if Button1.tag = 0 then`\
48-`   begin`\
49-`     Button1.caption := 'Press again';`\
50-`     Button1.tag := 1`\
51-`   end else`\
52-`   begin`\
53-`     Button1.caption := 'Press';`\
54-`     Button1.tag := 0`\
55-`   end`\
56-` end;`
49+``` pascal
50+{Makes use of the Tag property, setting it to either 0 or 1}
51+ begin
52+ if Button1.tag = 0 then
53+ begin
54+ Button1.caption := 'Press again';
55+ Button1.tag := 1
56+ end else
57+ begin
58+ Button1.caption := 'Press';
59+ Button1.tag := 0
60+ end
61+ end;
62+```
5763
5864Salva il tuo lavoro, ricompila ed esegui. Il pulsante sinistro ora cambierà in due messaggi alternati.
5965
6066Il resto spetta a te!
6167
6268Se preferisci scrivere programmi console o text-based (per esempio se stai seguendo un corso di base di programmazione Pascal, o hai bisogno di scrivere programmi per l'uso in modalità batch o per programmazione di sistema), è possibile comunque utilizzare Lazarus per modificare, compilare ed eseguire i tuoi programmi. Diventa un ambiente ideale per lo sviluppo in Pascal. Guarda [[Console Mode Pascal]].
6369
6470## L'Editor
6571
6672Quando si esegue Lazarus per la prima volta, appariranno sul proprio desk-top una serie di finestre autonome separate o fluttuanti.
6773
6874La prima, in esecuzione sulla parte superiore del desk-top, è intitolata **Lazarus Editor vXXXXXX - project1** (che verrà successivamente modificata per riflettere il nome del proprio progetto attualmente aperto). Questa è la finestra principale di controllo del proprio progetto e contiene il menù principale e la Component Palette (NdT: schede dei componenti).
6975
7076![](/wiki-images/d/da/It_lazmain_GTK2.png)
7177
7278Sulla riga sotto la barra del titolo c'è il *Menù Principale* con le consuete voci per File, Modifica, Cerca, Vista funzioni e così via, ed alcune selezioni che sono specifiche di Lazarus. Sotto a questo a sinistra c'è un gruppo di BitButtons (che permettono un accesso rapido a particolari opzioni del Menù Principale) e sulla destra c'è la Component Palette.
7379
7480Sotto la finestra dell'Editor di Lazarus apparirà sulla sinistra la finestra dell' **[Object Inspector](http://lazarus-ccr.sourceforge.net/kbdata/objinsp.jpg)** e sulla destra il **[Lazarus Source Editor](http://lazarus-ccr.sourceforge.net/kbdata/editor.jpg)**. Ci può essere un'altra finestra più piccola, intitolata **[Form1](http://lazarus-ccr.sourceforge.net/kbdata/blankform.jpg)**, sopra alla finestra del Lazarus Source Editor. Se non è visibile direttamente, può venire visualizzata premendo il tasto **F12**, che scambia la vista tra il Source Editor e la Form. La finestra della Form è quella su cui si costruirà l'interfaccia grafica della propria applicazione, mentre il Source Editor è la finestra che mostra il codice Pascal associato all'applicazione che si sta sviluppando. Il funzionamento dell'Object Inspector è discusso in maggiore dettaglio più avanti, durante la descrizione della Component Palette.
7581
7682Quando si inizia un nuovo progetto (o all'esecuzione iniziale di Lazarus) verrà costruita una Form predefinita, composta di uno spazio nel quale c'è una griglia di punti che facilita il posizionamento dei componenti della form e una barra nella parte superiore che contiene i consueti pulsanti **Minimizza**, **Massimizza** e **Chiudi**. Se si clicca con il cursore del mouse su qualsiasi parte di questo spazio, si vedranno le proprietà di questa form elencate sull'Object Inspector a sinistra del desk-top.
7783
7884Altre finestre che potrebbero divenire visibili durante l'utilizzo: il **[Project Inspector](http://lazarus-ccr.sourceforge.net/kbdata/projinsp.jpg)**, che contiene il dettaglio dei file inclusi nel proprio progetto, e permette di aggiungere file o di cancellarli dal proprio progetto; la finestra **Messaggi**, che mostra i messaggi del compilatore, gli errori o i rapporti di sviluppo del proprio progetto; se Lazarus viene eseguito da una finestra di terminale, tale finestra rimane visibile ed anche in essa si vedranno i messaggi del compilatore.
7985
8086### Il Menù Principale
8187
8288For a detailed description of every menu item which is accessible from the Lazarus IDE Main Menu, please refer to the [[Main menu/it]] page.
8389
8490### The Button bar
8591
8692A small toolbar area on the left of the main editor window, just below the Main Menu and to the left of the Component Palette, contains a set of buttons which replicate frequently-used Main Menu selections:
8793
8894
8995**New unit**, **Open** (with a down-arrow to display a drop-down list of recently used files), **Save**, **Save all**, **New Form**, **Toggle Form/Unit** (ie show either form or source code of Unit), **View Units**, **View Forms**, **Run** (ie compile and Run), **Pause**, **Step Into**, **Step over** (the last two are Debugger functions).
9096
9197## The Component Palette
9298
9399A Tabbed toolbar which displays a large number of icons representing commonly used components for building Forms.
94100
95101Each tab causes the display of a different set of icons, representing a functional group of components. The left-most icon in each tabbed group is an obliquely leftward-facing arrow, called the Selection Tool.
96102
97103If you allow the mouse cursor to hover over any of the icons on the Component Palette, without clicking on the icon, the title of that component will pop-up. Note that each title begins with a 'T' - this signifies 'Type' or more accurately 'Class' of the component. When you select a component for inclusion in a form, the [[Class]] is added to the **[[Type|type]]** section of the **[[Interface|interface]]** part of the [[Unit]] (usually as part of the overall TForm1), and an **instance** of that class is added to the **[[Var|var]]** section (usually as the variable Form1). Any **Methods** that you design to be used by the Form or its Components (ie [[Procedure|Procedures]] or [[Function|Functions]]) will be placed in the **[[Implementation|implementation]]** part of the Unit
98104
99105In the following list of the Components, you will find links to files that contain descriptions of the Units in which they are found. If you want to find out about the properties of a particular component, it is often worth looking at the Inheritance of that component and then inspecting the properties of the base type from which it is derived. For example, to understand TMaskEdit it is also useful to examine TCustomMaskEdit.
100106
101107**TABS** (the names are largely self-explanatory):
102108
103109- **[Standard](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/index-4.html)** (See [[Standard tab]] for components description)
104110
105111![](/wiki-images/4/4d/Component_Palette_Standart.png)
106112
107113
108114*Frequently used components:* [TMainMenu](http://lazarus-ccr.sourceforge.net/docs/lcl/menus/tmainmenu.html), [TPopupMenu](http://lazarus-ccr.sourceforge.net/docs/lcl/menus/tpopupmenu.html), [TButton](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tbutton.html), [TLabel](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tlabel.html), [TEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tedit.html), [TMemo](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tmemo.html), [TToggleBox](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/ttogglebox.html), [TCheckBox](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcheckbox.html), [TRadioButton](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tradiobutton.html), [TListBox](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tlistbox.html), [TComboBox](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcombobox.html), [TScrollBar](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tscrollbar.html), [TGroupBox](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tgroupbox.html), [TRadioGroup](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tradiogroup.html), [TCheckGroup](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tcheckgroup.html), [TPanel](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tpanel.html), [TActionList](http://lazarus-ccr.sourceforge.net/docs/lcl/actnlist/tactionlist.html)
109115
110116- **[Additional](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/index-4.html)** (See [[Additional tab]] for components description)
111117
112118![](/wiki-images/7/7d/Component_Palette_Additional.png)
113119
114120
115121*More, often-used components:* [TBitBtn](http://lazarus-ccr.sourceforge.net/docs/lcl/buttons/tbitbtn.html), [TSpeedButton](http://lazarus-ccr.sourceforge.net/docs/lcl/buttons/tspeedbutton.html), [TStaticText](http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tstatictext.html), [TImage](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/timage.html), [TShape](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tshape.html), [TBevel](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tbevel.html), [TPaintBox](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tpaintbox.html), [TNotebook](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tnotebook.html), [TLabeledEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tlabelededit.html), [TSplitter](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tsplitter.html), [TTrayIcon](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/ttrayicon.html), [TMaskEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/maskedit/tmaskedit.html), [TCheckListBox](http://lazarus-ccr.sourceforge.net/docs/lcl/checklst/tchecklistbox.html), [TScrollBox](http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tscrollbox.html), [TApplicationProperties](http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tapplicationproperties.html), [TStringGrid](http://lazarus-ccr.sourceforge.net/docs/lcl/grids/tstringgrid.html), [TDrawGrid](http://lazarus-ccr.sourceforge.net/docs/lcl/grids/tdrawgrid.html), [TPairSplitter](http://lazarus-ccr.sourceforge.net/docs/lcl/pairsplitter/tpairsplitter.html), [TColorBox](http://lazarus-ccr.sourceforge.net/docs/lcl/colorbox/tcolorbox.html), [TColorListBox](http://lazarus-ccr.sourceforge.net/docs/lcl/colorbox/tcolorlistbox.html), [TChart](http://lazarus-ccr.sourceforge.net/docs/lcl/chart/index.html)
116122
117123- **[Common Controls](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/index-4.html)** (See [[Common Controls tab]] for components description)
118124
119125![](/wiki-images/4/4a/Component_Palette_Common_Controls.png)
120126
121127
122128[TTrackBar](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/ttrackbar.html), [TProgressBar](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tprogressbar.html), [TTreeView](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/ttreeview.html), [TListView](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tlistview.html), [TStatusBar](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tstatusbar.html), [TToolBar](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/ttoolbar.html), [TUpDown](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tupdown.html), [TPageControl](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tpagecontrol.html), [TTabControl](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/ttabcontrol.html), [THeaderControl](http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/theadercontrol.html), [TImageList](http://lazarus-ccr.sourceforge.net/docs/lcl/controls/timagelist.html), [TPopupNotifier](http://lazarus-ccr.sourceforge.net/docs/lcl/popupnotifier/index.html)
123129
124130- **[Dialogs](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/index-4.html)** (See [[Dialogs tab]] for components description)
125131
126132![](/wiki-images/7/72/Component_Palette_Dialogs.png)
127133
128134
129135[TOpenDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/topendialog.html), [TSaveDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tsavedialog.html), [TSelectDirectoryDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tselectdirectorydialog.html), [TColorDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tcolordialog.html), [TFontDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tfontdialog.html), [TFindDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tfinddialog.html), [TReplaceDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/treplacedialog.html), [TOpenPictureDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/extdlgs/topenpicturedialog.html), [TSavePictureDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/extdlgs/tsavepicturedialog.html), [TCalendarDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/extdlgs/tcalendardialog.html), [TCalculatorDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/extdlgs/tcalculatordialog.html), [TPrinterSetupDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tcustomprintersetupdialog.html), [TPrintDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tcustomprintdialog.html), [TPageSetupDialog](http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/tcustomprintersetupdialog.html)
130136
131137Several useful **[Dialog](http://lazarus-ccr.sourceforge.net/index.php?wiki=DialogExamples)** procedures or functions don't appear on the Palette, but are easily used as direct calls from your source program.
132138
133139For several good examples of the use of Components see the \$LazarusPath/lazarus/examples subdirectory of your source installation. Many of the programs show how to use dialogs and other components directly without using the IDE and component palette or having a separate form definition file: all the components are fully and explicitly defined in the main Pascal program. Other example programs make full use of the IDE.
134140
135141Some examples don't work straight away: you may need to play about with paths and permissions of files or directories. If you want to compile any of the examples, make sure that you have read/write/execute permissions for the files and directories, or copy the files to a directory where you do have the appropriate permissions.
136142
137143Try running the 'testall' program to see a menu of the available components together with small example test forms for most of them; then inspect the code to find out how they work!
138144
139145- **Misc**
140146
141147![](/wiki-images/8/8e/Component_Palette_Misc.png)
142148
143149
144150[TColorButton](http://lazarus-ccr.sourceforge.net/index.php?wiki=DialogsTxt), [TSpinEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/spin/tspinedit.html), [TFloatSpinEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/spin/tfloatspinedit.html), [TArrow](http://lazarus-ccr.sourceforge.net/docs/lcl/arrow/tarrow.html), [TCalendar](http://lazarus-ccr.sourceforge.net/docs/lcl/calendar/tcalendar.html), [TEditButton](http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/teditbutton.html), [TFileNameEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tfilenameedit.html), [TDirectoryEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tdirectoryedit.html), [TDateEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tdateedit.html), [TCalcEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tcalcedit.html), [TFileListBox](http://lazarus-ccr.sourceforge.net/docs/lcl/filectrl/tfilelistbox.html), [TXMLPropStorage](http://lazarus-ccr.sourceforge.net/docs/lcl/xmlpropstorage/txmlpropstorage.html), [TIniPropStorage](http://lazarus-ccr.sourceforge.net/docs/lcl/inipropstorage/tinipropstorage.html), [TBarChart](http://lazarus-ccr.sourceforge.net/docs/lcl/chart/tbarchart.html), [TButtonPanel](http://lazarus-ccr.sourceforge.net/docs/lcl/buttonpanel/tbuttonpanel.html), TIDEDialogLayoutStorage
145151
146152- **[Data Controls](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/index-4.html)**
147153
148154![](/wiki-images/6/62/Component_Palette_DataControls.png)
149155
150156
151157*Data-aware components, which largely replicate the Standard and Additional groups but are applicable to Databases:* [TDBNavigator](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbnavigator.html), [TDBText](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbtext.html), [TDBEdit](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbedit.html), [TDBMemo](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbmemo.html), [TDBImage](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbimage.html), [TDBListBox](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdblistbox.html), [TDBComboBox](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbcombobox.html), [TDBCheckBox](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbcheckbox.html), [TDBRadioGroup](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbradiogroup.html), [TDBCalendar](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbcalendar.html), [TDBGroupBox](http://lazarus-ccr.sourceforge.net/docs/lcl/dbctrls/tdbgroupbox.html), [TDBGrid](http://lazarus-ccr.sourceforge.net/docs/lcl/dbgrids/tdbgrid.html)
152158
153159- **Data Access**
154160
155161![](/wiki-images/c/cc/Component_Palette_DataAccess.png)
156162
157163
158164TDatasource, TMemDataset, TSdfDataSet, TFixedFormatDataSet, TDbf
159165
160166- **[[System]]**
161167
162168![](/wiki-images/f/fe/Component_Palette_System.png)
163169
164170
165171[TTimer](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/ttimer.html), [TIdleTimer](http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tidletimer.html), [TLazComponentQueue](http://lazarus-ccr.sourceforge.net/docs/lcl/lresources/tlazcomponentqueue.html), [THtmlHelpDatabase](http://lazarus-ccr.sourceforge.net/docs/lcl/lazhelphtml/thtmlhelpdatabase.html), [THtmlBrowserHelpViewer](http://lazarus-ccr.sourceforge.net/docs/lcl/lazhelphtml/thtmlbrowserhelpviewer.html), [TProcessUTF8](http://lazarus-ccr.sourceforge.net/docs/lcl/asyncprocess/tprocessutf8.html), [TAsyncProcess](http://lazarus-ccr.sourceforge.net/docs/lcl/asyncprocess/tasyncprocess.html), [[doc:fcl/process/tprocess.html|TProcess]], TSimpleIPCClient, TSimpleIPCServer, TXMLConfig, TEventLog
166172
167173- **SynEdit**
168174
169175![](/wiki-images/2/22/Component_Palette_SynEdit.png)
170176
171177
172178*A group of components to help interfacing with other languages and software tools. SynEdit is an advanced multi-line edit control, for Borland Delphi, Kylix and C++Builder. It supports Syntax Highlighting and code completion, and includes exporters for html, tex and rtf. It is a full-VCL/CLX control, meaning it is not a wrapper for Microsoft Windows controls, and no run-time library is required; this make SynEdit a crossplatform component. Compatibility with FreePascal is also planned, and SynEdit is the edit component in Lazarus IDE.* see [synedit at sourceforge](http://synedit.sourceforge.net). : TSynEdit, TSynAutoComplete, TSynExporterHTML, TSynMacroRecorder, TSynMemo, TSynPasSyn, TSynFreePascalSyn, TSynCppSyn, TSynJavaSyn, TSynPerlSyn, TSynHTMLSyn, TSynXMLSyn, TSynLFMSyn, TSynUNIXShellScriptSyn, TSynCssSyn, TSynPHPSyn, TSynTeXSyn, TSynSQLSyn, TSynPythonSyn, TSynVBSyn, TSynAnySyn, TSynMultiSyn
173179
174180### How To Use the Palette
175181
176182To use the Palette, there must be an open form on view in the editor (if there isn't one, select File -\> New Form). Click on the icon in the appropriate tab of the Palette for the component you want to use, then click on the Form, near where you want the component to appear. When the desired component appears, you can select it by clicking with the mouse, then move it to the exact place on the Form where you want it and adjust its size. Adjustments can be made to the appearance either by altering the picture itself on the Form using the mouse, or by changing the relevant Property in the Object Editor for that component.
177183
178184If you install additional components, either those you have written yourself, or some coming as a package from some other source, then extra tabs with the relevant icons will appear in your Component Palette. These new components can be selected and used on your forms in the same way as those supplied by default.
179185
180186## How to use Standard Controls, Common Controls and Extended Controls
181187
182188The Units StdCtrls, ComCtrls and ExtCtrls contain definitions and descriptions of many of the most commonly used controls for constructing Forms and other Objects in Lazarus Applications.
183189
184190Many of the final target controls that the application developer wants to use, such as TButton, TMemo, TScrollBar etc, have a corresponding ancestor class such as TCustomButton, TCustomMemo or TCustomScrollBar. Several of the properties and methods relevant to the final target control are defined (and explained) more fully in the TCustomXXX class, and are inherited by the final target control.
185191
186192If you drop a component on the form editor you don't need to add code explicitly to create it. The component is automatically created by the IDE together with the form, and destroyed when the form is destroyed.
187193
188194However, if you create the component yourself by code don't forget to free it when it is no longer needed.
189195
190196If you place a component on the Form Designer and look at the Object Inspector, you can observe the properties change as you move the component around.
191197
192198For example, if you place a button (TButton) on the form, click on it to select it, then move it around the form with the mouse, you can watch the values of Top and Left change in the Object Inspector to reflect the new position. If you use the object's re-sizing bars to adjust its size, you can watch the Height and Width properties change as well.
193199
194200On the other hand, by using the Object Inspector, you can select the value associated with a property such as height, and type in a new value; you can watch the size of the object on the form change to reflect the new value.
195201
196202You can also explicitly change the properties of the object in code by typing (in the appropriate Implementation section of the Source editor), for example
197203
198-`         ``Form1.Button1.Height := 48;`\
199-`         `
204+``` pascal
205+ Form1.Button1.Height := 48;
206+```
200207
201208If you type this new value into the Source Editor and then look back at the Form Designer, you will see that the button on the Form has taken the new size. The new value will also be shown in the Object Inspector.
202209
203210In summary, there are usually about three different ways to determine each property of an object:
204211
205212- by using the mouse,
206213- by setting the values in the Object Inspector,
207214- or explicitly by writing code.
208215
209216The components defined in these Units have several properties that are common to most of them, and other properties that are specific to the individual components. We shall describe the most common ones here. Unusual or control-specific properties will be described for the individual controls.
210217
211218Additional Help can always be obtained by selecting a property or keyword, in either the Object Inspector or the Source Editor, and pressing F1. You will be taken by your Help browser to the appropriate page in the documentation.
212219
213220If the description of a property on that page is insufficient, you can navigate to the corresponding description in the ancestor classes, by selecting the links in the Inheritance listing or by selecting the ancestor Type in the declaration of the object.
214221
215-`           ``Constructors`
222+```text
223+ <i>Constructors</i>
224+```
216225
217226`such as ``Create`` allocate memory and system resources needed by the object. They also call the constructor of any sub-objects present in the class.`
218227
219-`           ``Destructors:`
228+```text
229+ <i>Destructors:</i>
230+```
220231
221232`remove the object and de-allocate memory and other resources. If you call ``Destroy`` for an object which hasn't being initialized yet it will generate an error. Always use the ``Free`` method to deallocate objects, because it checks whether an object's value is ``nil`` before invoking ``Destroy``.`
222233
223234Take the following precautions when creating your own Destroy method:
224235
225236- Declare Destroy with the override directive, because it is a virtual method.
226237- Always call 'inherited Destroy;' as the last thing on the destructor code.
227238- Be aware that an exception may be raised on the constructor in case there is not enought memory to create an object, or something else goes wrong. If the exception is not handled inside the constructor, the object will be only partially built. In this case Destroy will be called when you weren't expecting it, so your destructor must check if the resources were really allocated before disposing of them.
228239- Remember to call Free for all objects created on the constructor.
229240
230-Some commonly listed properties
241+```text
242+ <caption><b>Some commonly listed properties</b></caption>
243+```
231244
232245Property
233246
234247Meaning
235248
236249Action
237250
238251The main action or event associated with the object. For example selecting an 'Exit' Button might cause the 'Close' action
239252
240253Align
241254
242255Defines the way in which an object is to be lined up with the parent object. Possible values are alTop (placed at the top and using the full available width), alBottom, alLeft (placed at the left and using the full available height), alRight. alNone (place anywhere on parent control) or alClient (takes all available space next to controls aligned to top, bottom, left or right)
243256
244257Anchor
245258
246259Used to keep a control a certain distance from the defined edges of a parent control, when the parent is resized. For example \[akBottom, akRight\] will keep the control a fixed distance from the bottom right corner.
247260
248261AutoSelect
249262
250263When True, an editing control will select all its text when it receives focus or when the Enter key is pressed.
251264
252265AutoSelected
253266
254267True indicate that the edit or combobox control has just performed an AutoSelect operation so that subsequent mouse-clicks and keystrokes proceed normally without selecting the text.
255268
256269BorderSpacing
257270
258271The space around the edge between an Anchored control and its parent.
259272
260273Caption
261274
262275The text that is displayed on or near the control; it should preferably give some clue as to the function of the control, or an instruction such as 'Close' or 'Execute'. By default Caption is set to be the same as the 'Name' property, and the application programmer should substitute meaningful text instead of the default values.
263276
264277CharCase
265278
266279Indicates how text is displayed in a text editing control: Normal (retaining the case of the letters typed by the user), converted to uppercase, or converted to lowercase
267280
268281Constraints
269282
270283Sets the minimum and maximum sizes for a control. If a control is resized the new dimensions are always within the ranges given here. You should take care when setting these options that they do not conflict with the Anchors and Align settings.
271284
272285Color
273286
274287The Colour to be used to draw the control or to write the text it contains.
275288
276289Enabled
277290
278291A Boolean property to determine whether or not a control is capable of being selected and performing an action. If it is not Enabled, it is often Grayed out on the Form.
279292
280293Font
281294
282295The Font to be used for writing the text associated with the control - either the caption or label, or the text-strings contained within the control. The entry on the Object Inspector usually has a (+) box on the left, and selecting this box reveals further options such as character set, colour and size.
283296
284297Hint
285298
286299A short piece of informative pop-up text that appears if the mouse-cursor hovers over the control.
287300
288301Items
289302
290303The list of 'Things' that the object contains, such as a group of images, a series of lines of text, a number of actions in an actionlist, etc
291304
292305Lines
293306
294307An array of strings, containing the textual data in controls with more than a single line of data, such as an Edit-Box or a Combo-Box. The array is zero-indexed, ie the lines are numbered \[0..numLines-1\]
295308
296309Name
297310
298311The identifier by which the control is known in the program. The IDE gives it a default name based on the underlying type, for example successive instances of TBitButton would be named Form1.BitBitton1 and Form1.BitButton2; it is up to the application programmer to give them more meaningful names such as ExitButton or OKButton. By default the Name of the control is applied to the Caption for the control, but the text of the Caption may be changed separately.
299312
300313PopUpMenu
301314
302315A window containing context-sensitive menu information that pops up when the right mouse button is clicked on the object.
303316
304317Position (or Top, Left)
305318
306319Determines where the control is located on the parent form or window
307320
308321ReadOnly
309322
310323Boolean property which, if True, signifies that the contents of the control can be read by the user or the calling routine, but cannot be written or changed.
311324
312325ShowHint
313326
314327Allows a small window containing a context-sensitive Help or other description to be displayed when the mouse cursor 'hovers' over the control.
315328
316329Size (or Height and Width)
317330
318331The dimensions of the control
319332
320333Style
321334
322335The options available for Style depend upon the sort of Control being considered: for instance the Style may be defined by TFormStyle, TBorderStyle, TButtonStyle etc.
323336
324337TabOrder
325338
326339Integer defining where in the sequence of tabs on the Form this control is to lie
327340
328341TabStop
329342
330343Boolean property which if True places this control in the sequence of objects that the user can reach by successively pressing the Tab key
331344
332345Text
333346
334347The String of Text that represents the actual data that this control contains. Applies particularly to Text, Memo and StringList types of object. Most of the editing operations (such as Select, Clear, Cut, Copy) are performed in this part of the object, which holds the actual string being edited. If the control contains more than a single line of text, for example TMemo or TComboBox, then the textual elements are arranged as an array of strings (zero-indexed, ie numbered from \[0..numLines-1\]) in Lines.
335348
336349Visible
337350
338351If true, the object can be seen on the Form; if False, object is hidden
339352
340353WordWrap
341354
342355Logical flag to show whether or not word-wrap is enabled, ie if a word comes close to the end of a line and is going to be too long for the line, it is wrapped down to the next line.
343356
344357Many actions are commonly listed in the 'Events' tab of the Object Inspector. If you select an entry in the list, a ComboBox appears with a DropDown list showing any actions that have aleady been defined, and allowing you to choose one to be associated with this event. Alternatively you can select the ellipsis (three dots ...) and you will be taken to an area of the Source Editor where you can begin typing your own action instructions for the selected event.
345358
346359While a large number of events is available for any given control, in practice it is only necessary to populate a few of them. For most controls, it is sufficient to provide coding for 'OnClick'; for more complex controls it may be necessary also to provide for 'OnEntry' (when the mouse cursor enters the Control and gives it focus) and 'OnExit' (when the mouse cursor leaves the Control; or you may need to write an event handler for 'OnChange' or 'OnScroll', depending on the nature of the particular control with which you are dealing.
347360
348361The pop-up menu that appears when you right-click an object in the Form Designer has, as its first item: 'Create default event' and selecting this option will have the same effect as selecting the ellipsis in the Object Inspector for the default event, usually OnClick: you are taken to the Implementation area of the Source Editor where you can type the code for the event handler.
349362
350363A common strategy in Object-Oriented programming is to provide an ActionList with the facility for entering, removing or editing a number of pre-defined actions from which the most appropriate can be selected to use in any particular instance.
351364
352-Some commonly listed Actions
365+```text
366+ <caption><b>Some commonly listed Actions</b></caption>
367+```
353368
354369Action
355370
356371Meaning
357372
358373OnChange
359374
360375Action to be taken if any change is detected (eg mouse move, mouse click, key press, edit text, alter picture, etc)
361376
362377OnClick
363378
364379Action to be taken when the (left) mouse button is clicked. This is usually the main or default action of the control; for example clicking on a button or checkbox initiates the action associated with the checkbox. It may alternatively initate a process of selection, for instance in a TextBox or Memo, or signal the beginning of painting with a Pen or Brush.
365380
366381Click
367382
368383A method to emulate in code the effect of clicking on a control. This method is most often found in Button-type controls (TButton, TBitBtn, TSpeedButton etc). A procedure can be written that calls the same code as the OnClick action. This facility can be particularly useful if the activation of one control by clicking causes a cascade of other controls to be activated, and the Click method can be used to initiate the action rather than having the user explicitly click on a lot of controls.
369384
370385OnDragDrop
371386
372387Action to be taken during Drag-Drop manoeuvres, ie when the mouse is used to 'capture' an item or some text etc and move it around the screen to a new location.
373388
374389OnEntry
375390
376391Action to be taken when the mouse cursor enters the area occupied by the object, usually transfering focus to that object. This might include changes in the appearance of the object such as highlighting or raising the border.
377392
378393OnExit
379394
380395Action to be taken when the mouse moves out of the area of the object, usually transferring focus out of the object.
381396
382397OnKeyPress
383398
384399Action to be taken for any key-press. Subtly different from OnKeyDown, which simply responds to a key being down, whether or not it was already down when focus was given to this control. OnKeyPress requires that a key becomes pressed while focus is in this control.
385400
386401OnKeyDown
387402
388403Action to be taken if a key is down while focus is in this control. Subtly different from OnKeyPress - for example the key might already have been down when focus entered this control, whereas OnKeyPress requires the key to become pressed while focus is in the control.
389404
390405On Key Up
391406
392407Action to be taken if a key is up (ie not pressed) while focus is in this control.
393408
394409OnMouseMove
395410
396411On Mouse Down - Action to be taken if the mouse cursor moves while focus is in this control.
397412
398413OnMouseDown
399414
400415Action to be taken if the mouse button is down while focus is in this control.
401416
402417OnMouseUp
403418
404419Action to be taken if the mouse button is up while the cursor is over this control. Implies that the mouse button was previously down and has been released. The case where the cursor enters the control but the mouse button has not yet been pressed is covered by OnEntry or OnMouseEnter.
405420
406421OnResize
407422
408423Action to be taken when the control is resized. Might include re-alignment of text or selection of a different font size etc.
409424
410425## How to use Menus
411426
412427Hints for creating Menus for your Forms
413428
414429*TMainMenu* is the Main Menu that appears at the top of most forms; form designers can customise by choosing various menu items. *TPopupMenu* is a menu window that pops up with pertinent, usually context-sensitive, details and choices when the right mouse button is clicked near a control
415430
416431Main Menu is a non-visible component : that is, if the icon is selected from the Component Palette and placed on the Form, it will not appear at Run-time. Instead, a Menu bar with a structure defined by the Menu Editor will appear. Popup menus, placed on the form by selecting the icon from the Component Palette, do not appear at all unless the right mouse button is clicked on a control that owns such a menu.
417432
418433To see the Menu Editor, right-click on the Main Menu or Popup Menu icon on your Form. A pop-up box appears, that invites you to enter items into the Menu bar.
419434
420435An Edit box is displayed, containing a Button labelled New Item1. If you right-click on that box, a pop-up menu is displayed that allows you to add a new item before or after (along the same level) or create a sub-menu with the opportunity to add further items below (or above) the new item in a downward column.
421436
422437Any or all of the *MenuItems* that you add can be configured using the Object Inspector.
423438
424439At the least you should give each item a *Caption* which will appear on the Menu Bar (you may also wish to give it a more meaningful *Name*). The caption should indicate the activity to be selected, such as "File Open" or "Close", "Run" or "Quit"
425440
426441If you want a particular letter in the Caption to be associated with a shortcut key, that letter should be preceded by an ampersand. The Menu item at run-time will appear with the shortcut letter underlined, and hitting that letter key will have the same effect as selecting the menu item. Alternatively you can choose a shortcut key sequence (such as Ctrl-C for Copy or Ctrl-V for Paste - the standard Keyboard shortcuts) with the *ShortCut* property of the MenuItem.
427442
428443It is often helpful to use the Menu controls in conjuction with an *ActionList* which contains a series of standard or customised *Actions*. Menu Items can be linked in the Object Inspector to Actions on the list, and the same actions can be linked to *Buttons*, *ToolBar Buttons*, *SpeedButtons* etc. It is obviously economic of effort to re-use the same code to respond to the various events, rather than writing separate *OnClick* event handlers for each individual control.
429444
430445By default a number of standard actions is pre-loaded from *StdActns* or, if DataAware controls are being used, from *DBActns*, and these can be chosen using the ActionList editor which appears when you right-click on the ActionList icon on the Form Designer.
431446
432447## The Debugger
433448
434449
435450*Still to be written*.
436451
437452see also [:category: IDE Window - Debug](/wiki-category/IDE%20Window%20-%20Debug)
438453
439454## The Lazarus files
440455
441-`   (Thanks to Kevin Whitefoot.)`\
442-`   (Additions by Giuseppe Ridinò, `User:Kirkpatc` and Tom Lisjac)`
456+```text
457+ (Thanks to Kevin Whitefoot.)
458+ (Additions by Giuseppe Ridinò, User:Kirkpatc and Tom Lisjac)
459+```
443460
444461When you save you will actually be saving two files:
445462
446-`  xxx.pas and yyy.lpr `
463+```text
464+ xxx.pas and yyy.lpr
465+```
447466
448467(You save more than that but those are the ones you get to name). The project file (lpr) and the unit file (pas) must not have the same name because Lazarus will helpfully rename the unit (inside the source code) to the same as the unit file name and the program to the name of the project file (it needs to do this or the compiler will probably not be able to find the unit later when referred to in the project file). Of course to be consistent it changes all the occurrences of unit1 to xxx.
449468
450469So if you are saving a project called **again**, trying to save again.pas and again.lpr fails because unit names and program names are in the same name space resulting in a duplicate name error.
451470
452471So here is what I ended up with:
453472
454473e:/lazarus/kj/lazhello:
455474
456-`total 4740  free 76500`\
457-`-rwxrwxrwx   1 kjwh     root  4618697 Mar 24 11:19 again.exe`\
458-`-rw-rw-rw-   1 kjwh     root     3002 Mar 24 11:21 again.lpi`\
459-`-rw-rw-rw-   1 kjwh     root      190 Mar 24 11:18 again.lpr`\
460-`-rw-rw-rw-   1 kjwh     root      506 Mar 24 11:08 againu.lfm`\
461-`-rw-rw-rw-   1 kjwh     root      679 Mar 24 11:08 againu.lrs`\
462-`-rw-rw-rw-   1 kjwh     root      677 Mar 24 11:08 againu.pas`\
463-`-rw-rw-rw-   1 kjwh     root     2124 Mar 24 11:08 againu.ppu`\
464-`-rwxrwxrwx   1 kjwh     root      335 Mar 24 11:07 ppas.bat`
475+```text
476+total 4740 free 76500
477+-rwxrwxrwx 1 kjwh root 4618697 Mar 24 11:19 again.exe
478+-rw-rw-rw- 1 kjwh root 3002 Mar 24 11:21 again.lpi
479+-rw-rw-rw- 1 kjwh root 190 Mar 24 11:18 again.lpr
480+-rw-rw-rw- 1 kjwh root 506 Mar 24 11:08 againu.lfm
481+-rw-rw-rw- 1 kjwh root 679 Mar 24 11:08 againu.lrs
482+-rw-rw-rw- 1 kjwh root 677 Mar 24 11:08 againu.pas
483+-rw-rw-rw- 1 kjwh root 2124 Mar 24 11:08 againu.ppu
484+-rwxrwxrwx 1 kjwh root 335 Mar 24 11:07 ppas.bat
485+```
465486
466487Note that there are many more files than the two that I thought I was saving.
467488
468489Here is a brief note about each file:
469490
470491**again.exe:** The main program binary executable. Win32 adds an "exe" extension. Linux has none (just the name of the program). This file will be huge in Linux due to the inclusion of debugging symbols. Run the "strip" utility to remove them and substantially shrink the executable size.
471492
472493**again.lpi:** (Lazarus Project Information). This is the main information file of a Lazarus project; the equivalent Delphi main file of an application will be the .dpr file. It is stored in an XML format and contains instructions about all the libraries and units required to build the executable file.
473494
474495**again.lpr:** The main program source file or master file. Despite its lazarus specific extension it is in fact a perfectly normal Pascal source file. It has a uses clause that lets the compiler find all the units it needs. Note that the program statement does not have to name the program the same as the file name. This file is usually fairly small, with just a few statements to initialise, build the forms, run and close the application. Most of the work is done in the unit source files, with suffix '.pas'
475496
476497**againu.lfm:** This is where Lazarus stores the layout of the form unit, in human readable form. It reflects the properties of the various components, as set in the Object Inspector. Each object description starts with a line:
477498
478-`object xxxx `\
479-`  then there follows a list of properties `\
480-`  (including embedded or nested objects) then an `\
481-`end `
499+``` pascal
500+object xxxx
501+ then there follows a list of properties
502+ (including embedded or nested objects) then an
503+end
504+```
482505
483506line. Lazarus uses this file to generate a resource file (.lrs) that is included in the initialisation section of the againu.pas unit. Delphi dfm files can be converted to lfm format in the Lazarus IDE using the Tools-\>Convert DFM file to LFM utility.
484507
485508**againu.lrs:** This is the generated resource file which contains the instructions to the program for building the form (if you look in the main Unit file, you will see in the initialization section the line
486509
487-`{$i againu.lrs} `
510+```text
511+{$i againu.lrs}
512+```
488513
489514which instructs the program to load the resource file). Note that it is not a Windows resource file.
490515
491516**againu.pas:** The unit that contains the code for the form; this is usually the only file that the application programmer needs to edit or inspect, and contains any code specifically supplied by the programmer (especially event handlers).
492517
493518**againu.ppu:** This is the compiled unit which gets linked into the executable file together with any other units named in the Uses section.
494519
495520**ppas.bat:** This is a simple script that links the program to produce the executable. If compilation is successfull, it is deleted by the compiler.
496521
497522## Original contributors and changes
498523
499524This page has been imported from the epikwiki [version](http://lazarus-ccr.sourceforge.net/index.php?wiki=LazarusTutorial).
500525
501526- Created initial page and template. T. Lisjac - 11/04/2003 VlxAdmin
502527- Inserted a note containing instructions for writing your first Lazarus Program. Suggest an administrator places it in the appropriate place on the Tutorial menu. 3/09/2004 User:Kirkpatc
503528- Per above, moved Chris's writeup to the main body of the tutorial VlxAdmin
504529- Began to insert text describing the Lazarus Editor - more to follow! 24 Mar 2004 User:Kirkpatc
505530- Added some more to Lazarus Editor section of Tutorial. 25 Mar 2004 User:Kirkpatc
506531- Added screenshots and revised some of the page formatting VlxAdmin 3/25/2004
507532- Moved some of kwhitefoot's comments into Tutorial section. Formatting not quite right, but have to go to bed now! 26 Mar 2004 User:Kirkpatc
508533- Formatted, added credits and comments. Removed original notes. VlxAdmin 3/26/2004
509534- More material added to Editor section of tutorial. 26 Mar 2004 User:Kirkpatc
510535- More material added describing the Main Menu. Renamed 'Hello World' to 'Getting Started' and moved it to nearer the top. 31 March 2004 User:Kirkpatc
511536- Inserted section on Run sub-menu. Some general editing (eg ended each entry with a period to ensure consistency). 9 Apr 2004 User:Kirkpatc
512537- Inserted a new section on How to get started with MySQL in FPC/Lazarus. 13 Apr 2004 User:Kirkpatc
513538- Deleted the section on MySQL from here: it has been copied to Lazarus Database section of tutorial. 14 Apr 2004 User:Kirkpatc
514539- Added some more to the description of the Editor Main Menu. 18 Apr 2004 User:Kirkpatc
515540- Added section on Environment sub-menu. 19 Apr 2004 User:Kirkpatc
516541- Added section on Components sub-menu. 4 May 2004 User:Kirkpatc
517542- Adding Tools sub-menu description (incomplete). 7 May 2004 User:Kirkpatc
518543- Added some screenshots to Menu descriptions. 9 May 2004 User:Kirkpatc
519544- Fixed a bit in Environment Options - thanks VincentSnijders. 14 May 2004 User:Kirkpatc
520545- More additions to Tools sub-menu. 19 May 2004 User:Kirkpatc
521546- Added a section on the Button Bar and started work on The Component Palette. 20 May 2004 User:Kirkpatc
522547- Posted a description file for the StdCtrls unit of the LCL, in the hope that people will add comments. 26 May 2004 User:Kirkpatc
523548- Edited the StdCtrls file, removing a lot of repetitive material and doing some formatting. It is still far too long. 28 May 2004 User:Kirkpatc
524549- Expanding on the Components Palette. 5 June 2004 User:Kirkpatc
525550- Added a lot to the DialogExamples page. 10 June 2004 User:Kirkpatc
526551- Considerable revision of the StdCtrls page, hopefully making it clearer and encouraging people to contribute - particularly in the 'Description' sections. 14 June 2004 User:Kirkpatc
527552- Added pages for Menus and Dialogs units (linked to Component Palette description) - please feel free to add to these pages. 14 June 2004 User:Kirkpatc
528553- Added page for Common Controls (linked to Component Palette). 16 June 2004 User:Kirkpatc
529554- Added MaskEdit page (linked to Component Palette). 17 June 2004 User:Kirkpatc
530555- Added Buttons, ExtCtrls pages (linked to Component Palette). 17 June 2004 User:Kirkpatc
531556- Edited MainMenu component description page. 23 June 2004 User:Kirkpatc
532557- Some additions to Common Controls. 28 June 2004 User:Kirkpatc
533558- A new tutorial on Text-mode Pascal programming has been added. 5 July 2004 User:Kirkpatc
534559- Minor changes to ComCtrls, ExtCtrls, Environment Menu. 10 July User:Kirkpatc
535560- Added FormsTxt, component description page for Component Palette. 20 July 2004 User:Kirkpatc
536561- Some corrections to ConsoleModePascal. 21 July 2004 User:Kirkpatc
537562- Some small changes to ComponentPalette. 22 July 2004 User:Kirkpatc
538563- Returned after a long absence! Changed link for component descriptions in StdCntls group of ComponentPalette to point directly at the Lazarus on-line help html pages. 25 Sept 2007 User: Kirkpatc
539564- Uploaded some more up-to-date screenshots and fixed links in descriptions of the Menus. 2 October 2007 User: Kirkpatc
540565- Fixed links for component descriptions in Extra Controls section of Component Palette. 2 October 2007 User: Kirkpatc
541566- Added sections on How to use Standard Controls etc and How to use Menus (based on topics in the LCL Documentation). Fixed some links in Component Palette. 4th June 2008 User: Kirkpatc
542567- Some edits and additions to the Lazarus Files section. 12th July 2008 User: Kirkpatc
543568- Some edits and additions to the Lazarus Component section. 23th Jan 2009 User: Miyatake
544569
545570------------------------------------------------------------------------
546571
547572[[Lazarus IDE Tools]]
548573
549574---
550575*From the Free Pascal wiki, page "Lazarus Tutorial/it", as it stood on 2021-12-08 after a change by Kupferstecher, 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).*

Back to history