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

As McA demonstrated, the wxPerl ListCtrl calling parameters aren't correct. Missing the id, position, and size, and the style is out of order.

James

There's never enough time to do it right, but always enough time to do it over...

  • Comment on Re: Porting a wxPython List Control example into wxPerl: don't see column headings?

Replies are listed 'Best First'.
Re^2: Porting a wxPython List Control example into wxPerl: don't see column headings?
by HelenCr (Monk) on Mar 25, 2013 at 00:34 UTC

    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