Start of Content Area

Function documentationInstance Attributes  Locate the document in its SAP Library structure

The following instance attributes describe the state of the control. They are all flagged as Read Only, so you can use, but not change them.

The frontend attributes are not set from within the control. This means that you can only change them using SET methods from the ABAP proxy. This allows the values of the frontend properties to be reflected in attributes on the ABAP side. To set an attribute, you need to call the corresponding set method, which implicitly updates the corresponding instance attribute. This means that you do not need to call the get methods, thus avoiding flushes, which affect performance.

The instance attributes are initialized in the constructor, and are updated when you call the corresponding set methods.

Instance Attributes

Type / Value

Description / Use

M_AUTOREDRAW_REFCOUNTER

TYPE I VALUE 0 READ-ONLY

Reference counter: Determines when the control is redrawn

M_AUTO_INDENT

TYPE I READ-ONLY

Value for automatic line indentation

M_COMMENTS_STRING(STRING_LENGTH)

TYPE C READ-ONLY

Character which, when placed at the beginning of a line, signals that the entire line is a comment. To set the value, use the method SET_COMMENTS_STRING. To set the highlighting, use the method SET_HIGHLIGHT_COMMENTS_MODE.

M_FILEDROP_MODE

TYPE I VALUE DROPFILE_EVENT_OFF READ-ONLY

File mode in drag and drop. You set it using the SET_FILEDROP_MODE method.

M_HIGHLIGHT_BREAKPOINTS_MODE

TYPE I READ-ONLY

Breakpoint highlighting on or off (true or false). You set this using the method SET_HIGHLIGHT_BREAKPOINTS_MODE.

M_HIGHLIGHT_COMMENTS_MODE

TYPE I READ-ONLY

Comment line highlighting on or off (true or false). To set the attribute, use the method SET_HIGHLIGHT_COMMENTS_MODE.

M_LOCAL_CONTEXTMENU_MODE

TYPE I READ-ONLY

Visibility of context menu (True:Visible, False: Invisible). You set the attribute using the method SET_LOCAL_CONTEXTMENU_MODE.

M_READONLY_MODE

TYPE I READ-ONLY

Text displayed in protected or input mode (true or false) To set the attribute, use the method SET_READONLY_MODE.

M_SPACES_ON_INDENT

TYPE I VALUE 2 READ-ONLY

Number of spaces that you want to insert or delete for indentations. To set the attribute, use the method SET_SPACES_ON_INDENT.

M_STATUS_TEXT(STRING_LENGTH)

TYPE C READ-ONLY

Text in first element of the status line. To set it, use the method SET_STATUS_TEXT.

M_STATUSBAR_MODE

TYPE I READ-ONLY

Display or suppress the status bar (false or true). To set it, use the method SET_STATUSBAR_MODE.

M_TOOLBAR_MODE

TYPE I READ-ONLY

Display or suppress the toolbar (false or true). To set it, use the method SET_TOOLBAR_MODE.

M_WORDBREAK_PROCEDURE

TYPE I READ-ONLY

Line break behavior for normal text or ABAP code (TEXT_STANDARD or TEXT_ABAP)

M_WORDWRAP_MODE

TYPE I READ-ONLY

Line break behavior:

·        No line break (WORDWRAP_OFF)

·        Line break at edge of window (WORDWRAP_AT_WINDOWBORDER)

·        Line break at a fixed position (WORDWRAP_AT_FIXED_POSITION)

You set these values when you create the instance (CONSTRUCTOR method) or explicitly using the method SET_WORDWRAP_BEHAVIOR.

M_WORDWRAP_POSITION

TYPE I READ-ONLY

Position in a line at which the line break automatically occurs. You set this value when you create the SAP Textedit instance (CONSTRUCTOR method).

Note

This value is only used if you have set M_WORDWRAP_MODE to 2 or WORDWRAP_AT_FIXED_POSITION.

M_WORDWRAP_TO_LINEBREAK_MODE

TYPE I READ-ONLY

Converts soft line breaks to hard ones when you save in the SAP System

·        Soft line breaks are ignored when you save. Line ends at the next hard line break (false).

·        Soft line breaks are converted to hard breaks on saving (true)

You set this value when you create the SAP Textedit instance (CONSTRUCTOR method).

M_NAVIGATE_ON_DBLCLICK

TYPE I READ-ONLY

Mode for reacting to a double-click To set the value, use the method SET_NAVIGATE_ON_DBLCLICK

 

 

End of Content Area