#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/button_images>
#include <xtd/forms/form>
#include <xtd/forms/horizontal_layout_panel>
#include <xtd/media/system_sounds>
#include <xtd/startup>
namespace example {
class form1 :
public form {
public:
form1() {
client_size({485, 100});
controls().push_back(layout_panel);
text(
"System sound example");
layout_panel.controls().push_back_range({button_asterisk, button_beep, button_exclamation, button_hand, button_question});
button_asterisk.text("asterisk");
button_asterisk.click += [&] {
};
button_beep.text("beep");
button_beep.click += [&] {
system_sounds::beep().play();
};
button_exclamation.text("exclamation");
button_exclamation.click += [&] {
};
button_hand.text("hand");
button_hand.click += [&] {
};
button_question.text("question");
button_question.click += [&] {
};
}
static auto main() {
}
private:
};
}