header image
Home arrow Using and naming basic components arrow Programming arrow Using and naming basic components
Using and naming basic components Print E-mail
Written by JAK Olivier   
Jun 27, 2009 at 12:43 PM

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:

Last Updated ( Jun 27, 2009 at 08:46 AM )
Statistics
Members: 2
News: 41
Web Links: 4
Visitors: 55518