Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnTextChange picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnTextChange(IN INT _refId) ; script actions END OnTextChange |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnTextChange ; script actions END XXX_OnTextChange |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
Description
The picture event is being generated when given Windows control of Text entry field type is not active (loosing focus) and its text has been changed. Usually, when the user enters an text and goes to another Windows control.
Example
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: Change of the text in the text entry field with ; reference variable _EField assigned |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY EField_OnTextChange |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions END EField_OnTextChange |
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture events handler: Change of a text in text entry fields, |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; which has no special handler defined |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnTextChange(IN INT _refId) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; _refId - value of reference local variable assigned graphic object IF _refId = _EField THEN ; test that determines the text entry field ; in which the user changed the text ; script actions |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnTextChange |
Note
If both the handlers are defined in picture script, the global handler will never be called for _refId=_EField, because a special handler is already defined.
Info | ||
---|---|---|
| ||