[DUG] ListView - Scroll Event
Robo
robo555 at gmail.com
Sun Jul 27 22:28:33 NZST 2014
>From memory, when a record changes, first an event gets fired where
selected item is nil, then a second event gets fire where selected item is
the new item.
On Sun, Jul 27, 2014 at 11:07 AM, Eric A <eaa603 at hotmail.com> wrote:
> (Delphi 7)
>
> I wish to detect the user selecting a row (item) in a ListView component
> to display child records for the item in another control.
>
> There is no "OnScroll" event for this control. I can use the "OnClick"
> event OK for a selection cia the mouse, but how do I detect when a user
> scrolls on to a record by using the arrow keys (or PgUp, PgDn or moving the
> scrollbar ?
>
> I have tried the using the OnChange event but it seems that there are two
> events generated for each movement by the arrow keys.
>
> Does anyone have a code snippet to accomplish this?
>
> Eric.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20140727/0c7932e3/attachment.html
More information about the Delphi
mailing list