BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open TStrings-property in the IDE-editor

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Dietmar Brueckmann
Guest





PostPosted: Mon Nov 03, 2003 3:32 pm    Post subject: Open TStrings-property in the IDE-editor Reply with quote



Hi,

I've written a component with a TStrings-property implemented like SQL of
TQuery.
To edit it at designtime I doubleqlick at the property in the
objectinspector and then the Stringlist-Editor appears. There I always
choose the "source-editor" button (or what#s its caption may be in english)
for taht I can edit it in the IDE.

Is it possible to add a feature to my component so taht when I'm doublicking
at this component in the TDataModule its TStrings are immediately opened in
the IDE.

Best regards
Dietmar


Back to top
Constantine Yannakopoulos
Guest





PostPosted: Tue Nov 04, 2003 10:59 am    Post subject: Re: Open TStrings-property in the IDE-editor Reply with quote



Author := "Dietmar Brueckmann";

Quote:
I've written a component with a TStrings-property implemented like
SQL of TQuery.
To edit it at designtime I doubleqlick at the property in the
objectinspector and then the Stringlist-Editor appears. There I always
choose the "source-editor" button (or what#s its caption may be in
english) for taht I can edit it in the IDE.

Is it possible to add a feature to my component so taht when I'm
doublicking at this component in the TDataModule its TStrings are
immediately opened in the IDE.

Open the file StrEdit.pas in your Source/Property Editors folder. It
contains the implementation of TStringListProperty, the property editor
for properties of type TSrings. In TStringListProperty.Edit you will
find the code that creates a TStringListModuleCreator to open the
contents of the TStrings in an edit window. You can duplicate this code
in the default verb of a component editor that you will implement for
your component.

HTH

--
Constantine

Back to top
Dietmar Brueckmann
Guest





PostPosted: Wed Nov 05, 2003 1:58 pm    Post subject: Re: Open TStrings-property in the IDE-editor Reply with quote



"Constantine Yannakopoulos" <kyan (AT) deltasingular (DOT) remove.this.gr> schrieb im
Newsbeitrag news:3fa79491$3 (AT) newsgroups (DOT) borland.com...
Quote:
Author := "Dietmar Brueckmann";

Open the file StrEdit.pas in your Source/Property Editors folder. It
contains the implementation of TStringListProperty, the property editor
for properties of type TSrings. In TStringListProperty.Edit you will
find the code that creates a TStringListModuleCreator to open the
contents of the TStrings in an edit window. You can duplicate this code
in the default verb of a component editor that you will implement for
your component.

Thanks for advising me to do that. This encouraged me to make the first

visit in the world of Component/Property-Editors.
It needs a day of work but its great.
After doubleclick at my test-component its TStrings-property immediatly
opens in the IDE.

Best regards
Dietmar




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.