#ifndef _TestXMLMenu_TestXMLMenu_h #define _TestXMLMenu_TestXMLMenu_h #include using namespace Upp; #define IMAGECLASS TestImg #define IMAGEFILE #include #define LAYOUTFILE #include struct Pane : public StaticRect { virtual void RightDown(Point p, dword d) { Context(p, d); } Callback2 Context; }; class TestXMLMenu : public WithTestXMLMenuLayout { // context menu handler virtual void RightDown(Point p, dword); void commandCb(XMLCommands &cmds); void quitCb(void) { Break(0); Close(); } DropList testDrop; public: typedef TestXMLMenu CLASSNAME; WithXMLMenu menuCtrl; LineEdit bottomCtrl; TestXMLMenu(); }; #endif