Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created October 19, 2013 22:04
Show Gist options
  • Save jerstlouis/7062110 to your computer and use it in GitHub Desktop.
Save jerstlouis/7062110 to your computer and use it in GitHub Desktop.
import "ecere"
int TestFunction(int x, int y)
{
PrintLn("x = ", x, ", y = ", y);
}
void TakeSomething(int test(int x, int y))
{
test(10, 20);
}
class Form1 : Window
{
caption = "Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 632, 438 };
Button button1
{
this, caption = "button1", position = { 288, 192 };
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
TakeSomething(TestFunction);
return true;
}
};
}
Form1 form1 {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment