From: Mattia B. <mat...@li...> - 2006-11-02 19:34:56
|
On Thu, 26 Oct 2006 15:58:05 +0200 Peter Gordon <pe...@pg...> wrote: > 3. In the program supplied: > > a) Using Menu/Load, it takes 5 seconds to load 5000 lines into a > text control. > Is there anything that I can do to speed this up? Is there a > control that can do this faster? I often need to load files > having tens of thousands of lines. The usual recommendation is using wxListBox/wxListCtrl instead. Since you say in another mail that this does not fullfill other requirements, you might try ->LoadFile( $filename ) if it is inside a physical file. > b) Using Menu/Test List Ctrl: > > The line > $list->SetColumnWidth(1,-1) ; > causes the error below. The documentation says that the -1 will > force the header column to be the size of the data <snip> > "wxAssertFailure" failed: invalid column index If I read the code correctly, the listctrl only has one column, so the call should read $list->SetColumnWidth(0,-1) ; HTH Mattia |