 |
TE_select |
Function (ROM Call 0xB1) |
Selects a block of text in the editor, or positions the cursor.
If Low != High, then TE_select selects all character in the text
editor described by structure pointed to by te, starting from the character with offset
Low up to character with offset High (counted from the begining of the text
buffer). This is the operation which editor usually performs when the user uses shift + arrows.
Note that you don't need to call TE_select often; usually TE_handleEvent will perform wanted
job. This is only needed if you want to select a block of text in the editor independently of
pressing of shift + arrows. Note that selected text will not automatically get a
focus: you need to call TE_focus to achieve this.
If Low is equal to High, then TE_select
positions the cursor to the position Low (counted from the begining of the text
buffer).
Uses: TE_focus, TE_unfocus, sf_width, WinBegin, WinChar, WinFill, _du16u16, _mu16u16, ROM Call 0x412
Used by: TE_handleEvent, TE_reopen, cmd_input, cmd_inputstr, cmd_prompt, Dialog, EV_defaultHandler, HomeExecute, EV_quit, GT_Trace