How to add additional icons?

The new icon-based buttons allow you to combine what used to be 3 separate layered controls:

  • Image Element
  • Label
  • Transparent Button

However, if you try to use a non-built-in icon (such as a PNG that was manually imported as an image) it is displayed but does not get pragmatically recolored by the foreground option.

Is there some way to import additional icons, is there a better image format to use, or is this a bug?

By default, normal images are not recolored on the Button. To apply color to it you’ll need to set ShowAsMonochrome to True.

Excellent, Thank You!

Quick question re. image buttons - where can the property “ShowAsMonochrome” be set?

Thanks advance,

Dennis

That property isn’t available on ImageButtons. That’s only on Buttons. When you set the Foreground on an ImageButton it is automatically applied.

FYI - You can also assign images to the standard Button control. I often recommend that control because it supports both standard images plus icons from the app’s icon library.

Bill, I can’t find where to assign an image to a standard button.
Thanks.

The Icon property is used to assign images to buttons.

Thanks Bill, that helped me figure it out.