Extended String Property Editor


Contents


Description

The file PJStringPE.pas defines an extended property editor for properties of type string or TCaption. The editor enables multi-line strings to be edited in a dialog box that imposes no effective limit on the length of the string.


Compatibility

The property editor has been tested with Delphi 4, 6 & 7. It is likely that it will work with Delphi 5, but this has not been tested. It may also work with Delphi 2 and 3, but again no tests have been conducted.


Installation

In these instructions $(DELPHI) is to be taken to represent the path where the appropriate version of Delphi was installed. For example, if you have Delphi 2 installed on the default installation path then $(DELPHI) is equivalent to C:\Program Files\Borland\Delphi 2.0.

Installation with Delphi 2

Warning: This property editor has not been tested with Delphi 2 and is not guaranteed to compile under it.

  1. Unzip the .zip file into a folder, preserving the directory structure.
  2. Copy PJStringPE.pas and PJStringPE.dfm to the folder from where you wish to install the property editor. This will probably be an existing folder where you keep library components - say the default $(DELPHI)\lib sub-folder.
  3. Start Delphi. Select the Component | Install menu option. Click the Add button, then the Browse button and navigate to the PJStringPE.pas file in the folder where you placed it. Click OK to recompile the component library.
  4. You can now delete PJStringPE.pas from the place where you copied it if you wish. Do not delete PJStringPE.dfm. The property editor will now be used by the object inspector for any property of type string or TCaption in any of your components.

Installation with Delphi 3 & later

  1. Unzip the .zip file containing the property editor into a suitable folder, preserving the directory structure.
  2. Copy PJStringPE.pas and PJStringPE.dfm to the folder from where you wish to install the property editor. This will probably be a sub-folder of the $(DELPHI)\lib folder.
  3. Install the property editor by chosing the Component | Install Component menu option. We will be installing into an existing design-time package of your choice:
  4. The property editor will now be installed. You can now delete PJStringPE.pas from the place where you copied it if you wish. Do not delete PJStringPE.dfm. The property editor will now be used by the object inspector for any property of type string or TCaption in any of your components.

Known Issues

None at present.


Update History

Release 1.1 of 12 August 2004
PJStringPE v1.1 of 12 August 2004

Release 1.0 of 30 June 2004
PJStringPE v1.0 of 30 June 2004


License & Disclaimer

This property editor is copyright © P.D.Johnson, 2000-2003.

This source code is subject to the Mozilla Public License Version 1.1 (the "'License"); you may not use this program except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is Extended String Property Editor.

The Initial Developer of the Original Code is Peter Johnson (http://www.delphidabbler.com/).

Portions created by the Initial Developer are Copyright © 2004 Peter Johnson. All Rights Reserved.

Contributor(s):

Richard C Haven

All relevant trademarks are acknowledged.


About the Author

I'm Peter Johnson - a hobbyist programmer living in Ceredigion in West Wales, UK. I write mainly in Delphi. My programs are available for download on my web-site: http://www.delphidabbler.com/.

I can be contacted via the website.