VCLua 0.2.2
Table of Contents
- Using VCLua
- Forms
- Bevels
- Buttons
- BitButtons
- CheckBoxes
- ComboBoxes
- Edit fields
- GroupBoxes
- Image
- Labels
- ListBoxes
- Memos
- Panels
- PageControl
- ProgressBar
- RadioButtons
- RadioGroups
- SpeedButtons
- Splitters
- StatusBars
- StringGrids
- TabSheets
- Timer
- ToolBar
- TrackBar
- TrayIcon
- Trees
- Using menus
- Events
object hierarchy
VCL object structure similar to luatables
Object
Object
Object
Object
...
Object
Object
Object
...
example:
Form
Panel
Edit
CheckBox
Button
Panel
ListBox
to access an objects type:
Form.Panel.Button
creating vcl form
myForm = VCL.Form("NameOfMyForm")
creating parented object
myListBox = VCL.ListBox(MyForm, "MyListboxName")
or
myForm.myListBox = VCL.ListBox(myForm, "MyListboxName")
defining single object property
myListBox.width = 100
defining multiple properties
objectid._ = { propertyname = value, propertyname = value, ... }
example:
myListBox._ = { top=160,
left=30,
height=60,
align="alClient",
}
defining and handling object events
objectname.eventname = luafunctionname
example:
myForm.OnClick = "onformclick"
function onformclick(Sender)
print(Sender.Name)
end
see Events section for more details
creating form with properties and child object from xml file using xfm.lua module
myForm = xfm.loadfromxml("myxmlformfilename.xml")
where xml describes the form
<Form name="myForm">
<!-- form properties -->
<property name="formstyle" value="fsStayOnTop" />
<property name="caption" value="List of opened files" />
<property name="position" value="poDesktopCenter" />
<property name="width" value="400" />
<property name="height" value="300" />
<property name="borderstyle" value="bsDialog" />
<!-- end of form properties -->
<!-- listbox object -->
<ListBox name="fileList">
<!-- object properties -->
<property name="align" value="alClient" />
<!-- end of object properties -->
</ListBox>
<!-- end of listbox object -->
</Form>
running of simple forms:
myForm:ShowModal()
running of complex application:
Application():Initialize()
Application():Run()
skinning forms
local myForm = VCL.Form("myForm")
myForm:SetSkin("skins","wood")
myForm:SetSkinState(true)
Create
object = VCL.Form(string)
myForm = VCL.Form("myFormName")
Destroy
object:Free()
Icon
object:Icon(string) -- .ico filename
ParentName
string = object:ParentName()
Show
object:Show()
ShowModal
string = object:ShowModal()
if myForm:ShowModal() == "mrOk" then ...
Hide
object:Hide()
Close
object:Close()
Dock
object:Dock(object)
myForm:Dock(yourForm.dockPanel)
Undock
object:UnDock(table)
myForm:UnDock({left=10,right=100,top=10,bottom=100})
IsDocked
boolean = object:isDocked()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| AlphaBlend |
Boolean |
|
| AlphaBlendValue |
Byte |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoScroll |
Boolean |
|
| AutoSize |
Boolean |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| BorderIcons |
BorderIcons |
{ biSystemMenu, biMinimize, biMaximize, biHelp } |
| BorderStyle |
FormBorderStyle |
|
| BorderWidth |
BorderWidth |
|
| Caption |
Caption |
|
| ClientHeight |
Integer |
|
| ClientWidth |
Integer |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DefaultMonitor |
DefaultMonitor |
|
| DockSite |
Boolean |
|
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| FormStyle |
FormStyle |
(fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop) |
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpFile |
String |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| KeyPreview |
Boolean |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| OldCreateOrder |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentFont |
Boolean |
|
| PixelsPerInch |
Integer |
|
| Position |
Position |
(poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter) |
| PrintScale |
PrintScale |
(poNone, poProportional, poPrintToFit) |
| Scaled |
Boolean |
|
| ScreenSnap |
Boolean |
|
| ShowHint |
Boolean |
|
| SnapBuffer |
Integer |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| TransparentColor |
Boolean |
|
| TransparentColorValue |
Color |
(clXXXX) |
| UseDockManager |
Boolean |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WindowState |
WindowState |
(wsNormal, wsMinimized, wsMaximized) |
Create
object = VCL.Bevel(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
Shape types
bsBox The entire client area appears raised or lowered.
bsFrame The client area is outlined by a raised or lowered frame.
bsTopLine The bevel displays a line at the top of the client area.
bsBottomLine The bevel displays a line at the bottom of the client area.
bsLeftLine The bevel displays a line at the left side of the client area.
bsRightLine The bevel displays a line at the right side of the client area.
bsSpacer The bevel is an empty space.
| Property | Type | Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentShowHint |
Boolean |
|
| Shape |
BevelShape |
bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine, bsSpacer
|
| ShowHint |
Boolean |
|
| Style |
BevelStyle |
bsLowered, bsRaised
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| Event | Type |
Description
|
| - |
- |
- |
Create
object = VCL.Button(object, string)
myButton = VCL.Button(myForm, "myButton")
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
| Property |
Type |
Description |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Cancel |
Boolean |
|
| Caption |
Caption |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| Default |
Boolean |
|
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| ModalResult |
ModalResult |
(mrNone, mrOk, mrCancel, mrAbort, mrRetry, mrIgnore,mrYes, mrNo, mrAll, mrNoToAll, mrYesToAll) |
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
Create
object = VCL.SpeedButton(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
Image
object:Image(object)
| Property | Type | Description |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Cancel |
Boolean |
|
| Caption |
Caption |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| Default |
Boolean |
|
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Kind |
BitBtnKind |
|
| Layout |
ButtonLayout |
|
| Left |
Integer |
|
| Margin |
Integer |
|
| ModalResult |
ModalResult |
(mrNone, mrOk, mrCancel, mrAbort, mrRetry, mrIgnore,mrYes, mrNo, mrAll, mrNoToAll, mrYesToAll) |
| Name |
ComponentName |
|
| NumGlyphs |
NumGlyphs |
|
| ParentBiDiMode |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| Spacing |
Integer |
|
| Style |
ButtonStyle |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
| Event | Type | Description |
| OnClick |
NotifyEvent |
|
| OnContextPopup |
ContextPopupEvent |
|
| OnDragDrop |
DragDropEvent |
|
| OnDragOver |
DragOverEvent |
|
| OnEndDock |
EndDragEvent |
|
| OnEndDrag |
EndDragEvent |
|
| OnEnter |
NotifyEvent |
|
| OnExit |
NotifyEvent |
|
| OnKeyDown |
KeyEvent |
|
| OnKeyPress |
KeyPressEvent |
|
| OnKeyUp |
KeyEvent |
|
| OnMouseDown |
MouseEvent |
|
| OnMouseMove |
MouseMoveEvent |
|
| OnMouseUp |
MouseEvent |
|
| OnStartDock |
StartDockEvent |
|
| OnStartDrag |
StartDragEvent |
|
Create
object = VCL.CheckBox(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
| Property |
Type |
Description |
| Alignment |
LeftRight |
|
| AllowGrayed |
Boolean |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Caption |
Caption |
|
| Checked |
Boolean |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| State |
CheckBoxState |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
Create
object = VCL.CheckBox(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
GetText
table = object:GetText()
SetText
object:SetText(table)
germanCarSelector:SetText({"Audi","Porsche","Trabant"})
Addt
object:Add(string)
germanCarSelector:Add("Volkswagen")
Insert
object:Insert(number, string)
germanCarSelector:Insert(2,"Mercedes")
Delete
object:Delete(number)
germanCarSelector:Delete(4)
Count
number = object:Count()
Clear
object:Clear()
| Property |
Type |
Description |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoCloseUp |
Boolean |
|
| AutoComplete |
Boolean |
|
| AutoDropDown |
Boolean |
|
| BevelEdges |
BevelEdges |
|
| BevelInner |
BevelCut |
|
| BevelKind |
BevelKind |
|
| BevelOuter |
BevelCut |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| CharCase |
EditCharCase |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| DropDownCount |
Integer |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| ImeMode |
ImeMode |
|
| ImeName |
ImeName |
|
| ItemHeight |
Integer |
|
| ItemIndex |
Integer |
|
| Left |
Integer |
|
| MaxLength |
Integer |
|
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| Sorted |
Boolean |
|
| Style |
ComboBoxStyle |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Text |
Caption |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
Create
object = VCL.Edit(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
| Property |
Type |
Description |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoSelect |
Boolean |
|
| AutoSize |
Boolean |
|
| BevelEdges |
BevelEdges |
|
| BevelInner |
BevelCut |
|
| BevelKind |
BevelKind |
|
| BevelOuter |
BevelCut |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| BorderStyle |
BorderStyle |
(bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin) |
| CharCase |
EditCharCase |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| HideSelection |
Boolean |
|
| Hint |
String |
|
| ImeMode |
ImeMode |
|
| ImeName |
ImeName |
|
| Left |
Integer |
|
| MaxLength |
Integer |
|
| Name |
ComponentName |
|
| OEMConvert |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| PasswordChar |
Char |
|
| ReadOnly |
Boolean |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Text |
Caption |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
Create
object = VCL.GroupBox(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Caption |
Caption |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DockSite |
Boolean |
|
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentBackground |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
Create
object = VCL.Image(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
Load
object:Load(string)
| Property | Type | Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoSize |
Boolean |
|
| Center |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| IncrementalDisplay |
Boolean |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentShowHint |
Boolean |
|
| Proportional |
Boolean |
|
| ShowHint |
Boolean |
|
| Stretch |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Transparent |
Boolean |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| Event | Type | Description |
| OnClick |
NotifyEvent |
|
| OnContextPopup |
ContextPopupEvent |
|
| OnDblClick |
NotifyEvent |
|
| OnDragDrop |
DragDropEvent |
|
| OnDragOver |
DragOverEvent |
|
| OnEndDock |
EndDragEvent |
|
| OnEndDrag |
EndDragEvent |
|
| OnMouseDown |
MouseEvent |
|
| OnMouseMove |
MouseMoveEvent |
|
| OnMouseUp |
MouseEvent |
|
| OnProgress |
ProgressEvent |
|
| OnStartDock |
StartDockEvent |
|
| OnStartDrag |
StartDragEvent |
|
Create
object = VCL.Label(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Alignment |
Alignment |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoSize |
Boolean |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Caption |
Caption |
|
| Color |
Color |
(clXXXX) |
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Layout |
TextLayout |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowAccelChar |
Boolean |
|
| ShowHint |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Transparent |
Boolean |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
Create
object = VCL.ListkBox(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
GetText
table = object:GetText()
SetText
object:SetText(table)
Addt
object:Add(string)
Insert
object:Insert(number, string)
Delete
object:Delete(number)
Count
number = object:Count()
Clear
object:Clear()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoComplete |
Boolean |
|
| BevelEdges |
BevelEdges |
|
| BevelInner |
BevelCut |
|
| BevelKind |
BevelKind |
|
| BevelOuter |
BevelCut |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| BorderStyle |
BorderStyle |
(bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin) |
| Color |
Color |
(clXXXX) |
| Columns |
Integer |
|
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| ExtendedSelect |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| ImeMode |
ImeMode |
|
| ImeName |
ImeName |
|
| IntegralHeight |
Boolean |
|
| ItemHeight |
Integer |
|
| Left |
Integer |
|
| MultiSelect |
Boolean |
|
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ScrollWidth |
Integer |
|
| ShowHint |
Boolean |
|
| Sorted |
Boolean |
|
| Style |
ListBoxStyle |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| TabWidth |
Integer |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
Create
object = VCL.Memo(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
GetText
table = object:GetText()
SetText
object:SetText(table)
Addt
object:Add(string)
Insert
object:Insert(number, string)
Delete
object:Delete(number)
Count
number = object:Count()
Clear
object:Clear()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Alignment |
Alignment |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BevelEdges |
BevelEdges |
|
| BevelInner |
BevelCut |
|
| BevelKind |
BevelKind |
|
| BevelOuter |
BevelCut |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| BorderStyle |
BorderStyle |
(bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin) |
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| HideSelection |
Boolean |
|
| Hint |
String |
|
| ImeMode |
ImeMode |
|
| ImeName |
ImeName |
|
| Left |
Integer |
|
| MaxLength |
Integer |
|
| Name |
ComponentName |
|
| OEMConvert |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ReadOnly |
Boolean |
|
| ScrollBars |
ScrollStyle |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| WantReturns |
Boolean |
|
| WantTabs |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
Create
object = VCL.Memo(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Alignment |
Alignment |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| AutoSize |
Boolean |
|
| BevelInner |
BevelCut |
|
| BevelOuter |
BevelCut |
|
| BevelWidth |
BevelWidth |
|
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| BorderStyle |
BorderStyle |
(bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin) |
| BorderWidth |
BorderWidth |
|
| Caption |
Caption |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DockSite |
Boolean |
|
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| FullRepaint |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Locked |
Boolean |
|
| Name |
ComponentName |
|
| ParentBackground |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| UseDockManager |
Boolean |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
Create
object = VCL.Memo(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
GetControl
object = object:GetControl()
activeTabSheet = myPageControl:GetControl()
SetControl
object = object:SetControl(object)
myPageControl:SetControl(inactiveTabsheet)
| Property | Type | Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DockSite |
Boolean |
|
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| HotTrack |
Boolean |
|
| Left |
Integer |
|
| MultiLine |
Boolean |
|
| Name |
ComponentName |
|
| OwnerDraw |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| RaggedRight |
Boolean |
|
| ScrollOpposite |
Boolean |
|
| ShowHint |
Boolean |
|
| Style |
TabStyle |
|
| TabHeight |
Smallint |
|
| TabIndex |
Integer |
|
| TabOrder |
TabOrder |
|
| TabPosition |
TabPosition |
|
| TabStop |
Boolean |
|
| TabWidth |
Smallint |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| Event | Type | Description |
| OnChange |
NotifyEvent |
|
| OnChanging |
TabChangingEvent |
|
| OnContextPopup |
ContextPopupEvent |
|
| OnDockDrop |
DockDropEvent |
|
| OnDockOver |
DockOverEvent |
|
| OnDragDrop |
DragDropEvent |
|
| OnDragOver |
DragOverEvent |
|
| OnDrawTab |
DrawTabEvent |
|
| OnEndDock |
EndDragEvent |
|
| OnEndDrag |
EndDragEvent |
|
| OnEnter |
NotifyEvent |
|
| OnExit |
NotifyEvent |
|
| OnGetImageIndex |
TabGetImageEvent |
|
| OnGetSiteInfo |
GetSiteInfoEvent |
|
| OnMouseDown |
MouseEvent |
|
| OnMouseMove |
MouseMoveEvent |
|
| OnMouseUp |
MouseEvent |
|
| OnResize |
NotifyEvent |
|
| OnStartDock |
StartDockEvent |
|
| OnStartDrag |
StartDragEvent |
|
| OnUnDock |
UnDockEvent |
|
Create
object = VCL.ProgressBar(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
StepIt
object:StepIt()
| Property | Type | Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BorderWidth |
BorderWidth |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Max |
Integer |
|
| Min |
Integer |
|
| Name |
ComponentName |
|
| Orientation |
ProgressBarOrientation |
|
| ParentShowHint |
Boolean |
|
| Position |
Integer |
|
| ShowHint |
Boolean |
|
| Smooth |
Boolean |
|
| Step |
Integer |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| Event | Type | Description |
| OnContextPopup |
ContextPopupEvent |
|
| OnDragDrop |
DragDropEvent |
|
| OnDragOver |
DragOverEvent |
|
| OnEndDock |
EndDragEvent |
|
| OnEndDrag |
EndDragEvent |
|
| OnEnter |
NotifyEvent |
|
| OnExit |
NotifyEvent |
|
| OnMouseDown |
MouseEvent |
|
| OnMouseMove |
MouseMoveEvent |
|
| OnMouseUp |
MouseEvent |
|
| OnStartDock |
StartDockEvent |
|
| OnStartDrag |
StartDragEvent |
|
Create
object = VCL.RadioButton(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
SetFocus
object:SetFocus()
| Property |
Type |
Description |
| Alignment |
LeftRight |
|
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Caption |
Caption |
|
| Checked |
Boolean |
|
| Color |
Color |
(clXXXX) |
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
| ShowHint |
Boolean |
|
| TabOrder |
TabOrder |
|
| TabStop |
Boolean |
|
| Tag |
Integer |
|
| Top |
Integer |
|
| Visible |
Boolean |
|
| Width |
Integer |
|
| WordWrap |
Boolean |
|
Create
object = VCL.RadioGroup(object, string)
Destroy
object:Free()
ParentName
string = object:ParentName()
| Property |
Type |
Description |
| Align |
Align |
(alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom) |
| Anchors |
Anchors |
(akTop, akLeft, akRight, akBottom) |
| BiDiMode |
BiDiMode |
(bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly) |
| Caption |
Caption |
|
| Color |
Color |
(clXXXX) |
| Columns |
Integer |
|
| Ctl3D |
Boolean |
|
| Cursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragCursor |
Cursor |
(crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS,crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop,crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp,crHandPoint, crSize, crSizeAll) |
| DragKind |
DragKind |
|
| DragMode |
DragMode |
|
| Enabled |
Boolean |
|
| Height |
Integer |
|
| HelpContext |
HelpContext |
|
| HelpKeyword |
String |
|
| HelpType |
HelpType |
(htKeyword, htContext) |
| Hint |
String |
|
| ItemIndex |
Integer |
|
| Left |
Integer |
|
| Name |
ComponentName |
|
| ParentBackground |
Boolean |
|
| ParentBiDiMode |
Boolean |
|
| ParentColor |
Boolean |
|
| ParentCtl3D |
Boolean |
|
| ParentFont |
Boolean |
|
| ParentShowHint |
Boolean |
|
|