Button.this

Creates a push button with the given label, which may be an image or some text.

  1. this(ImageLabel label, Widget parent)
    class Button
  2. this(string label, Widget parent)

Bugs

If the image is bigger than the button, it may not be displayed in the right position on Linux.

Meta

History

The ImageLabel overload was added on June 21, 2021 (dub v10.1).

The button with label and image will respect requests to show both on Windows as of March 28, 2022 iff you provide a manifest file to opt into common controls v6.