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 |