Search code examples
delphiiconsribbon

Delphi's ribbon glitchy images


I am trying to use the ribbon control in delphi, but I'm having problems with the icons. I have one ImageList (16x16 - apparently higher resolutions are bad - the ribbon malfunctions) and I want to use it for ribbon icons. But this problem keeps happenning:

When I have the "Large icons" checkbox unchecked, the small buttons (Action2) are fine. But the bigger one is not. enter image description here On the other hand, when I tick the checkbox, this happens: enter image description here

How do I setup the ribbon correctly? This is crazy :/


Solution

  • So, well, I figured it out. In order to use both image types, one has to have two separate ImageLists - each one holding different icons dimensions. The ActionManager has more fields for Images, which I didn't notice first - Images, DisabledImages, LargeImages(that's it!) and LargeDisabledImages. So in order to have the full functionality of the Ribbon, you have to keep 4 ImageLists.

    (I am keeping the answer here for future reference)