Delphi tape with glitch images

I am trying to use a ribbon control in delphi, but I have problems with the icons. I have one ImageList (16x16 - apparently higher resolution is bad - tape malfunction), and I want to use it for ribbon icons. But this problem continues:

When I have the "Big Icons" checkbox selected, the small buttons (Action2) are great. But there is no more. enter image description here On the other hand, when I check the box, this happens: enter image description here

How to configure the tape? This is madness:/

+4
source share
1 answer

So alright, I figured it out. To use both types of images, you need to have two separate image lists - each of which has different icon sizes. The ActionManager has more fields for images that I did not notice at first - Images , DisabledImages , LargeImages (this is it!) And LargeDisabledImages . Thus, in order to have full functionality of the tape, you need to save 4 ImageLists.

(I save the answer here for future reference)

+7
source

Source: https://habr.com/ru/post/1395686/


All Articles