|
|
Visits:
2540
(17 on line)
|
Last Update: Dec 21, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TCancelButton5 object is a special kind of a TButton5 object from which it inherits.
The TCancelButton5 object knows how to close its parent form when the Esc key is pressed and to make the
parent form return Œtcesc (if it has been started with a 'Wait' method). Also you do not have to set
its caption property which is Cancel by default (or Annuler in french, ...)
See also: TButton5 TOKButton5 |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TButton5 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)('escape'0)('*caption' 'TCancelButton5 Example')
'ff'Œwi'*.edName.Create' 'TEdit5'('wherelc'Ð 60 Ð 200)('caption' 'Name')
'ff'Œwi'*.edSalary.Create' 'TEdit5'('wherelc' '>' '=' Ð 100)('caption' 'Salary')('type' 'float')
'ff'Œwi'*.bnCancel.Create' 'TCancelButton5'('wherelc' '=..edName' '>'Ð Ð 0 20)
'ff'Œwi'DemoShowRedim'
aaa„'ff'Œwi'*Wait' © Wait is required for the form to return Œtcesc if Esc is pressed
aaaŒtcesc
1
Œerase'aaa'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Œwi 'class' |
| help |
Example:
0 0½'ff' Œwi '*Create' 'TForm5' ('*size'200 300) ('escape'0) ('*caption' 'TCancelButton5 Example')
0 0½'ff' Œwi '*.edName.Create' 'TEdit5' ('wherelc'Ð 60 Ð 200) ('caption' 'Name')
0 0½'ff' Œwi '*.edSalary.Create' 'TEdit5' ('wherelc' '>' '=' Ð 100) ('caption' 'Salary') ('type' 'float')
0 0½'ff' Œwi '*.bnCancel.Create' 'TCancelButton5' ('wherelc' '=..edName' '>'Ð Ð 0 20)
0 0½'ff' Œwi 'DemoShowRedim'
aaa„'ff' Œwi '*Wait' © Wait is required for the form to return Œtcesc if Esc is pressed
aaaŒtcesc
Œerase'aaa' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TCancelButton5
Example:
'obj' Œwi '*Create' 'TCancelButton5'
|
|
| Description Inheritance Example Properties Methods |
| |
|