Previous Topic

Next Topic

Form Designer Component Methods

Navigator > Setup > Form Designer > Code tab

Components each have different methods available to them. Methods available are listed under Objects > [Component Name] > Methods.

The following methods are available to all Component types:

Method

Description

GetPropertyValue

Returns the value of a property of the component. For example:

btnButton1.GetPropertyValue("Caption")

will return the Caption of button component btnButton1.

PropertyType

Returns the type of a property for the component. For example:

btnButton1.PropertyType("Caption")

will return "String", as the Caption is a string.

SetPropertyValue

Sets the value of a property of the component. For example:

btnButton1.SetPropertyValue("Caption", "Click")

will set the caption of button component btnButton1 to Click.

The following methods are available to most Component types:

Method

Description

SetFocus

Set the focus to the component. For example:

btnButton1.SetFocus

will set the focus to component btnButton1.

ShowErrorHint

Show an error hint for the component. Specify the hint.

ShowStatusHint

Show a status hint for the component. Specify the hint.

Other methods are available to specific component types:

Component

Method

Description

Drop Down List

AddItem

Add an item to a drop-down list.

Drop Down List

AddStrings

Add items from a StringList to a drop-down list.

Drop Down List

Clear

Clears the list or memo text.

Button

Click

Triggers the OnClick event for the button.

Edit Grid

CreateDefaultEditors

Create default editors for each field in the grid, based on the field type.

File Open Dialog, File Save Dialog, Folder Dialog

Execute

Displays the dialog modally, and returns True if the user did not select Cancel.

Drop Down List

RemoveItem

Remove an item from a drop-down list.

Form

ScaleToForm

Returns the number of pixels at application scaling.

See also Form Designer Combo Methods, Graph Methods, Memo Methods and Table Methods.

In This Section

AddItem

AddStrings - Drop Down List Method

BringToFront

Click

Close - Method

CreateDefaultEditors - Input Grid Method

ExpandNavigator

ForceWindowToForeground

GetPropertyValue - Method

Hide

MinimiseNavigator

PropertyType - Method

RemoveItem

ScaleToForm

SendToBack - Method

SetFocus

SetPropertyValue - Method

Show

ShowErrorHint - Method

ShowFieldErrorHint - Method

ShowModal

ShowStatusHint

See Also

Form Designer Code tab

Book Contents

Book Index