Download AreaList Pro User Manual - e-Node
Transcript
User Action Commands text — Sets the current cell text based on flags. flags — Formatting flags: 0 — replace whole cell text 1 — replace selected text only The following line is called in the On Load phase: $result:=AL_SetEditMenuCallback (area;"EditCallback") The EditCallback project method is as follows: C_LONGINT ($1) `area reference C_LONGINT ($2) `event C_TEXT ($3;$AL_Undo) `unused $text:="456" AL_SetCellText ($1;$text;1) `1 - replace selected text only The user enters an editable cell: Then a group of three characters is selected (highlighted): The callback method is called at this moment, and the selected text is replaced: AL_GetCellText (areaRef:L; text:T; flag:L) Parameter Type Description ➞ areaRef text longint Reference of AreaList Pro object on layout text Returns current cell highlight text ➞ flag longint Flag AL_GetCellText will return the currently highlighted cell text which can be obtained during Edit menu callback. This routine will only work correctly during Edit menu callback. text — Returns current highlight text based on flags. flags — Formatting flags: 0 — get whole cell text 1 — get selected text only AL_SetCellText - AL_GetCellText 216