Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnSubPictureClosed picture event
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnSubPictureClosed(IN ALIAS _pictureRef)
; script actions
END OnSubPictureClosed |
or
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnSubPictureClosed(IN ALIAS _pictureRef, IN INT _instanceId)
; script actions
END OnSubPictureClosed |
Parameters
_pictureRef | Required parameter of the ALIAS type. |
_instanceID | Instance ID of the closed picture. |
Description
The picture is being generated after closing the picture, that was opened as a subpicture of current picture (e.g. the action OPEN DIRECT) and next passing input-output parameters. The closed picture is defined by the parameter _schemeRef that is initialized as a reference to the picture.
The picture event can be used when you need to react to a change of picture input-output parameters, which are influenced by closing a picture.
For the second type of the declaration, there is also known the instance ID of the closed picture.
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: OnSubPictureClosed |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnSubPictureClosed(IN ALIAS _schemeRef) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
IF _schemeRef\HBJ = S.SubPicture\HBJ THEN |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; the subpicture S.SubPicure that was opened by ; the event handler BtnOK_OnClick is now closed |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; If the subpicture S.SubPicture contains input-output variables, ; their values are to be passed to current picture |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF END OnSubPictureClosed |
Blok kódu | ||||
---|---|---|---|---|
| ||||
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: Pressing a mouse button |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY BtnOK_OnClick |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; opening the subpicture OPEN S.SubPicture DIRECT END BtnOK_OnSubPictureClosed |
Info | ||
---|---|---|
| ||