Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: wxPerl fails with a cryptic message: "variable is not of type Wx::Point"

by Anonymous Monk
on Mar 08, 2013 at 20:55 UTC ( [id://1022491]=note: print w/replies, xml ) Need Help??


in reply to wxPerl fails with a cryptic message: "variable is not of type Wx::Point"

In what way is the error message cryptic?

$ perl -MWx -e " Wx::ListCtrl->new ( )" $ perl -MWx -e " Wx::ListCtrl->new ( undef, )" $ perl -MWx -e " Wx::ListCtrl->new ( undef, undef , )" $ perl -MWx -e " Wx::ListCtrl->new ( undef, undef , undef )" variable is not of type Wx::Point at -e line 1. $ perl -MWx -e " Wx::ListCtrl->new ( undef, undef , Wx::Point->new )" $ perl -MWx -e " Wx::ListCtrl->new ( undef, undef , [-1,-1] )"

So the 3rd argument must be a point, the docs agree http://docs.wxwidgets.org/stable/wx_wxlistctrl.html#wxlistctrlctor, http://docs.wxwidgets.org/2.8/wx_wxlistctrl.html#wxlistctrlctor

Wx::Listctrl->new( parent, id, pos , size, style, validator, name )

You might be interested in Wx::Perl::ListCtrl - a sensible API for Wx::ListCtrl

See also https://github.com/jmlynesjr/wxPerl-wxBook-Examples/

Your help will be appreciated - this is holding up the development.

I have some jokes if you're interested :)

  • Comment on Re: wxPerl fails with a cryptic message: "variable is not of type Wx::Point"
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found