IDLgrTextEdit::Init

The IDLgrTextEdit::Init function method initializes the text editing object.

Note: Init methods are special lifecycle methods, and as such cannot be called outside the context of object creation. This means that in most cases, you cannot call the Init method directly. There is one exception to this rule: if you write your own subclass of this class, you can call the Init method from within the Init method of the subclass.

Syntax

Obj = OBJ_NEW('IDLgrTextEdit' [, String or vector of strings] [, PROPERTY=value])

or

Result = Obj->[IDLgrTextEdit::]Init([String or vector of strings] [, PROPERTY=value])     (In a lifecycle method only.)

Return Value

When this method is called indirectly, as part of the call to the OBJ_NEW function, the return value is an object reference to the newly-created object.

When called directly within a subclass Init method, the return value is 1 if initialization was successful, or zero otherwise.

Arguments

String

The string (or vector of strings) to be created. If this argument is not a string, it is converted prior to creation of the text object using the default formatting rules.

Note: The value specified by the String argument is used to initialize the value of the STRINGS property of the underlying IDLgrText object.

Note: Strings have a default location of [0,0,0]. Use the LOCATIONS property to provide a different location for each string.

Keywords

The IDLgrTextEdit object class does not have properties of its own, but does inherit all of the properties of its superclasses. Any property listed under IDLgrText Properties that contains the word “Yes” in the “Init” column of the properties table can be initialized during object creation using this method. To initialize the value of a property, specify the property name as a keyword set equal to the appropriate property value.

All other keywords are passed to the superclass of this object.

Version History

7.0.6

Introduced