DelphiDabbler Wiki



Extended String Property EditorVersion 2 User Guide

This is the user guide for version 2 of the Extended String Property Editor. If you are still using version 1 there is a different guide.

This property editor enhances the existing Delphi string property editor. It works will all string and TCaption properties.

At first sight the Object Inspector's string property editor is unchanged, and in fact it can be used as before. On closer examination you will find an ellipsis button to the right hand side of the property editor's data entry area. Clicking this button displays a resizeable dialogue box in which the property's value can be entered or modified.

Screenshot of Extended String Property Editor v2
Property editor v2.0.0 dialogue box in Delphi 2010 running on Windows Vista

When typing in the edit box, pressing Return starts a new line.

The dialogue box has a toolbar above the edit box and other controls below. The tool buttons are, from left to right:

Select all text (Ctrl+A)
Selects all the text in the edit box. If there is no text then this button is disabled. This command is also available from the edit box's context menu.
Clear all text (Ctrl+Del)
Deletes all text in the edit box.
Paste over text (Shift+Ctrl+V)
Replaces any existing text in the edit box with text pasted from the clipboard. This button is disabled if there is no text on the clipboard.
Copy all text (Shift+Ctrl+C)
Copies all the text from the edit box to the clipboard. This button is disabled if there is no text to copy.
Undo (Ctrl+Z)
Undoes the previous edit. If the last edit can't be undone this button is disabled. This command is also available on the context menu.
Load from file (Ctrl+L)
Loads the contents of selected text file into the edit box, replacing any existing text.
Save to file (Ctrl+S)
Saves the text from the edit box to a selected file.
Online help (F1)
Displays this wiki page in the default browser. Internet connection required.

In addition to the above commands, the edit box supports the usual cut (Ctrl+X), copy (Ctrl+C) and paste (Ctrl+V) text operations from its context menu.

The controls below the edit box are:

Word Wrap check box
This check box toggles word wrap on and off. When word wrap is off you will need to scroll to the right to see long lines.
OK button (Ctrl+Return)
Closes the dialogue box and updates the property.
Cancel button (Esc)
Closes the dialogue box without updating the property.

If any newlines are included in the text entered in the editor they may or may not be displayed in the object inspector, depending on the version of Delphi. If they are displayed it may be as pairs of vertical bars or pairs of empty squares

Both word-wrapping and dialogue box size and position are persistent.

Page last modified on January 08, 2013, at 07:17 PM