Script Objects
The Object and Component Help is the provides Help on the Borland VCL objects, controls, and events.
Objects: VCL objects consist of methods, properties, and events. Properties represent the data contained in the object. Methods are the actions the object can perform. Events are conditions the object can react to. All objects descend from the common ancestor object TObject.
Components: Components are refer to objects which can be added to forms but which are not visible at runtime time; for example the various file dialog components. All components descend from the TComponent; TComponent ‘s descend from TObjects.
Controls: Controls are Components which can be added to forms and ARE visible at runtime. All components descend from the TControls which descend from TComponent.
Types: There are several enumerated or BIT SET types used as return valuespes and parameter types for object methods, properties and events. In most cases types are documented in the entry for the method, property, event or global routine in which they are used.
For these BIT SET types the predefined constants refer to specific bits in an ‘integer’ mask that are set or unset.
Set a bit: Font.Style = Font.Style OR (1 SHL fsBOLD)
Clear a bit: Font.Style = Font.Style AND Not (1 SHL fsBOLD)
TBitBtn
TBitBtn is a push button control that can include a bitmap on its face. Use them to initiate actions from forms and dialog boxes.
Properties |
Methods |
Events |
Align |
Assign |
OnClick |
AllowAllUp |
BringToFront |
OnMouseDown |
Anchors |
Click |
OnMouseMove |
Caption |
ClientToScreen |
OnMouseUp |
Cursor |
Create |
|
Down |
Free |
|
Enabled |
ScreenToClient |
|
Flat |
SendToBack |
|
Font |
SetBounds |
|
Glyph |
Update |
|
GroupIndex |
|
|
Height |
|
|
Hint |
|
|
Kind |
|
|
Left |
|
|
Margin |
|
|
ModalResult |
|
|
Name |
|
|
NumGlyphs |
|
|
Owner |
|
|
Parent |
|
|
ParentFont |
|
|
ParentShowHint |
|
|
ShowHint |
|
|
Spacing |
|
|
Tag |
|
|
Top |
|
|
Transparent |
|
|
Visible |
|
|
Width |
|
|
TBitmap
The TBitmap is a powerful graphics object used to create, manipulate (scale, scroll, rotate, and paint), and store images in memory and as files on a disk.
TBitmap contains an internal image of the bitmap graphic and automatically manages realization of the palette when drawn.
To draw a bitmap on a canvas, call the Draw or StretchDraw methods of a TCanvas object, passing a TBitmap as a parameter.
Properties |
Methods |
Events |
Canvas |
Assign |
OnChange |
Empty |
Create |
|
Height |
Free |
|
Monochrome |
LoadFromFile |
|
Transparent |
SaveToFile |
|
TransparentColor |
|
|
Width |
|
|
TBrush
TBrush represents the color and pattern used to fill solid shapes.
Properties |
Methods |
Events |
Color |
Assign |
OnChange |
Style |
|
|
TButton
TButton is push button control used to execute commands.
Properties |
Methods |
Events |
Align |
Assign |
OnClick |
Anchors |
BringToFront |
OnDblClick |
Caption |
Click |
OnMouseDown |
Cursor |
ClientToScreen |
OnMouseMove |
Down |
Create |
OnMouseUp |
Enabled |
Free |
|
Font |
ScreenToClient |
|
Height |
SendToBack |
|
Hint |
SetBounds |
|
Left |
Update |
|
ModalResult |
|
|
Name |
|
|
Owner |
|
|
Parent |
|
|
ParentFont |
|
|
ParentShowHint |
|
|
ShowHint |
|
|
Tag |
|
|
Top |
|
|
Visible |
|
|
Width |
|
|
»
|