Protected
_clockProtected
_currProtected
_cursorProtected
_linkProtected
_linkProtected
_prevProtected
_textProtected
_validationThe event handler for this control. Although it is permitted to set
this property directly it is recommended that the setAction(...)
method is used to define the event handler actions.
Add a child to this control using its relative position [rx, ry]. If rx and ry are not provided then it uses the values set in the child.
this control
is the actual control or its name
Optional
rx: numberOptional
ry: numberClears the validity flag irrespective of whether the text is valid or not.
this control
Set or get the corner radii used for this control
an array with the 4 corner radii
an array of 4 corner radii
Disables this control
this control
Optional
cascade: booleanif true disable child controls
Enables this control
this control
Optional
cascade: booleanif true enable child controls
Calculates the absolute position on the canvas taking into account any ancestors
the actual position in the canvas
this controls parent
Make this control invisible
this control
Optional
cascade: booleanif true hide children
Set a unique index number for this text field.
this control
unique index number
Optional
deltaIndex: numberrelative link when using up/down arrow keys
Invalidates the control's buffer forcing it to validate it on the next frame
this control
Remove this control from its parent
this control
Deletes the index number.
this control
Renoves any text that the control might use ti display itself.
this control
Makes the controls background opaque. The actual color depends on the controls color scheme
this control
Specify the orientation to show this control
this control
'north', 'south', 'east' or 'west'
Adds this control to another control which becomes its parent
this control
is the parental control or its name
Optional
rx: numberx position relative to parent
Optional
ry: numbery position relative to parent
Remove a child control from this one so that it stays in same screen position
this control
the control to remove or its name
Sets or gets the color scheme used by this control.
this control or the control's color scheme
Optional
id: stringOptional
cascade: booleanThis sets the event handler to be used when this control fires an event. The parameter can take three forms:
this control
the function to handle this controls event
Make this control visible
this control
Optional
cascade: booleanif true show children
Shrink the control to fit contents.
To shrink on one dimension only pass either 'w' (width) or 'h' (height) to indicate which dimmension to shrink
this control
Optional
dim: stringthe dimension to shrink
Gets or sets the current text. Any EOL characters are stripped out of the string. If necessary the string length will be reduced until will fit inside the textfiel. If a validation function has been set then the string will be validated.
this control for setter
Optional
t: stringa string representing text to display
Sets the text alignment.
Processing constants are used to define the text alignment.
this control
LEFT, CENTER or RIGHT
Sets or gets the text size.
this control or the current text size
the text size to use
Sets the size of the text to use in the tooltip
Optional
tsize: numbertext size for this tooltip
Create a tooltip for this control
this control
the text to appear in the tooltip
how long the tip remains visible (milliseconds)
Makes the controls background fully transparent.
this control
Force the control to validate
this control
Uesr provide a validation function for this textfield
this control
the validation function
Generated using TypeDoc
This class supports a single line text entry field.
The user must ensure that the field is wide enough for the maximum length of text expected. This control stops accepting input if it is likely to exceed the control width.
The left/right arrow keys move the text insertion point within the text. Used in combination with the shift key enables part or all of the text to be selected.
If no text is selected then the arrows keys can move off the current control to another. This only works if each textfield has a unique index number.
If the control has the index value 'idx' then the next control depends on the arrow key pressed -
left : idx - 1
right : idx + 1
up : idx - offset
down : idx + offset
The offset value is set when initialising the idx value with the
index(idx, deltaIndex
method.)No other controls can be used while a textfield control is active. Pressing 'Enter' or attempting to move to a non-existant textfield deactivates the current text field.
The user can provide their own validation function which is checked when the control is deativated.
Since
0.9.3