From: Mattia B. <mb...@ds...> - 2002-06-07 20:55:27
|
> Hi Mattia, > I'm using Wx::Grid in my application, but am having problems accessing its > methods. > > When I try calling $grid->SetEditable(0), for instance, I'm getting the > error: > > Can't locate object method "SetEditable" via package "Wx::Grid"... This documentation's fault: SetEditable has been deprecated ( so I didn't wrap it ); use ::EnableEditing. > I've got a 'use Wx::Grid' at the top of my source. > > $grid->DeleteCols(0,10,1) works fine. > > I'm using wxPerl 0.10 and wxWindows 2.2.9 (on Windows 98), and wxDesigner to > generate my dialog. > > I note in the wxWindows documentation that there's a new wxGrid > implementation (from wxWindows 2.1.14) with a new (supposedly backward > compatible) API, and the API documentation in 2.2.9 is not for the new > version - is this my problem? Yes, it is; you can find more up to date documentation in the 2.3.x releases; it will document some methods that are not available in 2.2.x, but should be generally more up to date. HTH Mattia |