Toolbar Icons in VGA or Standard displays ...

  • Thread starter Thread starter Tery
  • Start date Start date
T

Tery

Can anyone explain to me how to ensure that toolbar icons will display
correctly regardless of DPI on device?

I have made an icon with both 16x16 and 32x32 images. I assumed that the
correct one would display when deployed, but it's always showing the 16x16,
even on my JasJar test device.

Any suggestions?

Terry
 
It was happening exact opposite with me. I had an icon with both 16x16
and 32x32 image types, and the imagelist image size was specified to be
16x16, but it was always picking the 32x32, and the image was thus
displaying in a truncated form.

I got over the problem by keeping two files for the two image types,
and doing a resolution-check at run-time, and then assigning the
correct image type.
 
Use the CurrentAutoScaleDimensions.Height property to determine whether you
are in hires > 96, is so assign the imagelist with 32x32 otherwise assign
the imagelist with 16x16.

Nice device, I am looking at one of those, upgrading from XDA IIi.

Regards
Simon.
 
Back
Top