Skip to content

Instantly share code, notes, and snippets.

@ecere
Created April 15, 2013 02:11
Show Gist options
  • Save ecere/5385209 to your computer and use it in GitHub Desktop.
Save ecere/5385209 to your computer and use it in GitHub Desktop.
import "ecere"
void SomeFunction(Form1 form, void method(Form1, int))
{
method(form, 3);
}
class Form1 : Window
{
caption = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 632, 438 };
void SomeMethod(int param)
{
PrintLn(param);
}
Button button1
{
this, caption = "button1";
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
SomeFunction(this, SomeMethod);
return true;
}
};
}
Form1 form1 {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment