Nope, no dice with this (or the other suggestions).

Note, tho, its not the list ITEMS that are at fault, just the column
headers, which dont paint at all.


Thank to everyone for their suggestions, tho.

Nic.
----- Original Message -----
From: "Dennis Chuah" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, February 08, 2000 1:20 PM
Subject: RE: [DUG]: TListView and drawing columns.


>
> Nic,
>
> Try this:
>
> listview.items.beginupdate;
> try
>   listview.items.clear;
>   <Add dummy item>
>   listview.items.clear;
>   <add your list of items>
> finally
>   listview.items.endupdate
> end;
>
> Regards,
> Dennis.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Nic Wise
> > Sent: Tuesday, 8 February 2000 12:08
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: TListView and drawing columns.
> >
> >
> >
> > Bah, damn windows controls :)
> >
> > I have a TListView in report mode, and when I do a bulk update:
> >
> > try
> >   listview.items.beginupdate;
> >   (remove everything and reload it)
> > finally
> >   listview.items.endupdate;
> > end;
> >
> > It NEVER redraws the columns! If I click on one of them, that
> > one comes
> > back, if I move a window over it, it redraws the bit under
> > the window, if I
> > get rid of the beginupdate/endupdate thing, it redraws them
> > OK (but the rest
> > of the update is slow and looks UGLY).
> >
> > Ideas, anyone???? Am I missing a
> > listview.items.repaintyourselfproperly type
> > call????
> >
> > Nic.
> >
> > --------------------------------------------------------------
> > -------------
> >     New Zealand Delphi Users group - Delphi List -
> > [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> >
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

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

Reply via email to