Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by kcott (Archbishop)
on Mar 08, 2013 at 20:49 UTC ( [id://1022490]=note: print w/replies, xml ) Need Help??


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

G'day Helen,

I'm not a Wx user; however, the documentation seems to indicate that the value you've used for position (i.e. [20,30]) needs to be a Wx::Point instance. See Update below for an issue with the argument list.

I agree that the documentation is not optimal. Here's the links I followed to glean the above information:

I also found Wx::Perl::ListCtrl which you may be interested in: its description claims it provides "a sane api for Wx::ListCtrl".

Update: Your Wx::ListCtrl->new() call contains an additional argument ('Report',    # label) which is throwing position, and subsequent arguments, off by one. Accordingly, the error message you received refers to 'Report' not being a Wx::Point.

-- Ken

Replies are listed 'Best First'.
Re^2: wxPerl fails with a cryptic message: "variable is not of type Wx::Point"
by Anonymous Monk on Mar 08, 2013 at 20:57 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-03-19 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found