[wxruby-users] Bitmap toggle button
Alex Fenton
alex at pressure.to
Tue Apr 22 12:35:58 EDT 2008
Ajithkumar Warrier wrote:
> How do I make a bitmap toggle button? I tried making a toggle button
> and then drawing onto it, but that didn't work. Also, I tried a bitmap
> button but that wouldn't remain pressed like a toggle button.
There's nothing in standard wxRuby and wxWidgets like that, apart from a
"toggle" tool in a Wx::ToolBar.
If you search for "wxBitmapButton bitmap" you'll turn up references to
several wxWidgets C++ classes that do this. Maybe you could adapt the
code from one of those to Ruby.
alex
More information about the wxruby-users
mailing list