Thread View: comp.lang.pascal.delphi.components.usage
2 messages
2 total messages
Started by Gino
Mon, 25 Oct 1999 00:00
Easy Question Listbox ! Please help me asap.
Author: Gino
Date: Mon, 25 Oct 1999 00:00
Date: Mon, 25 Oct 1999 00:00
10 lines
1416 bytes
1416 bytes
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...
Re: Easy Question Listbox ! Please help me asap.
Author: 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...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads