TStringGrid

From Free Pascal wiki
Revision as of 19:28, 27 April 2016 by Abtaylr (talk | contribs)
Jump to navigationJump to search

TStringGrid is one of the Lazarus components available for use by developers. The objective of this page is to show a simple example illustrating some of the easily used properties and methods available for use. It can be found typically along the upper edge of the main Lazarus window below the file menus and IDE Coolbar. You may also have it opened as a components window opened by selecting from the menu View-->Components, or, if using anchor docking opened by you as part of the Lazarus IDE. The following image shows the TStringGrid component as it may look:

Media:TStringGrid01.png

To create this example create a new project in Lazarus. Select TStringGrid to add to the form, by clicking the TStringGrid component from the menu area or component window, then click on the form. In this case 2 buttons were also selected and dropped onto the form as shown.

Media:TStringGrid02.png

In this example, Button1's name was changed to ButtonAddFiles and Button2's name was changed to ButtonExit. The StringGrid1 was stretched out and the buttons were aligned as shown.

Media:TStringGrid03.png