Click or drag to resize

MultiLineEdit Class (Typed)

X#
Create a multiline edit control for displaying and entering information to a variable or field in a server. Multiline edit controls may be bound to a data server field of any type (character, date, logical, numeric, or memo).
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        Edit
          MultiLineEdit
            RichEdit

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS MultiLineEdit INHERIT Edit
Request Example View Source

The MultiLineEdit type exposes the following members.

Constructors
  NameDescription
Public methodMultiLineEdit
Construct a multiline edit control.
Top
Properties
  NameDescription
Public propertyControlType (Overrides ControlType.)
Public propertyLineCount
A numeric value representing the number of lines in a multiline edit control.
Top
Functions
  NameDescription
Public methodGetLine
Get a line of text—specified by position—in a multiline edit control.
Public methodGetLineLength
Get the length of a line of text—specified by position—in a multiline edit control.
Public methodLineDown
Move the cursor from its current position in a multiline edit control down a single line.
Public methodLineUp
Move the cursor from its current position in a multiline edit control up a single line.
Public methodPageDown
Move the cursor from its current position in a multiline edit control down a single page length.
Public methodPageUp
Move the cursor from its current position in a multiline edit control up a single page length.
Public methodScrollHorizontal
Scroll the text in a multiline edit control a specified number of characters to the right or left.
Public methodScrollVertical
Scroll the text in a multiline edit control a specified number of characters up or down.
Top
Remarks
Some of the features provided by multiline edit controls include scrolling lines and pages and retrieving specified lines (in addition to the simple editing primitives inherited from the Edit class).
Examples
This example creates and initializes a multiline edit control:
X#
 1CLASS MyWindow INHERIT TopAppWindow
 2HIDDEN oMyMLE AS OBJECT
 3METHOD Init() CLASS MyWindow
 4SUPER:Init()
 5p := Point{10, 10}
 6d := Dimension{100, 100}
 7oMyMLE := MultiLineEdit{SELF,100,p,d}
 8SELF:Show()
 9oMyMLE:Show()
10oMyMLE:TextValue := "New York" + _CHR(10) + "Boston"
In Windows, multiline edit controls are equivalent to an edit control created with the ES_MULTILINE style. These are normally specified in the resource entity like this:
X#
1RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 80
2STYLE WS_POPUP | WS_DLGFRAME
3BEGIN
4EDITTEXT    IDE_TEXT,10,10,90,45, ES_MULTILINE
5DEFPUSHBUTTON "OK"     IDB_OK,64,60,32,14, WS_GROUP
6END
See Also