>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 <eaa...@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@listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-requ...@listserver.123.net.nz with
> Subject: unsubscribe
>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@listserver.123.net.nz with 
Subject: unsubscribe

Reply via email to