mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-29 06:40:06 +03:00
Small fix the code in README.md
This commit is contained in:
parent
22b53695d0
commit
c9deef08a6
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -12,12 +12,12 @@ void main()
|
||||||
form.text = "Welcom to DFL";
|
form.text = "Welcom to DFL";
|
||||||
form.size = Size(300, 300);
|
form.size = Size(300, 300);
|
||||||
|
|
||||||
Button _button = new Button;
|
Button button = new Button;
|
||||||
_button.text = "OK";
|
button.text = "OK";
|
||||||
_button.location = Point(20, 20);
|
button.location = Point(20, 20);
|
||||||
_button.size = Size(100, 50);
|
button.size = Size(100, 50);
|
||||||
_button.click ~= (Control c, EventArgs e) => msgBox("OK button is clicked.");
|
button.click ~= (Control c, EventArgs e) => msgBox("OK button is clicked.");
|
||||||
_button.parent = form;
|
button.parent = form;
|
||||||
|
|
||||||
Application.run(form);
|
Application.run(form);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue