Basically you're trying to access the published properties of a component at
run-time and in a sense you're trying to create a run-time Object Inspector.
To quote a post on another newsgroup:

"There are some components around that give you a run-time designer
environment, e.g. http://www.dreamcompany.com/

"You can build such a thing using the routines from the TypInfo unit. These
allow you to access the run-time type information for published properties
in
an object. With that you can enumerate the properties, find out which type
they are, get and set property values. Combine this with a two-column grid
and
you have something like the Object inspector."

There are also plenty of free-ware (with source) projects around that do
this. To start with I would start by having a look in the TypInfo unit and
possibly download one of the many free projects and work it out from there.

By the way, there was a similar thread on this newsgroup not long ago
(entitled RTTI). From this I can only guess that there's likely to be
someone out there that should be able to help you out more than I could at
this point...


-Andreas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of vss
Sent: Wednesday, 2 October 2002 09:25
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Checkbox


Ok, but how do I access the values? i.e. How do I read say
checkbox10...as an example to see if its checked or not?


-----Original Message-----
From: "Andreas Toth" <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Wed, 2 Oct 2002 09:05:49 +1200
Subject: RE: [DUG]:  Checkbox

> If this is what you want to do then why not read/write all the
> components to
> a run-time DFM file? (Where you store this is up to you, but I
> personally
> would not clutter the registry with it.) After all, this support is
> already
> there without you having to write your own -- just look at
> WriteComponent
> for more information...
>
>
> -Andreas
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeremy Coulter
> Sent: Wednesday, 2 October 2002 08:01
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Checkbox
>
>
> Well, for some reason I didn not have RX tools installed her at home. I
> don't know why, but anyway, one reason I didn't want to use the RX
> stuff
> was, this project I am working on is prob. Going to be open source,
> which is ok, but I am trying to limit the number of 3rd party tools it
> requires.
> I actually ended up writing my own component like the RX one but its
> not
> quite as flash as the RX one, but functional all the same.
> What I want it for is a properties page where the user sets up what
> they
> want the app to look like etc. so saving specific properties like
> IndexItem, Value, text etc. of the components based on their type, is
> the best way to go.
>
> Jeremy
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, 1 October 2002 16:46
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Checkbox
>
>
> How about RxTools FormStorage as an option?
>
> > Hi All. Does anyone know of a checkbox control that lets you store
> its
> > value to the registry and retreive it?
> >
> > Cheers, Jeremy
> >
> > --------------------------------------------------------------
> > -------------
> >  New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >  Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> >
> -----------------------------------------------------------------------
> -
> ---
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
> -----------------------------------------------------------------------
> ----
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
> -----------------------------------------------------------------------
> ----
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to