1 #define MODULE_NAME "HelloForm"
5 class HelloForm : public Window
10 CONSTRUCT(HelloForm, Window)
12 caption = $("Sample App using Ecere Toolkit/C++ Bindings");
13 borderStyle = sizable;
14 clientSize = { 640, 480 };
18 background = formColor;
19 font = { "Arial", 30 };
22 button.position = { 200, 200 };
23 button.caption = $("Yay!!");
24 button.notifyClicked = [](Window & owner, Button & btn, int x, int y, Modifiers mods)
26 HelloForm & self = (HelloForm &)owner;
28 msgBox.caption = self.button.caption;
29 msgBox.contents = $("C++ Bindings!");
34 onRedraw = [](Window & w, Surface & surface) { surface.writeTextf(100, 100, $("Instance Method!")); };
39 REGISTER_CLASS_DEF(HelloForm, Window, app);