Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
Different Image Sizes
posted

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

Parents
No Data
Reply
  • 48586
    Verified Answer
    posted

    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.

    145490.zip
Children