Small fix the code in README.md

This commit is contained in:
haru-s 2024-07-14 19:12:50 +09:00
parent 22b53695d0
commit c9deef08a6

View file

@ -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);
} }