On Wed, 8 Oct 2003 14:13:25 -0500, [EMAIL PROTECTED] said: > I am looking to write a GUI front end to what basically amounts to a "tail > -f", however, I am not sure how to go about doing this. I would like to > use a ListView object to highlight any lines that come through as "Failed", > but i'm not sure how to go about updating the ListView with new > information. Could someone please give me some insight as to how I could > write this front end to use either the "tail -f" command or even the > File::Tail module so that any changes are automagically updated in the > ListView.
One way of updating the ListView is to InsertItems for every new line added to the file your application is watching. If, for example, you are retrieving each line as a string then you could also test for your "Failed" substring and consequently change the color of the list item. Please see the documentation that came with the module or the online version here: http://jeb.ca/perl/win32-gui-docs/index.pl/win32-gui-listview -- -erick-