Hello, all!
I think I have put too much time into figuring this out - Google and List
archives were no help. Here's my problem:
I built my window with wxGlade. Here is the method I use to set the
toolbar's icon. It is called within the EVT_WINDOW_CREATE()
handler.

0  sub _setup_toolbar{
1      $self=shift;
2
$installedIcon=Wx::ArtProvider::GetBitmap(wxART_NORMAL_FILE,wxART_BUTTON_C);
3      my $tb=$self->GetToolBar();      #works fine
4      my $id=Wx::XmlResource::GetXRCID('tb_build_list');    #works fine.
returns the proper control id
5      my $item=$tb->FindById($id);   #works. returns a Wx::ToolBarToolBase
object
6      $item=$tb->FindControl($id);    #DOES NOT WORK! returns undef
7      $tb->SetToolNormalBitmap($id,$installedIcon); #DOES NOT WORK!
Terminates Program with error!
8  }

Ok. The wxWidgets documentation says that line 8 should work, but i get the
error:
      "Can't locate object method "SetToolNormalBitmap" via package
"Wx::ToolBar" at..."
Is SetToolNormalBitmap() not implemented? Or am I doing somethig wrong?

Thank you for your time!

--Skaman Sam Tyler <[EMAIL PROTECTED]>
--http://rbe.homeip.net
--AIM:SkamanSam3
--MSN:[EMAIL PROTECTED] <[EMAIL PROTECTED]>

Reply via email to