xtd
0.2.0
Toggle main menu visibility
Home
Categories
Documentation
Namespaces
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
v
x
Enumerations
Related Symbols
Files
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
hello_world_message_box2.cpp
The classic first application "Hello, World!" with
xtd::forms::message_box
control.
Windows
macOS
Gnome
#include <xtd/xtd>
using namespace
xtd::forms
;
auto
main() ->
int
{
auto
main_form =
form::create
(
"Hello world (message_box)"
);
auto
message_button =
button::create
(main_form,
"&Click me"
, {10, 10});
message_button.click += [] {
message_box::show
(
"Hello, World!"
);};
application::run
(main_form);
}
xtd::forms::application::run
static void run()
Begins running a standard application message loop on the current thread, without a form.
xtd::forms::button::create
static button create()
A factory to create an xtd::forms::button.
xtd::forms::form::create
static form create()
A factory to create an xtd::forms::form.
xtd::forms::message_box::show
static dialog_result show(const iwin32_window &owner)
Displays a message box in front of the specified window.
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
Generated on Wed Jul 2 2025 21:01:09 for xtd by
Gammasoft
. All rights reserved.