ah...no thats not going to work.

(1) LB.Selected requires an index and a boolean.  i.e.
     LB.Selected[0]:=true

BUt I have now decided not to worray about it.....it was just a nice feature
to have rather than just watching the scroll bar position slider thingy
getting smaller.....but I hues I will live...

Thanks, anyway,

Jeremy Coulter

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Aaron Scott-Boddendijk
> Sent: Sunday, February 28, 1999 09:27
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Listbox position
>
>
> >I am doing something that adds data to a listbox.
> >
> >BUT I want to move tot he last item in the list box, so I can
> see the items
> >being added.
> >
> >anyone know how I should go about this ?
>
> for I := 0 to 100 do begin
>   LB.Items.Add(IntToStr(I));
>   LB.Selected := LB.Items.Count-1;
>   Application.ProcessMessages;
> end;
>
> should do it...
>
> Note that moving to the last added item all the time will slow the add
> process...
>
> --
> Aaron@home
>
> ------------------------------------------------------------------
> ---------
>     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