Discussion:
virtual listview problem
(too old to reply)
Alexander Aliev
2008-07-13 20:42:49 UTC
Permalink
Hi,

I use virtrual listview and don't see items on screen.
Here is my handler for OnData event:

void __fastcall TReklamDlg::ListViewPlanesData(TObject *Sender,
TListItem *Item)
{
Item->Caption = "11111111111111";
for (int col = 1; col < 4; col++)
Item->SubItems->Add( "2222" );
}

In constructor of the form:
...
ListViewPlanes->Items->Count = 100;
...

In debugger I see that Item->Index is equal to that very
item (invisible) which is under moving mouse.
There is a scroller in listview. When I scrool to the end
and move mouse over the last row in listview I see that
Item->Index = 99.

There is another listview in the program and everything is ok with it.
I looked through all properties and set them equal to those
for a "good" listview, but my listview is still looks "empty".

What I am doing wrong?
Thank you for any hint.

Alexander
Alexander Aliev
2008-07-14 07:02:23 UTC
Permalink
Resolved.
I have forgotten about adding columns...

Loading...