http://qs321.pair.com?node_id=1022491


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