When I add an image (32x32) to a TListImage it appears smaller (I think 16x16) when I add that image to a Button or SpeedButton. It also knocks out the background color which I can live with but I need to increase the size of the image on the buttons. In the attached screenclip the middle image is the original size shown in a TImage (32x32). Any ideas?

When I add an image (32x32) to a TListImage it appears smaller (I think 16x16) when I add that image to a Button or SpeedButton. It also knocks out the background color which I can live with but I need to increase the size of the image on the buttons. In the attached screenclip the middle image is the original size shown in a TImage (32x32). Any ideas?

Comments

  1. I presume that he is not using code at all, but everything made at design time. I never liked the FMX TImageList. For buttons, I prefer to embed a TGlyph on them and set the image there

    ReplyDelete
  2. Correct, no code, just what the IDE outputs. Let me check out the TGlyph. Thanks

    ReplyDelete
  3. Ok great, it appears that TGlyph gives me complete control over positioning and size. What's interesting is that TGlyph shows an initial size of 16x16 and Platform Default checked. This is same size as the image coming from TImageList inspite of being set everywhere as 32x32, then I override it in the TGlyph settings. I even exported from TImageList and the resulting file is 32x32.

    TGlyph seems to be my hero as it solves the sizing and positioning problem I have as well. Thank you!

    ReplyDelete

Post a Comment