Skip to content

Instantly share code, notes, and snippets.

@amigojapan
Created August 7, 2022 09:10
Show Gist options
  • Select an option

  • Save amigojapan/04c51ee2d2ed9614ee2e96e9634de6ce to your computer and use it in GitHub Desktop.

Select an option

Save amigojapan/04c51ee2d2ed9614ee2e96e9634de6ce to your computer and use it in GitHub Desktop.
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