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
140
Setting Image to ImageAndTextButtonUIElement
posted

How can i set an transparent image to an ImageAndTextButtonUIElement so only the image is displayed an not the border and the button background. I tried using the Appearance.ImageBackground and set the ThemedElementAlpha to Transparent. But now no Image is displaed at all. When using ImageAndTextButtonUIElement.Image then the image is shown but with border and button background.

Any suggestions?

Thanks and regards

Thorsten Pontow

Parents Reply
  • 140
    Offline posted in reply to Andrew Goldenbaum

    StollfussMedienOriginal.zip

    The orginal style isl-File from which we started our own isl-File. Even with this one the icon is not transparent while using a CreationFilter.

    Without using the style everything is ok!

    So i only need a way to prevent AppStyling for the ImageAndTextButtonUIElement. In this forum i found some posts that suggest to implement an own ImageAndTextButtonUIElement subclass and override the DrawTheme() method and return false. Is that the right way to do it?

Children