new_textview


The new_textview function is a non-class version of the CTextView:new method which creates and returns a new CTextView object.

Syntax

T = new_textview( sTitle )

bullet.gif    sTitle is an optional string that specifies the window caption. If not used, a default title is used.

bullet.gif    On success, a CTextView object is created and returned.

bullet.gif    On failure, nil is returned.

Example

The following script creates a new CTextView and opens a Mira Text Editor window with the specified title:

T = new_textview("Window Title")

-- create a new instance T of the CTextView class.

  ...

-- other uses of the class go here

T:delete()

-- deletes the object.

Related Topics

CTextView, new, delete, new_textview


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.