From: DH <cra...@ya...> - 2002-11-29 17:46:46
|
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. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |