I have a speed button (W=24; H=24 px), placed in a toolbar.
My code is
if stQuickTransOn
then imagelist1.GetBitmap(0,SpeedButton1.Glyph)
else imagelist1.GetBitmap(1,SpeedButton1.Glyph);
Images are stored in imglImagesOnOff, all images in it are 24x24 pixels. imglImagesOnOff is itself 24 pixels wide.
When I have not touched default values of the speed button image is drawn OUTSIDE(above) the button.
I tried various settings, but could not center the image on both axises.
I have also tried Center of the images in imagelist1, but they got garbled, scrambled... etc.
Should I use some other control instead of TSpeedButton?
(a sample is attached)