Hello!
I have a WinExplorerBar and I have two groups with a couple of items in each of them.
In the first group, I would like to show the items with images which are 32x32.
In teh second group, I would like to show the items with images which are 24x24.
Is this possible somehow?
I ma also thinking about the option of showing items with just text, but I cannot succeed with that either.
Thanks for any feedback!
/Henrik
Hello,
Items of UltraExplorerBar use two type of images, large 32x32 and small 16x16, depend of the Style of the group. This meant that you images assigned to Image property of AppearanceSmall/AppearanceLarge will be resized to fit into the available space (16x16 or 32x32). I assume that when you talk about images with 24x24 you want the size of the rendered image to be 24x24, in order to do this I will suggest you to configure your group to use large image 32x32 and then with the help of IUIDrawFitlter interface to draw the image with 24x24. I’ve implemented this approach into the attached sample, where the size of the drawn image is the same as this of the actual Image object. About the items which shouldn’t display any images you could configure this setting the UseDefaoultImage to false. Please review my sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.
I missed your comments regarding "use default image". It is very clear!
Sorry for that...
I just tried your code and it works as planned.
However, I have some additional question.
When the images are shown a bit smaller, the distance between the items seems larger, and I suppose that it is connected to the reduction of image size.
Can it be sorted out?
Another question is if it is possible to show items without any image at all?
Good work Hristo!
Unfortunately I cannot open your project, but I will try to open it trough one of my colleagues.
What I mean in general is that I want the items in one group to use 32x32 and the items in the other group to use 24x24.
/H