http://www.perlmonks.org?node_id=1025204


in reply to Re: Porting a wxPython List Control example into wxPerl: don't see column headings?
in thread Porting a wxPython List Control example into wxPerl: don't see column headings?

James and Anonymous: you are right, of course.

In my OP, the call to Wx::ListCtrl (code line 25) should be changed from:

$self->{list} = Wx::ListCtrl->new($self->{panel}, wxLC_REPORT, [200, -1]);

to:

$self->{list} = Wx::ListCtrl->new($self->{panel}, -1, wxDefaultPosition, [200, -1], wxLC_REPORT);

then it works fine, as intended.

Thank you for your help - Helen