Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by jmlynesjr (Pilgrim)
on Mar 23, 2013 at 20:59 UTC ( #1025075=note: print w/ replies, xml ) Need Help??


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?
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2014-10-01 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (30 votes), past polls