[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Editor Classes


Editor

Table A.38 lists the Editor class properties.

Table 0.38 Editor Class

 

Name
Property Type
Remember window  
boolean  
Main Text Color  
RGB values list  
Background Color  
RGB values list  
Context Popup Delay  
boolean  
Remember selection  
boolean  
Use Drag & Drop Editing  
boolean  
Flash delay  
integer  
Dynamic scroll  
boolean  
Balance  
boolean  
Remember font  
boolean  
Sort Function Popup  
boolean  
Use Multiple Undo  
boolean  
Save on update  
boolean  

An RGB values list is a list of three numbers from 0 to 65,535 that specifies how much red, green, and blue a color contains. For example, this example code sets the main text color to red.


set Prefs to Get Preferences from panel "Editor"
set Main Text Color of Prefs to {65535,0,0} 
Set Preferences of panel "Editor" to Prefs


Font

Table A.39 lists the Font class properties.

Table 0.39 Font Class

 

Name
Property Type
Auto Indent  
boolean  
Tab size  
small integer  
Text font  
string  
Text size  
small integer  


Document

This class, shown in Table A.40, contains class properties for a text file opened with the CodeWarrior Editor. The plural form for this class should be referred to as Documents.

The elements for a document are:

Table 0.40 Document Class

 

Name
Property Type
name (read only)  
string  
kind  
  • project
  • editor document
  • message
  • file compare
  • catalog document
  • class browser
  • single class browser
  • symbol browser
  • class hierarchy
  • single class hierarchy
  • project inspector
  • ToolServer worksheet
  • build progress document
file permissions   (read only)  
  • read write
  • read only
  • checked out read write
  • checked out read only
  • checked out read modify
  • locked
  • none
location   (read only)  
file specification  
index (read only)  
integer  
window (read only)  
window  


Character

Table A.41 describes the Character class properties.

Table 0.41 Character Class Properties

 

Name
Property Type
offset (read only)  
integer  
length (read only)  
integer  


Insertion Point

Table A.42 describes the Insertion Point Class properties.

Table 0.42 Insertion Point Class Properties

 

Name
Property Type
length   (read only)  
integer  
offset   (read only)  
integer  


Custom Keywords

Table A.43 describes the Custom Keywords class properties.

Table 0.43 Custom Keywords Class Properties

 

Name
Property Type
Custom color 1  
RGB color values list  
Custom color 2  
RGB color values list  
Custom color 3  
RGB color values list  
Custom color 4  
RGB color values list  


Line

Table A.44 describes the properties for the Line class. The plural form of the class should be referred to as Lines. This class has elements that may be described as follows:

Table 0.44 Line Class Properties

 

Name
Property Type
index (read only)  
integer  
offset (read only)  
integer  
length (read only)  
integer  


Text

Table A.45 describes the Text class properties. The Text Class has the following elements:

Table 0.45 Text Class Properties

 

Name
Property Type
offset (read only)  
integer  
length (read only)  
integer  


Selection-Object

Table A.46 describes the Selection-Object class properties. The elements of this object are:

Table 0.46 Selection-Object Class Properties

 

Name
Property Type
contents  
type class  
length (read only)  
integer  
offset (read only)  
integer  


Syntax Coloring

Table A.48 describes the Syntax Coloring class properties.

Table 0.47 Syntax Coloring Class Properties

 

Name
Property Type
Syntax coloring  
boolean  
Comment color  
RGB color values list  
Keyword color  
RGB color values list  
String color  
RGB color values list  
Custom color 1  
RGB color values list  
Custom color 2  
RGB color values list  
Custom color 3  
RGB color values list  
Custom color 4  
RGB color values list  


Window

Table A.48 describes the Window class properties. The plural form of this object is Windows.

Table 0.48 Window Class Properties

 

Name
Property Type
name  
string  
index  
integer  
bounds  
bounding rectangle  
document (read only)  
document  
position (read only)  
point  
visible (read only)  
boolean  
zoomed  
boolean  


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 02, 2000