 |
TE_openFixed |
Function (ROM Call 0xAD) |
Initializes the text editor, with fixed buffer.
TE_openFixed is very similar to TE_open, except it uses a fixed allocated
buffer pointed to by buffer instead of dinamically created buffer associated with handle.
So, the text buffer can not expand automatically when necessary. The parameter maxlen
determines the length of the buffer (the editor will not accept more characters than specified).
That's why functions TE_checkSlack and TE_shrinkWrap
can not be applied to text editors opened with TE_openFixed.
Note: After opening text editor using TE_openFixed, it is recommended to manually set position of
the cursor using TE_select (TE_openFixed has not a parameter for
initial cursor position in opposite to TE_open), else strange things
may happen.
Uses: strlen, sf_width, WinAttr, WinBegin, WinChar, WinFill, _du16u16, _mu16u16, ROM Call 0x412
Used by: Dialog, EV_defaultHandler, EV_quit, GT_Trace