Window Arguments Specific for Text Windows

W_TEXTW_FILE

Loads contents of the file given as argument value when used in W_SET_WINDOW_ARGS(). When used in W_GET_WINDOW_ARG() then returns the name of the file that was most recently loaded into the text window.

W_TEXTW_READONLY

Sets or gets the value of the "readonly" flag.

W_TEXTW_CURRENTSIZE

Can be used to get the number of characters currently in the text window.

W_TEXTW_RESET

Can be set to clear the contents of a text window.

W_TEXTW_INSERTPOS

Sets or gets the position where new text will be inserted. Beginning of text is indicated by 0.

W_TEXTW_INSERT

Inserts new text starting from the position set by W_TEXT_INSERTPOS or where the user has positioned the insert cursor.

W_TEXTW_APPEND

Appends new text to the current contents of a text window.

W_TEXTW_BUFF_START

Marks the beginning of the active buffer.

W_TEXTW_BUFF_LENGTH

Sets the length of the active buffer.

W_TEXTW_GETBUFFER

Can be used in a get call to get the contents of the active buffer.

W_TEXTW_CONTENTS

Sets or gets the contents of a text window.

W_TEXTW_SAVE

Writes contents of a text window back to the file from which it was initially loaded in a set call involving W_TEXTW_FILE.

W_TEXTW_CALLBACK

Sets the flag that enables or disables a text window to notify about events.