huang zhimin
2007-Apr-26 07:14 UTC
Bitmap in Toolbar display only a quarter of picture on Windows XP
I don''t know why the bitmap in toolbar displays only a quarter of picture on Windows XP, but it displays OK on Ubuntu. The attachments are results both on Windows XP and Ubuntu -- flyerhzm@hotmail.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Alex Fenton
2007-Apr-26 07:36 UTC
[Wxruby-users] Bitmap in Toolbar display only a quarter of picture on Windows XP
huang zhimin wrote:> I don''t know why the bitmap in toolbar displays only a quarter of > picture on Windows XP, but it displays OK on Ubuntu. > The attachments are results both on Windows XP and UbuntuIt looks to me like Windows XP is cropping the image to 16x15, which is the default size: http://wxruby.rubyforge.org/doc/toolbar.html#ToolBar_settoolbitmapsize Perhaps try calling set_tool_bitmap_size(Wx::Size.new(32,32)) before adding any tools, or use a 16x15 set of images on all platforms. HTH alex
huang zhimin
2007-Apr-26 10:25 UTC
[Wxruby-users] Bitmap in Toolbar display only a quarter of picture on Windows XP
Thanks, it''s done On 4/26/07, Alex Fenton <alex at pressure.to> wrote:> > huang zhimin wrote: > > I don''t know why the bitmap in toolbar displays only a quarter of > > picture on Windows XP, but it displays OK on Ubuntu. > > The attachments are results both on Windows XP and Ubuntu > It looks to me like Windows XP is cropping the image to 16x15, which is > the default size: > > http://wxruby.rubyforge.org/doc/toolbar.html#ToolBar_settoolbitmapsize > > Perhaps try calling set_tool_bitmap_size(Wx::Size.new(32,32)) before > adding any tools, or use a 16x15 set of images on all platforms. > > HTH > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-- flyerhzm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070426/6b9eed20/attachment.html