Quoting Tony Blomfield <[EMAIL PROTECTED]>:

> 
> -----Original Message-----
> From: Dennis Chuah <[EMAIL PROTECTED]>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> Date: Thursday, 2 December 1999 9:10 AM
> Subject: RE: [DUG]: TStrings.Objects
> 
> 
> 
> > > How do I use an Object property (declared as TObject) to do
> > this? Do I
> > > create my own class and put an integer field in it? Or use
> > something like
> > > this example in Delphi help, which casts things to TObjects
> > and then later
> > > casts them back to the appropriate type
> 
snip

> 
> I think this is exactly what we have all been saying... ie Dont use a data
> aware combo, instead populate with a snapshot view of the data.

The application is that i am using a TRzCheckList box to set values in records 
of a detail table. The items in the box are strings from a lookup table and the 
objects would be the numerical value corresponding to each string also from the 
lookup table. Then when the user checks or unchecks an item, a record gets 
added to or removed from the detail table.

In this case it is a matter of there not being a TrzDBLookupCheckList or 
something :)

When I used a Listview in a similar way the Data property of each list item is 
just a simple pointer, not an object. I suppose I could just use a TListView 
instead, as they do have check boxes, the only issue being that there isn't a 
ClickCheck event for the TListView.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to