|
|
EDITOR_SET_CURSOR_CENTERED
|
Syntax: |
EDITOR_SET_CURSOR_CENTERED(<Mask
Field>,<Cursor Position>[,<Mark
Until>[,<Handle>]])
|
||||||||
|
|
|
||||||||
|
Meaning: |
EDITOR_SET_CURSOR_CENTERED setzt in einem Wordprozessor den Cursor auf die Position <Cursorposition>. Es wird versucht, den Scrollbereich so zu verschieben, dass sich die Cursorposition in der Mitte des Anzeigefensters befindet. Achtung: Die Cursorposition wird
ab 1 gezählt. Ist
<Cursorposition> < 0, so wird der Cursor an das Ende des Textes
gesetzt. <Markieren
bis Position> legt fest, wie weit der Text markiert werden soll. <Mask Field> has to be a Word Processor field. <Handle> specifies the window that
contains the word processor field. <Handle> can contain the window
depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the word
processor field must be on the current mask. EDITOR_SET_CURSOR
liefert als Ergebnis die Cursorposition, auf die der Cursor gesetzt wurde,
oder eine Fehlernummer.
Attention:
This function has no effect with Html programs. |
||||||||
|
Parameter: |
|
||||||||
|
Sample: |
H% = EDITOR_SET_CURSOR_CENTERED(#5.#EDIT$,12) IF H% <> 0 THEN ... Error ... ENDIF |
||||||||
|
See also: |
|