From: Mattia B. <mb...@ds...> - 2002-11-30 14:43:34
|
On Fri, 29 Nov 2002 09:46:41 -0800 (PST) DH <cra...@ya...> wrote: > Hi. > If i have a Wx::ToolBar, > and I add a tool to it like, so > > my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); > $toolBar->AddTool(-1,$b1); > > the -1 (toolid) is apparently taken litelarly (doesn't work). > Is this a WxWindows bug, or a wxperl bug? (I'd expect -1 to assign a > unique id like usual) > > now for the 2 bitmap version, this i'm sure is a bug in wxPerl. > > my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); > my $b1 = Wx::Bitmap->new('bah2.jpg', wxBITMAP_TYPE_JPEG); > $toolBar->AddTool(6066,$b1,$b2); > > When you click on the tool, the 2nd bitmap is supposed to show, but it > doesn't. > > The 2nd bitmap argument is wxNullBitmap by default, but if I pass a real > bitmap, it should > be my bitmap, and sadly that isn't the case in wxPerl. It appears this is not implemented in Win32. I don't have wxPerl/wxGTK compiled now to try it. Regards Mattia |