Created
October 19, 2013 22:04
-
-
Save jerstlouis/7062110 to your computer and use it in GitHub Desktop.
This file contains 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" | |
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