Article View: comp.lang.pascal.delphi.components.usage
Article #13Re: Easy Question Listbox ! Please help me asap.
From: Robert Suizu
Date: Mon, 25 Oct 1999 00:00
Date: Mon, 25 Oct 1999 00:00
23 lines
1999 bytes
1999 bytes
You could set the TopIndex property for the ListBox so that only the last N
lines are displayed.
For example, NumLinesDisplayed is the maximum number of list items that can
be displayed simultaneously in the ListBox. If there are more items in the
listbox than can be shown at a single time then show only the last
NumLinesDisplayed lines.
NumLinesDisplayed := ListBox1.Height div ListBox1.ItemHeight;
if ListBox1.Items.Count>NumLinesDisplayed then
Listbox1.TopIndex := ListBox1.Items.Count - NumLinesDisplayed;
Gino <ginojens@home.se> wrote in message news:38143E34.A91AB96D@home.se...
> Hi !
>
> When I Add Items in a Listbox I donοΏ½t see the last Items in the window
> cause it scrolls down.
>
> How do I change the form.listbox to follow the Add.Items in scrolling in
the visual window ?
>
> Very best regards
>
> /Gino...
Technical Details
Message-ID:
<pv2R3.916$x8.26572@news.uswest.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38143E34.A91AB96D@home.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fb0ea,358adbdd0cf96806 X-Google-Attributes: gidfb0ea,public X-Google-Thread: f973b,a16f76a6259e9a9 X-Google-Attributes: gidf973b,public X-Google-Thread: 10baee,a16f76a6259e9a9 X-Google-Attributes: gid10baee,public X-Google-Thread: fdeaa,a16f76a6259e9a9 X-Google-Attributes: gidfdeaa,public X-Google-Thread: 109d99,a16f76a6259e9a9 X-Google-Attributes: gid109d99,public From: "Robert Suizu" <rsuizu@phase1tox.com> Subject: Re: Easy Question Listbox ! Please help me asap. Date: 1999/10/25 Message-ID: <pv2R3.916$x8.26572@news.uswest.net> X-Deja-AN: 540450417 References: <38143E34.A91AB96D@home.se> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: news.uswest.net 940880981 216.161.43.40 (Mon, 25 Oct 1999 14:49:41 CDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Mon, 25 Oct 1999 14:49:41 CDT Newsgroups: comp.lang.pascal.delphi.components.usage,borland.public.delphi.non-technical,borland.public.delphi.vcl.components.using,comp.lang.pascal.delphi.components.misc,comp.lang.pascal.delphi.components.usage,comp.lang.pascal.delphi.misc