Custom Edit Controls


Custom edit controls can hold one or more lines of text (known as "paragraphs"), each of which may occupy one or more physical lines, depending on the "wrap" setting. If the text will be limited to one line, use the edit box control instead.

Creating

Mnemonic

Description

'TXEDIT'

Create A Custom Edit Control

Modifying

Mnemonic

Description

'TXADD'

Add Paragraphs To A Custom Edit Control

'TXAPPEND'

Append Text To Custom Edit Control Paragraphs

'TXCLR'

Clear Custom Edit Control Text

'TXDEL'

Delete Custom Edit Control Paragraphs

'TXLIMIT'

Limit Custom Edit Control Paragraph Length

'TXRESUME'

Resume Custom Edit Control Updates

'TXSELECT'

Perform Custom Edit Control Text Selection

'TXSETTAB'

Change Custom Edit Control Tab Settings

'TXSUSPEND'

Suspend Custom Edit Control Updates

Querying

CTRL() Function

Information Returned

0

Outer rectangle of the control in current scaled units.

1

Text of the current paragraph.

2

Current paragraph number (zero based).

3

Total number of paragraphs in the custom edit control.

4

Control class and type.

5

Text of a specified paragraph.

7

Text of all paragraphs.

8

Visible/invisible and enabled/disabled status of the control.

12

Current text selection.

15

Background color of the control.

16

Foreground color of the control.