#include <CtrlLib/CtrlLib.h> #include <CodeEditor/CodeEditor.h> using namespace Upp; struct MyAppWindow : TopWindow { Button button; CodeEditor ed; void Click() { PromptOK("You have clicked the button!"); } typedef MyAppWindow CLASSNAME; MyAppWindow() { Title("My application with button"); Add(ed.LeftPos(10, 200).TopPos(10, 200)); button.SetLabel("Click me!"); button <<= THISBACK(Click); ed.Highlight("cpp"); } }; GUI_APP_MAIN { MyAppWindow app; app.Run(); }
Report message to a moderator