Icon Sizes

I have created some of my own icons in 16px and 32px.

When they are in the Ribbon (first image below), the 32px ones are the same size as the built-in icons.

But when I create a toolbar (second image below), they are smaller.

In the first image (from the Ribbon), the two on the left are created by me; in the second image, the bottom icon is built in, and the two above are mine.

As you can see, they are both smaller.

Does anybody know why?

Comments

  • ALANH
    edited August 23

    I really am not sure but this is some lines in my toolbar, see the 16 & 32, change 1 only and see what it does.

    ID_Matchprop [_Button("Match Properties", RCDATA_16_MATCH, RCDATA_16_MATCH)]^C^C_matchprop
    ID_Erase [_Button("Erase", RCDATA_16_ERASE, RCDATA_32_ERASE)]^C^C_erase

    Does vertical v's horizontal make any difference ?

  • An update on how I resolved this issue.

    I ended up increasing the bitmap (.png in my case) to 128px.

    I noticed that, depending on the toolbar size, the size of the custom bitmap icons changed.

    There was no difference in the icon sizes between built in and custom when I had the setting set to small icons (sadly on a 4k monitor, they are too small to be useful to 60-year-old eyes).

    When I tried 64px they were the correct size as built in (using the large icons setting), but were still a bit fuzzy, so I tried 128px and they are perfectly acceptable.

    Whether this is my setup that is causing this, I can't say, but it works and worth sharing.

    Thanks, AlanH, for giving me a clue as to what this might be, as I remember seeing in one of your posts about using icons larger than 32px, so I gave it a try.