Created
August 7, 2022 09:10
-
-
Save amigojapan/04c51ee2d2ed9614ee2e96e9634de6ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "ecere" | |
| class Form1 : Window | |
| { | |
| caption = $"Form1"; | |
| background = formColor; | |
| borderStyle = sizable; | |
| hasMaximize = true; | |
| hasMinimize = true; | |
| hasClose = true; | |
| clientSize = { 320, 304 }; | |
| Label label1 { this, caption = $"What is your name?", position = { 96, 48 } }; | |
| EditBox editBox1 { this, caption = $"editBox1", position = { 96, 80 } }; | |
| Button btnOK | |
| { | |
| this, caption = $"OK", position = { 104, 128 }; | |
| bool NotifyClicked(Button button, int x, int y, Modifiers mods) | |
| { | |
| char buffer[1000]; | |
| sprintf(buffer, "wlecome %s!",editBox1.contents); | |
| label1.caption=buffer; | |
| return true; | |
| } | |
| }; | |
| } | |
| Form1 form1 {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment