| View previous topic :: View next topic |
| Author |
Message |
Dietmar Brueckmann Guest
|
Posted: Mon Nov 03, 2003 3:32 pm Post subject: Open TStrings-property in the IDE-editor |
|
|
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
|
Posted: Tue Nov 04, 2003 10:59 am Post subject: Re: Open TStrings-property in the IDE-editor |
|
|
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
|
Posted: Wed Nov 05, 2003 1:58 pm Post subject: Re: Open TStrings-property in the IDE-editor |
|
|
"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 |
|
 |
|