TEXTEDITOR #handle.ext, xpos, ypos, wide, high

Texteditor is a control similar to textbox, but with scroll bars, and with an enhanced command set. The commands are essentially the same as that of a window of type "text."  NOTICE that texteditor commands start with an exclamation point, because the control will simply display anything printed to it if it doesn't start with an exclamation point. The texteditor provides a method for the user to create and edit large amounts of text.  The addition of a texteditor control to a window automatically causes the menubar to contain an EDIT menu. Do not attempt to create an EDIT menu with a MENU command, or it will not function properly.  Right-clicking within a texteditor control pops up an automatic EDIT menu.

Here are the texteditor commands: See other entries for descriptions not listed here.

"!autoresize"; "!cls"; "!contents varname$"; "!contents #handle"; "!contents? string$"; "!copy"; "!cut"; "!font fontName pointsize"; "!line n string$"; "!lines countVar"; "!modified? answer$"; "!origin? columnVar rowVar"; "!origin column row"; "!paste"; "!selectall"; "!selection? selected$"; "!setfocus"; "!enable"; "!disable"


print #handle, "!autoresize";

This works with texteditor controls, but not with textbox controls or text windows.
This causes the edges of the control to maintain their distance from the edges of the overall window.  If the user resizes the window, the texteditor control also resizes.

print #handle.ext, "!enable"
This causes the control to be enabled.

print #handle.ext, "!disable"
This causes the control to be inactive and grayed-out.

















