Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Listview canvas painting problem

1 view
Skip to first unread message

ganesh

unread,
Nov 9, 2001, 8:02:12 AM11/9/01
to

Hi

i've a listview contains, 500 rows, depending on my condition i change some rows differnent color, it works fine, but the prob here is, painting is not properly working when i scroll things, if i execute lv.referesh then it shows fine

so i want to hook this scroll bar into a event, whenever i chage scroll bar, i will execute this lv.refresh

any help pls

ganesh

Peter Below (TeamB)

unread,
Nov 9, 2001, 3:23:43 PM11/9/01
to

Make a listview descendent and handle the WM_VSCROLL message. Something like

// in TMylistview declaration
private
Procedure WMVScroll( Var msg: TWMVScroll ); Message WM_VSCROLL;

Procedure TMyListview.WMVScroll( Var msg: TWMVScroll );
Begin
inherited;
If msg.scrollcode = SB_ENDSCROLL Then
Invalidate;
End;

Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: I'm unable to visit the newsgroups every day at the moment,
so be patient if you don't get a reply immediately.

0 new messages