|
From: Matt F. <ma...@iw...> - 2001-10-09 01:00:21
|
When I run this script, it gives me some weird errors, and what's even weirder is that it says the errors are on lines 147 & 148, but the script itself is only 105 lines. Below is the most important parts of the script, but I'm also attaching the whole thing.
my ($ID_TOOLBAR, $ID_TB_NEW, $ID_TB_OPEN, $ID_TB_SAVE) = (7..11);
my $toolbar = $self->CreateToolBar(wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT, $ID_TOOLBAR);
$toolbar->AddTool($ID_TB_NEW, Bitmap("new"), "New file", "Create a new configuration file");
$toolbar->AddTool($ID_TB_OPEN, Bitmap("open"), "Open file", "Open an existing configuration file");
$toolbar->AddTool($ID_TB_SAVE, Bitmap("save"), "Save file", "Save the current configuration file");
$toolbar->Realize();
And the error:
Argument "bitmaps/new.bmp" isn't numeric in addition (+) at C:/Matt/perl/site/lib/Wx.pm line 147.
Use of uninitialized value in subroutine entry at C:/Matt/perl/site/lib/Wx.pm line 148.
* It does that error for each of the tools on the toolbar.
Thanks in advance,
Matt Felsen
_____________________________________________________________
|