Toolbar icon problem

Regan Tackett wrote:

Could someone tell me why the following code doesn’t show the bottom part of the toolbar icons on Windows? Almost all of the icons are shown correctly, except for the very bottom of the bitmaps. This code works great on Fedora Core, and is basically a copy of the code snippet in the book wXIA. The bitmap filenames that I’m using in the code are “New.bmp”, “Open.bmp”, and “Save.bmp”.

On windows, you need to call:

wx.ToolBar.SetToolBitmapSize()

If your bitmaps aren't 16 pixels high. On GTK, it's a no-op, as you've seen, as GTK figures it out itself.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Christopher Barker <Chris.Barker <at> noaa.gov> writes:

On windows, you need to call:

wx.ToolBar.SetToolBitmapSize()

If your bitmaps aren't 16 pixels high. On GTK, it's a no-op, as you've
seen, as GTK figures it out itself.

-Chris

Thank you very much, Sir. You guys and girls are doing a wonderful job of
helping beginners like me out. I really appreciate it.