Table of Contents
This is the EPOC R6 Crystal form implementation for use on devices like the Nokia Communicator series (9210/9290). It is typically called EPOC Simple Form Type 1.
Creates an EPOC simple form with the specified caption. If no caption is given
then the form will never have a caption. If a caption is provided then a form
will always have a caption. The standard syntax is to name the caption parameter,
as in: esf1.new(caption = "My Form").
| Property | Type | Access | Description |
|---|---|---|---|
active | boolean | read-only | Indicates whether or not the form is active (displayed) |
caption | string | read-only |
Contains either the value .nul or the current caption
|
firstcbabutton | esf1cbabutton | read-only | Contains a reference to the first Control Button Array (cba) button on the form. Every esf1 form has four cba buttons associated with it. |
firstcontrol | esf1control | read-only | Contains a reference to the first control created for the form |
focuscontrol | esf1control | read-only | Contains a reference to the control (if any) that currently has focus |
esf1var.addcontrol (
controltype ,
integer type,
integer left,
integer top,
integer width,
esf1control height,
integer next )
error
Adds a control to an esf1 type form. The type
parameter must be specified (such as esf1text). Default values for
left, top, width, and
height are all 1. Default value for
next is .nul, which puts the new control before
esf1.firstcontrol. If an error object is given
it can be used to catch errors and cause a null object reference to be returned. The
normal return value is a reference to the new control object. The new control must fit
within the bounds of the form or an error is raised (or output in the
error object).
| Name | Default | Type | Description |
|---|---|---|---|
type | .nul | .nul |
If an error object has been supplied, then an error will be
returned in the object, and .nul will be returned from the function,
otherwise a runtime error will occur.
|
any esf1 control type | A control of the desired type will be created and returned, as long as no other reason for an error exists. | ||
left | 1 | any valid value |
The control's upper left corner will start at the desired horizontal position, if the
position is not within the bounds of the form, then an error will occur. If an
error object was passed, then the error will be returned in the
object and the function will return .nul as its result, otherwise
a runtime error will occur.
|
top | 1 | any valid value |
The control's upper left corner will start at the desired vertical position, if the
position is not within the bounds of the form, then an error will occur. If an
error object was passed, then the error will be returned in the
object and the function will return .nul as its result, otherwise
a runtime error will occur.
|
width | 1 | any valid value |
The control's width will be set to the value passed, if the resulting control
position is not entirely within the bounds of the form, then an error will occur. If an
error object was passed, then the error will be returned in the
object and the function will return .nul as its result, otherwise
a runtime error will occur.
|
height | 1 | any valid value |
The control's height will be set to the value passed, if the resulting control
position is not entirely within the bounds of the form, then an error will occur. If an
error object was passed, then the error will be returned in the
object and the function will return .nul as its result, otherwise
a runtime error will occur.
|
next | .nul | .nul | The control will be added in front of the current first control |
an existing esf1control | The control will be placed in the control ring in front of the control referenced. | ||
error | none | integer | This parameter must be an object, not an integer value. If an error (other than a syntax or parameter passing error) occurs because the new object position is not completely within the form, then the error number will be output to the specified object. If no error object is provided and an error occurs then the program will exit with an unhandled exception. |
Breaks out of all process() methods currently associated with the form object.
Returns .nul.
Puts the form into event processing mode until the timeout occurs or until the break()
method is called. Returns .nul.
| Name | Default | Type | Description |
|---|---|---|---|
timeout | .inf | .nul |
A timeout of .nul does not wait in process for any length
of time.
|
.inf |
A timeout of .inf waits in process forever (until the
break() method is called).
| ||
integer | The maximum amount of time to process events for before returning. The time is specified in microseconds. |
Changes the form title bar caption. This can only be changed if the form was created
with a caption (even if the value of the caption was ""). Returns .nul.
Requests that the specified control should receive focus when the form is next
in process(). Returns .nul.



