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 |
From: James L. <jl...@bi...> - 2002-06-10 07:36:12
|
Hi Mattia, I want to be able to display on my application's About box general environment information, including the OS description. I'm getting an error when autoloading wxGetOsDescription - is this available under wxPerl? I remember seeing somewhere a list of all the controls/functions currently mapped across to wxPerl - is this still available, and if so where? On a more general note - really a wxWindows question - is there a wxWindows function which returns the current wxWindows version? Thanks, James |
From: DH <cra...@ya...> - 2002-06-10 08:03:37
|
> On a more general note - really a wxWindows question - is there a wxWindows > function which returns the current wxWindows version? yes, it is wxVERSION_STRING and I remember seeing it in one of the wxPerl demos. Since then, all my OnAbout methods do Wx::MessageBox( qq{ This is Application, version $App::Version running on wxPerl $Wx::VERSION @{[wxVERSION_STRING()]} }); __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |
From: Erich C. B. <eri...@be...> - 2002-06-19 17:39:17
|
Hi everyone, I have an application that I am building with wxPerl 0.10. I have created a notebook on the frame (with a status bar) with one Panel - this is a login panel. When the user enters their username and password, they press the login button which calls a subroutine to connect to another host. When the connection is successful, I want to print a message in the status bar. However, when I call Wx::Frame->SetStatusText("Success", 1); from the subroutine, the app dies. No errors, warnings, or anything. What am I doing wrong? Also, is there a way to format the font color for the text in the status bar? For example, I want success messages to be in blue, and errors in red. Thanks in advance for your help! Erich Beyrent CKP Newspaper Systems, Inc. |
From: Dave R. <dav...@ma...> - 2002-06-19 17:56:05
|
> However, when I call > > Wx::Frame->SetStatusText("Success", 1); > > from the subroutine, the app dies. No errors, warnings, or anything. > What > am I doing wrong? you should probably get a reference to the statusbar and work with that. assuming $frame is your reference to the application frame: my $sb = $frame->GetStatusBar(); > Also, is there a way to format the font color for the text in the status > bar? For example, I want success messages to be in blue, and errors in > red. never tried, but $sb->SetForegroundColour(new Wx::Colour('Red')) might work. /dave |
From: Mattia B. <mb...@ds...> - 2002-06-10 09:23:13
|
On Mon, 10 Jun 2002, James Lavery wrote: >Hi Mattia, >I want to be able to display on my application's About box general >environment information, including the OS description. I'm getting an >error when autoloading wxGetOsDescription - is this available under wxPerl? Not yet >I remember seeing somewhere a list of all the controls/functions currently >mapped across to wxPerl - is this still available, and if so where? Grep the source; I should probably generate it automatically, but there are more important things to do to wxPerl... >On a more general note - really a wxWindows question - is there a wxWindows >function which returns the current wxWindows version? There is wxVERSION_STRING, as suggested in another message ( used in samples/minimal/minimal.pl ); or you can use $Wx::_wx_version that is a number like 2.002009 or 2.003002. Ut sould probably be wrapped in some nice wxFOO, though; I;ll try to remember... Regards Mattia |