ICONS as a PICTURE ON COMMAND BUTTON

atldavid
10-12-2001, 05:07 AM
I'm loading icons into a IMAGELIST control as 16 x 16 icons.
I'm then setting the PICTURE property of command buttons to the images in the IMAGELIST control.
On my PC they are views as small 16x16 images most of the time. Sometimes they show as 32x32 images for no obvious reasons. When running the program on other machines the images always show as 32x32 ? I want them to always show as 16x16. What is happening ? We are all using 1024 resolution with truecolour set in the appearences section of windows.

Garrett Sever
10-12-2001, 07:06 AM
I've seen the same thing happen before. Icons tend to do odd things - Have you considered using bitmaps and setting the UseMask and MaskColor properties on the command buttons?

Regards

atldavid
10-12-2001, 09:30 AM
I've got some Icon editors. Should I save the 16x16 image as .BMP and load that as the picture. I've not used Mask or Maskcolor properties before . What do they do ?

Garrett Sever
10-12-2001, 12:38 PM
The UseMask property allows you to select one color to use as your "Transparent" or masking color.

The MaskColor property lets you select exactly which color you want to use (red, white, etc).

I generally try to use bitmaps instead of icons primarily due to the bizarre behavior that sometimes results in the standard VB controls.

Regards

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum