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 |
Returns the value of a property of the component. For example:
will return the Caption of button component btnButton1. |
|
Returns the type of a property for the component. For example:
will return "String", as the Caption is a string. |
|
Sets the value of a property of the component. For example:
will set the caption of button component btnButton1 to Click. |
The following methods are available to most Component types:
Method |
Description |
Set the focus to the component. For example:
will set the focus to component btnButton1. |
|
Show an error hint for the component. Specify the hint. |
|
Show a status hint for the component. Specify the hint. |
Other methods are available to specific component types:
Component |
Method |
Description |
Drop Down List |
Add an item to a drop-down list. |
|
Drop Down List |
Add items from a StringList to a drop-down list. |
|
Drop Down List |
Clears the list or memo text. |
|
Button |
Triggers the OnClick event for the button. |
|
Edit Grid |
Create default editors for each field in the grid, based on the field type. |
|
File Open Dialog, File Save Dialog, Folder Dialog |
Displays the dialog modally, and returns True if the user did not select Cancel. |
|
Drop Down List |
Remove an item from a drop-down list. |
|
Form |
Returns the number of pixels at application scaling. |
See also Form Designer Combo Methods, Graph Methods, Memo Methods and Table Methods.