Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Property Editors
Tue, Jul 7 2015 7:48 AMPermanent Link

cwsymons

Hi,
 I want to write a component but I want to register my own property editor.

Is this possible?

tia

Craig
Tue, Jul 7 2015 2:10 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Craig,

<<  I want to write a component but I want to register my own property
editor.

Is this possible? >>

Not at this time, no.  That type of functionality is going to require some
items that aren't in the IDE yet, namely registering native-code DLLs for
handling the property editing.

However, there are ways to "customize" the property editing, including using
lists and translating to/from string representations.  If you can give me an
idea of what you're trying to do, I can give you more information on how you
could do it with EWB 2.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jul 7 2015 5:57 PMPermanent Link

cwsymons

HI Tim,
 I am trying to create a TreeView component. As you say, I could represent it using strings.

The main hurdle is needing to be able to handle the displaying of the stringlist editor so I could populate the editor prior to being displayed and also depopulate the editor after the ok button is pressed.


regards


Craig
Thu, Jul 9 2015 12:50 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Craig,

<< I am trying to create a TreeView component. As you say, I could represent
it using strings.

The main hurdle is needing to be able to handle the displaying of the
stringlist editor so I could populate the editor prior to being displayed
and also depopulate the editor after the ok button is pressed. >>

Sorry about the delay - I set up this new newsgroup and forgot to set my
newsreader to sync it. Smile

Based upon my reviews on creating a treeview control during EWB 2
development, I came to the conclusion that providing design-time treeview
population would be a non-starter, most notably due to the lack of being to
able to create decent property editor dialogs.

There are two (undocumented) modifiers available for properties to handle
converting non-string-properties to strings for editing purposes, and they
look like this:

property MyProperty: Integer read FMyProperty write FMyProperty
   get GetMyPropertyAsString set SetMyPropertyAsString

But, they won't help with getting the strings edited in the string list
editor, at least not for now.

I'll do some more playing around with things to see if I can make any
additional progress, and will report back here if I'm able to come up with
something more useful for you.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 9 2015 5:50 PMPermanent Link

cwsymons

Thanks Tim
Image