xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
buttons.cpp

The following code example demonstrate the use of buttons control factory.

Windows

macOS

Gnome

#include <xtd/xtd>
using namespace xtd::forms;
int main() {
auto main_form = control::create<form>("Buttons example", {100, 200}, {450, 200});
auto actual_size_button = buttons::actual_size(*main_form, {10, 10}, {90, 25});
auto zoom_in_button = buttons::zoom_in(*main_form, {110, 10}, {90, 25});
auto zoom_out_button = buttons::zoom_out(*main_form, {210, 10}, {90, 25});
auto zoom_to_fit_button = buttons::zoom_to_fit(*main_form, {310, 10}, {90, 25});
application::run(*main_form);
}
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition about_box.h:13