Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created October 21, 2019 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerstlouis/3b45908704015f723592c116d3e543a9 to your computer and use it in GitHub Desktop.
Save jerstlouis/3b45908704015f723592c116d3e543a9 to your computer and use it in GitHub Desktop.
import "ecere"
class Form1 : Window
{
text = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
size = { 640, 480 };
Button button1
{
this, text = "button1", position = { 240, 176 };
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
MessageBox { contents = "Hello, world!" }.Modal();
return true;
}
};
}
Form1 form1 {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment