toolbar bitmap size on OSX

Hi there.

I read somewhere (can't find it now) that the toolbar icons on OSX
must be 32x32 pixels. Is that correct? I'd like to use smaller icons.

tks

Carlos

I read somewhere (can't find it now) that the toolbar icons on OSX
must be 32x32 pixels. Is that correct? I'd like to use smaller icons.

It didnt used to be -- give it a try:

http://wiki.wxpython.org/WorkingWithToolBars

(that code is a bit old, but see what you get -- if it needs fixing,
please ask here and/or fix it and update the Wiki)

-Chris

···

On Sun, Mar 18, 2012 at 4:43 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

tks

Carlos

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

--

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

Thanks Chris,
I managed what I wanted using GenStaticBitmap.

best,

···

Prof. Carlos Henrique Grohmann
Institute of Geosciences - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com


Can’t stop the signal.

Sent with Sparrow

On Monday, 19 March 2012 at 18:55, Chris Barker wrote:

On Sun, Mar 18, 2012 at 4:43 PM, Carlos Grohmann > carlos.grohmann@gmail.com wrote:

I read somewhere (can’t find it now) that the toolbar icons on OSX

must be 32x32 pixels. Is that correct? I’d like to use smaller icons.

It didnt used to be – give it a try:

http://wiki.wxpython.org/WorkingWithToolBars

(that code is a bit old, but see what you get – if it needs fixing,

please ask here and/or fix it and update the Wiki)

-Chris

tks

Carlos

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

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

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

The native toolbar does require bitmaps of specific sizes, and will scale up to the next acceptable size if the ones you use do not match one of those sizes. I don't remember off the top of my head what those sizes are, but in addition to 32x32 I think that 24x24 is supported, and also some larger than 32.

One of the nice things about the native toolbar is that the user can change the size of the toolbar buttons at runtime, as well as whether the labels are shown, etc. They just need to Cmd-Click on the oval-shaped gumdrop on the right size of the caption bar. Hmm... That appears to be gone on 10.7, I wonder if the feature was simply removed or if there is now another way to do it.

Anyway, you may have noticed that I kept saying "native toolbar" above. You can use a non-native toolbar if you want simply by not using frame.CreateToolbar or frame.SetToolbar. Instead make the toolbar be a child of the frame's main panel and manage it's layout with a sizer. That should give you more support for non-standard tool sizes, but won't look nearly as nice or as Mac-ish as the native toolbar does.

···

On 3/18/12 4:43 PM, Carlos Grohmann wrote:

Hi there.

I read somewhere (can't find it now) that the toolbar icons on OSX
must be 32x32 pixels. Is that correct? I'd like to use smaller icons.

--
Robin Dunn
Software Craftsman