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 |
Create A Custom Edit Control |
Modifying
Mnemonic |
Description |
Add Paragraphs To A Custom Edit Control |
|
Append Text To Custom Edit Control Paragraphs |
|
Clear Custom Edit Control Text |
|
Delete Custom Edit Control Paragraphs |
|
Limit Custom Edit Control Paragraph Length |
|
Resume Custom Edit Control Updates |
|
Perform Custom Edit Control Text Selection |
|
Change Custom Edit Control Tab Settings |
|
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. |