[wxruby-users] Problems with ToolBar Sintaxis

Omar Hernandez lists at ruby-forum.com
Fri Sep 26 20:03:34 EDT 2008


First of all, it's my first week learnig ruby and so is for wxruby,also
this is my first time working with a GUI so please, please, be patient.

I'm having problems with the code for a toolbar, i want to add an item,
but a don't know how. this is my code for now:


 @toolBarPrincipal=ToolBar.new(@panel)
 @toolBarPrincipal.add_tool(-1, '&Bonzai', Bitmap.new("/home/.......
icon.ico"))

I've already red the http://wxruby.rubyforge.org/doc/toolbar.html page
(mi code is basically what comes there.

I want to put it into a panel, named panel. At this point, a litle dot
is drawn on the top-left corner (under a menu bar) but no icon.

I'd appreciate if you help me. A correction, some code examples or some
links would be perfect.


Thanks!!

Sorry if i'm making a thread that already exists (i searched first)
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list