Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Last active May 25, 2016 13:05
Show Gist options
  • Save jerstlouis/cd3729f3a27328a617687cf8e5481dcf to your computer and use it in GitHub Desktop.
Save jerstlouis/cd3729f3a27328a617687cf8e5481dcf to your computer and use it in GitHub Desktop.
#define MODULE_NAME "HelloForm"
#include "ecere.hpp"
class HelloForm : public Window
{
public:
Label label;
HelloForm()
{
caption = I18N("My First Ecere/C++ Bindings App");
borderStyle = sizable;
size = { 380, 190 };
hasClose = true;
label.parent = this;
label.caption = I18N("Hello, Bindings!!");
label.position = { 10, 10 };
label.font = FontResource("Arial", 30);
}
};
GuiApplication app;
main_DECLARATION
{
app = GuiApplication(eC_init_CALL);
HelloForm hello;
app.main();
return app.exitCode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment