demonstrates the use of xtd::forms::button control with image.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include "../resources/gammasoft_16x16.xpm"
#include "../resources/gammasoft_32x32.xpm"
#include "../resources/gammasoft_64x64.xpm"
class form1 :
public form {
public:
form1() {
text(
"Bitmap button example");
button2.image_align(content_alignment::middle_left);
button3.image_align(content_alignment::middle_left);
button4.location({40, 175});
button4.size({70, 70});
}
private:
};
auto main()->int {
application::run(form1 {});
}