CTextView:new

CTextView:Class Description


The CTextView class manages the Mira Text Editor window. Use this class to print messages in a scrolling editor window. For further information on the Text Editor, see the Mira User's Guide. This is a class based version of the global CreateTextWindow function.

Usage

Construction

Object = CTextView:new()

Destruction

Object:delete()

Properties

ptr

A pointer to the Mira Text Editor window. This pointer is nil if no Text Editor window has been attached.

Note: It is not wise to work directly with ptr. Instead, refer to ptr using the GetViewPtr method.

Methods

Construction

new

Creates a new instance of a CTextView object.

delete

Deletes the CTextView object.

General Methods

GetViewPtr

Returns a pointer to the Text Editor window wrapped by the CTextView object.

GetWordwrap

Returns the current word wrapping state of the Text Editor.

Printf

Prints formatted text to the CTextView.

SetWordwrap

Sets the word wrapping state of the window wrapped by the CTextView.

Related Topics

Script Classes