|
|
Visits:
2358
(15 on line)
|
Last Update: Dec 21, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
An Edit class with additional properties to allow perfect form design and automatic resizing.
TEdit5 support field types and field formats. |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above form is generated by the following APL+Win Objects code: |
'ff'Œwi'*Create' 'TForm5'('*caption' 'TEdit5 Demo')('*size'300 400)'DemoShow' 'SessionFocus'
'ff.ed1'Œwi'*Create' 'TEdit5'('wherelc'Ð(100 ¯95'Name')Ð'>')('attach'1 2 3 2)
'ff.ed2'Œwi'*Create' 'TEdit5'('wherelc' '>'('=' '=' 'Comment')'>' '>')('attach'1 2 3 4)
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| allowed |
Description: Get or Set the list of acceptable characters in the field
Syntax: 'obj' Œwi 'allowed' {chars}
chars: a character string
Example:
'ff.ed1' Œwi 'allowed' '0123' |
| class |
Description: Return current object class
Syntax: class„'obj' Œwi 'class' |
| format |
Description: Get or Set the TEdit5 format
Syntax: {formatfn„'} 'obj' Œwi 'format' {formatfn}
formatfn: should be a monadic APL function with result? which applies a format to the TEdit5 box content
Example:
'ff.Salary' Œwi 'format' "DEB'CF10.2' Œfmt "
See also method <Format> which applies <format> to the current cell content |
| help |
Example:
0 0½'ff' Œwi '*Create' 'TForm5' ('*caption' 'TEdit5 Demo') ('*size'300 400) 'DemoShow' 'SessionFocus'
0 0½'ff.ed1' Œwi '*Create' 'TEdit5' ('wherelc'Ð(100 ¯95'Name')Ð'>') ('attach'1 2 3 2)
0 0½'ff.ed2' Œwi '*Create' 'TEdit5' ('wherelc' '>' ('=' '=' 'Comment') '>' '>') ('attach'1 2 3 4) |
| labelwidth |
Description: Get the TEdit5 label width in pixels (read-only property)
Syntax: width„'obj' Œwi 'labelwidth' |
| type |
Description: Get or Set the TEdit5 type
Syntax: 'obj' Œwi 'type' {type}
type: 'integer' or 'positiveinteger' or 'float' or 'positivefloat'
Example:
'ff.ed1' Œwi 'type' 'positiveinteger' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| Format |
Description: Formats the numeric Edit control content according to the specified format
Syntax: text„'obj' Œwi 'Format'value
value: a numeric value
text: the formatted value
Example:
'ff.ed' Œwi 'Format'1234.56 |
| New |
Description: Create a new instance of TEdit5
Example:
'obj' Œwi '*Create' 'TEdit5'
|
|
| Description Inheritance Example Properties Methods |
| |
|