|
|
Visits:
2487
(43 on line)
|
Last Update: Dec 24, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
A TOption5 object is a cover object for the APL+Win Option object.
Its main additional feature is to support input validation and validation error messages
To do so, you must set the <handler> property of the parent form and write your validation
check in the <handler> function for the onClick event on the TOption5 object.
Example:
'ff'Świ'handler' 'Test_Handlers'
and in the Test_Handlers function, the following sample lines would prevent the user
from selecting the option1 radio button if the edSalary field contains a value larger than 10000:
Źoption1_onClick:
:if ‘option1^‘edSalary>10000
Śwres„'You cannot check this radio button if your salary is > 10000!'
:end
:return
See also: TCheck5 TCheckGroup5 TOptionGroup5 |
| 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'('*size'200 300)('*caption' 'TOption5 Example')('handler' 'Test_Handlers')'DemoShow' 'SessionFocus'
'ff'Świ'*.edSalary.Create' 'TEdit5'('wherelc'5 100 Đ 200)('caption' 'Salary')('type' 'float')
'ff'Świ'*.option1.Create' 'TOption5'('wherelc' '>' '=' Đ 80)('*caption' 'Option 1')('just' 'right')
'ff'Świ'*.option2.Create' 'TOption5'('wherelc' '>' '=' Đ '=')('*caption' 'Option 2')('just' 'right')
'ff'Świ'*.option3.Create' 'TOption5'('wherelc' '>' '=' Đ '=')('*caption' 'Option 3')('just' 'right')
'ff'Świ'.option1.just' 'left'
'ff'Świ'.option1.caption' 'First Option Button'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
0 0˝'ff' Świ '*Create' 'TForm5' ('*size'200 300) ('*caption' 'TOption5 Example') ('handler' 'Test_Handlers') 'DemoShow' 'SessionFocus'
0 0˝'ff' Świ '*.edSalary.Create' 'TEdit5' ('wherelc'5 100 Đ 200) ('caption' 'Salary') ('type' 'float')
0 0˝'ff' Świ '*.option1.Create' 'TOption5' ('wherelc' '>' '=' Đ 80) ('*caption' 'Option 1') ('just' 'right')
0 0˝'ff' Świ '*.option2.Create' 'TOption5' ('wherelc' '>' '=' Đ '=') ('*caption' 'Option 2') ('just' 'right')
0 0˝'ff' Świ '*.option3.Create' 'TOption5' ('wherelc' '>' '=' Đ '=') ('*caption' 'Option 3') ('just' 'right')
0 0˝'ff' Świ '.option1.just' 'left'
0 0˝'ff' Świ '.option1.caption' 'First Option Button' |
| just |
Description: Sets the check box caption to the left or to the right of the check box
Syntax: {position„'} 'obj' Świ 'just' {position}
position: 'left' (default) or 'right'
Example:
'ff.option1' Świ 'just' 'right' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TOption5
Example:
'obj' Świ '*Create' 'TOption5'
|
|
| Description Inheritance Example Properties Methods |
| |
|