Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

OnAutoCompleteListSelected picture event


Declaration
Global handler:


Blok kódu
languageesl
themeConfluence
 ENTRY OnAutoCompleteListSelected(IN INT _refId, IN TEXT _Line, IN INT _InsertPos, IN TEXT _choice)
 ; script actions
 END OnAutoCompleteListSelected

Special handler:
Blok kódu
languageesl
themeConfluence
  ENTRY XXX_OnAutoCompleteListSelected(IN TEXT _Line, IN INT _InsertPos,  IN TEXT  _choice)
 ; script actions
 END XXX_OnAutoCompleteListSelected
Parameters


_refIdParameter of INT type (required for global handler).
_LineString that represents the content of current row on the cursor position.
_InsertPosPosition of the first letter of the first word.
_choiceCurrent position of cursor (position of the last letter in front of cursor + 1).
XXXName of Reference variable connected to graphic object (without the character "_").
Description
This picture event is generated when entering selected text from AutoComplete List in the windows control Entry field.
Example
Special picture event handler:

 


Blok kódu
languageesl
themeRDark
; picture event handler: Change of text in entry field
 ; with assigned reference variable _EField


Blok kódu
languageesl
themeRDark
ENTRY EField_OnAutoCompleteListSelected(IN  TEXT   _Line,  IN INT _InsertPos, IN TEXT _choice)


Blok kódu
languageesl
themeRDark
; actions


Blok kódu
languageesl
themeRDark
END
 
Global picture event handler:
 


Blok kódu
languageesl
themeRDark
; picture event handler: Change of text in the entry fields
 ; without a special handler of the picture event


Blok kódu
languageesl
themeRDark
ENTRY OnAutoCompleteListSelected(IN  INT _refId,  IN  TEXT _Line,   IN INT _InsertPos, IN TEXT _choice)


Blok kódu
languageesl
themeRDark
; _refId - value of Reference local variable assigned to the graphic object
   IF _refId = _EField THEN ; test that determines the entry field in which the text was changed


Blok kódu
languageesl
themeRDark
; actions 


Blok kódu
languageesl
themeRDark
  ENDIF
 END
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
titleRelated pages:

Picture event handler
Picture events