|
|
Visits:
2356
(28 on line)
|
Last Update: Dec 25, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TDemoHandlers5 Object shows, through an example, how to use the <handler> property
The <handler> property must be set on the parent TForm5 object and is used in events occuring on
its children controls when they are handled by APL+Win Objects themselves.
For example, if an <onChange> event happens on a TEdit5 object, the TEdit5 onChange handler fires
and at the end of its process calls the routine defined in the <handler> property if any.
This allows APL+Win Objects users to define their own handlers without overriding the internal
APL+Win Objects handlers. |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TForm5 TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above form is generated by the following APL+Win Objects code: |
'ff'Świ'*Create' 'TDemoHandlers5' 'Show'
ff
© The form handler property being defined to:
’ DemoHandlers2_Handlers;name_event
[1] …(1¬Śnc name_event„'Ź',(Świ'*name'),'_on',Śwevent)˝0
[2] …–name_event
[3] Źed1_onChange:
[4] Źed2_onChange:
[5] Źed3_onChange:
[6] 'ed4'Gets5 ‘ed1+‘ed2+‘ed3
[7] :return
[8] Źed1_onExit:
[9] :if ‘ed1>1000
[10] Śwres„'January may not exceed 1000!'
[11] :end
[12] :return
’
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
'ff' Świ '*Create' 'TDemoHandlers5' 'Show' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TDemoHandlers5
Example:
'obj' Świ '*Create' 'TDemoHandlers5'
|
|
| Description Inheritance Example Properties Methods |
| |
|