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

Class detecting it's own properties?

1 view
Skip to first unread message

Sir Joseph of Greenwood

unread,
May 1, 1996, 3:00:00 AM5/1/96
to

Is it possible for a class to detect what it's own properties are?

I'm wanting to define a base class so that all children of that
class will be able to look at themselves and see what they have,
regardless of how the child is defined.

I can live with limiting this to published properties.

I know that Delphi seems to pick up on published properties
and shows them in the Object Inspector.

Thanks!

Joseph Good

PS - could you please e-mail a repsonse?

Run-sun Pan

unread,
May 1, 1996, 3:00:00 AM5/1/96
to

Try GetPropList(ClassInfo,TypeKind,PropList):integer which will
return the # of the properties found. Unfortunately I forgot where
I found the ref of this function. Can anybody help?

Pan

Sir Joseph of Greenwood (gree...@laplaza.taos.nm.us) wrote:
: Is it possible for a class to detect what it's own properties are?

Ray Lischner

unread,
May 1, 1996, 3:00:00 AM5/1/96
to

On Wed, 01 May 1996 03:10:46 -0600, Sir Joseph of Greenwood
<gree...@laplaza.taos.nm.us> wrote:

>Is it possible for a class to detect what it's own properties are?
>
>I'm wanting to define a base class so that all children of that
>class will be able to look at themselves and see what they have,
>regardless of how the child is defined.
>
>I can live with limiting this to published properties.
>
>I know that Delphi seems to pick up on published properties
>and shows them in the Object Inspector.

The published properties are available at run-time, but the routines
to access that information are not documented. Read the TypInfo.int
file to learn the interface. Most of the routines are
self-explanatory. If you have specific questions, post them here.
--
Ray Lischner li...@tempest-sw.com
Tempest Software, Corvallis, Oregon, USA http://www.tempest-sw.com

HAL HOLLAND

unread,
May 9, 1996, 3:00:00 AM5/9/96
to

CR>Subject: Mastering MIDI in delphi 2.0
CR>Date: 3 May 1996 09:46:27 GMT

CR>HELP.....

CR>Does anyone have an example how to control midi devices in delphi
CR>2.0...

CR>Im currently working on a Midi Effect mixer... but i just don't reallt
CR>know how to handle the midi functions..

Try Creative Lab's WEB site if you have access. They have some
nice programmer's notes available for download.

Hal


0 new messages