I have a tool bar with some custom icons (png images). I have both enabled and disabled icon versions. Each toolbar item was added in this way: tb.add_tool(ID_ADD, ''add'', add_bmp, add_d_bmp, Wx::ITEM_NORMAL, ''Add Item'', '''') When I launch the app, the icons which have been disabled via: get_tool_bar.enable_tool(ID_ADD, false) show black backgrounds instead of the normal transparency present in the active icons. The disabled versions of the icons have a transparency mask and are just re-colored versions of the active version. In fact, even if I use the active icon for the disabled version, it still shows a black rectangle as the background. Thoughts? Thanks! -- Posted via http://www.ruby-forum.com/.
Chauk-Mean Proum
2009-Nov-05 17:47 UTC
[wxruby-users] Bitmaps for disabled Toolbar buttons
Hi, 2009/10/28 El Gato <lists at ruby-forum.com>:> I have a tool bar with some custom icons (png images). ?I have both > enabled and disabled icon versions. ?Each toolbar item was added in this > way: > > tb.add_tool(ID_ADD, ''add'', add_bmp, add_d_bmp, Wx::ITEM_NORMAL, ''Add > Item'', '''') > > When I launch the app, the icons which have been disabled via: > > get_tool_bar.enable_tool(ID_ADD, false) > > show black backgrounds instead of the normal transparency present in the > active icons.Do you use Windows XP ? If it is the case, see the installation notes regarding Windows XP (http://wxruby.rubyforge.org/wiki/wiki.pl?Installation) or read directly the following post : http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html Cheers. Chauk-Mean.
Chauk-Mean Proum wrote:> Hi, > > 2009/10/28 El Gato <lists at ruby-forum.com>: >> >> show black backgrounds instead of the normal transparency present in the >> active icons. > > Do you use Windows XP ? > If it is the case, see the installation notes regarding Windows XP > (http://wxruby.rubyforge.org/wiki/wiki.pl?Installation) or read > directly the following post : > http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html > > Cheers. > Chauk-Mean.Perfect! Thanks so much! -- Posted via http://www.ruby-forum.com/.