[wxMac 2.7] Art provider does not return icons of correct size

H H at h.com
Sat Oct 13 03:11:12 PDT 2007


In article <471060C7.70705 at advancedconcepts.ch>,
 csomor at advancedconcepts.ch (Stefan Csomor) wrote:

> Hi Hartwig
> 
> 64x64 is not a 'native' size, 16,32,48, 128, and now 512 are, 32x32 was 
> the standard size
> 
> now a native icon can carry more sizes, but the wxIcon only has a 
> GetSize, therefore I had fixed this answer to 32x32, so the native icon 
> is still there, and if it carries a 128x128 icon it could use it, I have 
> an outstanding patch to fix art provider, so I hope I'll find the time 
> to merge things for a better overall situation
> 
> Thanks,
> 
> Stefan
> 
> 
> 
> 
> 
> H wrote:
> > When trying to get an icon or bitmap using art provider I do not get the 
> > icons with the correct (default) size. Example:
> >
> > wxArtProvider.GetBitmap/Icon(wxART_ERROR,wxART_MESSAGE_BOX)
> >
> > I expect to get a bitmap or icon of size 64 x 64 (see Apple human 
> > interface guidelines). But I get a 32 x 32 icon (see also art provider 
> > sample).
> > When specifying the additional parameter wxSize(64,64) I get an 
> > interpolated icon of size 64 x 64. This is correct but as it is 
> > interpolated the icon looks pretty ugly.
> >
> > Is this the intended behaviour of the art provider or a feature?
> >
> > Hartwig
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> >
> >

Hi Stefan,

thanks for the answer. I know that 64 x 64 is not native but Apple 
suggests to use 64 x 64 icons in alert dialogs. I do not know how Apple 
does it but probably they downscale the icons from 128 x 128?!

Hartwig






More information about the wx-users mailing list