#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 += [&] {
};
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:
};
}
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:167
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31