DELPHI: Basics
 


Component Properties

The properties of a component can be changed by typing the component name, followed by a full stop and the property to be changed and the assignment operator := and the new value:

component.property := value;

For example:
form1.caption := 'New Program';


Methods

Methods are prewritten programming instructions associated with a particular component:

component.method;

For example: edit1.clear;


Naming

Components are automatically named, yet usually they are renamed using an abbreviation indicating the type of component, followed with a descriptive name. The abbreviations typically used are:

Form (frm)
Shape (shp)
Button (btn)
Panel (pnl)
Label (lbl)
Edit (edt)
RichEdit (red)
Image (img)
Groupbox (gbx)
Bitmap button (bmb)
Memo (mem)
Radiogroup (rgp)
Radiobutton (rad)
Timer (tmr)
Checkbox (cbx)
MaskEdit (med)
SpinEdit (sed)
Progress Bar (prb)
PageControl (pgc)
StatusBar (stb)
ListBox (lst)
 

Properties and methods for some of the basic components:


Back to Delphi Basics site




Return to Home Page

2024 J Olivier. Except where otherwise noted, the content on this website is licensed under the terms of the Creative Commons BY SA 4.0 license. https://creativecommons.org/about/cclicenses/