Jump to content
chkaufmann

Editor for Memo (String) property

Recommended Posts

Hi,

 

I have a component with a string property that contains extra information. Instead of a simple text it can be a memo with many lines. What is the easiest way to have this property opened in a memo editor instead of a simple single line edit? Do I have to create my own property editor or is there a default one I can define for it?

 

Christian

Share this post


Link to post

Don't you just declare the property as TStrings? Use its Text property when you want a string representation including line feeds. 

Edited by David Heffernan
  • Like 1

Share this post


Link to post

Sure! It's an old component I wrote ten years ago and don't ask me why I created a String property in the first place. I changed it and all works fine now.

 

Christian

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×