wx.listctrl question

Roy Zinn wrote:

Hi,

I'm using wx.listctrl to show some log file read from file
(i'm reading line by line).

i would like to filter some of the messages but without
deleting them from the list because i'm keeping indexes of
the list to draw graphs etc, and i can't change the list in
the sense of changing indexes.

i need something like hide or make line invisible.... (i know
there's the EnsureVisible method, but i need to opposite)

You could use a virtual list control, and maintain some kind of mapping
between the actual rows in your list, and the visible rows in the listctrl.

You have to override OnGetItemText() to provide the text to be displayed, so
use your mapping to return data only for the rows that you want to appear.

HTH

Frank Millman