1 #ifndef _CtrlMoverTest_CtrlMoverTest_h 2 #define _CtrlMoverTest_CtrlMoverTest_h 3 4 #include <CtrlLib/CtrlLib.h> 5 6 using namespace Upp; 7 8 #define LAYOUTFILE <CtrlMoverTest/CtrlMoverTest.lay> 9 #include <CtrlCore/lay.h> 10 11 #include <CtrlMover/CtrlMover.h> 12 #include <AutoScroller/AutoScroller.h> 13 14 class CtrlMoverTest : public TopWindow { 15 public: 16 typedef CtrlMoverTest CLASSNAME; 17 CtrlMoverTest(); 18 19 void VisitCB(); 20 void ClearCB(); 21 void EnableCB(); 22 void DisableCB(); 23 void DeepCB(); 24 void FrameCB(); 25 void ViewCB(); 26 27 void ToInfo(const String& s); 28 void OnSelect(Ctrl& c, Point p, dword keyflags); 29 void OnSelectMulti(const Vector<Ctrl*>* pctrls, Rect r, dword keyflags); 30 31 AutoScroller<ParentCtrl> sc; 32 33 WithCtrlMoverTestLayout<ParentCtrl> vis; 34 FrameLeft<WithLeftBarLay<ParentCtrl> > sb; 35 CtrlMover hk; 36 37 FrameTop<WithControlLay<StaticRect> > ft; 38 EditString es; 39 40 FrameBottom<WithBotLay<ParentCtrl> > bot; 41 }; 42 43 #endif 44 45