Extended String Property Editor
| Release: | 1.2 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Date: | 05 January 2010 | ||||||||||||||||||||||||
|
Delphi Compatibility:
|
|
- Overview
- Download
- Install Info
- Change Log
- License
Overview
This property editor has been designed to get round two limitations of the standard Delphi string property editor.
- You can't enter multi-line strings with embedded CR/LF characters via the object inspector. Such strings can only be assigned run-time.
- Although Delphi strings have a 2Gb size limit, the standard property editor only accepts strings up to 255 characters long. Once again, longer strings must be assigned at run-time.
The enhanced property editor works with string and TCaption properties. It adds an ellipsis button to the right hand side of the data entry area in the object inspector. Clicking this button displays a dialog box in which the property's value can be entered. Pressing return in the dialog box starts a new line. There is no practical limit to the length of strings that can be entered.
Clicking OK (or pressing Ctrl+Return) causes the entered text to be assigned to the property. If, or how, any newline characters will be displayed in the object inspector depends on the version of Delphi being used.
The edit dialog is resizable. Word wrapping can be switched on or off. Both the word-wrapping and dialog box size and position are persistent. Load and Save buttons are provided in the dialog box to enable the property's value to be loaded from, or saved to a file.
Screen shots
Our first screen shot is of the extended string editor dialog box, called from Delphi 2010, displaying a two line string.

The second screen shot shows the object inspector displaying a multi-line string in a label's caption. This caption has been entered using the extended string property editor. The ellipsis button displays the editor when clicked.

As can be seen above we are editing a TLabel. The final screenshot shows the label on a form at design time, displaying the two lines of text.




