Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Publish properties of owned classes

0 views
Skip to first unread message

Karin Schmidt

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
Hi there,

I have written a component. This component owns a few classes and I try
to publish some properties of these owned classes. For this purpose I
derived these classes from TPersistent.
In my component class I have pointers to these owned classes but when I
try to publish them (like in the example pie) I get the
message "Not an allowed type"

Does anybody know what's wrong???
Thanks in advance

Karin

Mark Cashman

unread,
Nov 2, 1998, 3:00:00 AM11/2/98
to
Karin -

There's more to publishing classes and properties than just deriving
them from TPersistent. If you define your classes based on classes
already known to the object inspector (i.e. TStringList, for instance or
TFont), it has no problem displaying the class. But otherwise you must
create a property editor for your class.

--
------
Mark Cashman, creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/workshop/software.htm
------

Karin Schmidt

unread,
Nov 4, 1998, 3:00:00 AM11/4/98
to
Hi!

I wrote a property editor for my class, but I had still the same problem
("not an allowed type"). A few hours later I solved this problem
accidently (it was a problem with one of my header files) and now it's
possible to publish the properties of the owned classes!!! (I have
another problem now, but that's another story)

Thank you for the hint with the property editor!!! It helped much!

Karin

Mark Cashman

unread,
Nov 6, 1998, 3:00:00 AM11/6/98
to
Glad to be of assistance.
0 new messages