mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
19 lines
310 B
C++
19 lines
310 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct TestCtrl : Ctrl {
|
|
virtual void LeftDown(Point p, dword keyflags) {
|
|
TopWindow *w = GetAscendant<TopWindow>();
|
|
if(w)
|
|
w->Title(AsString(p));
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
TopWindow win;
|
|
TestCtrl h;
|
|
win << h.SizePos();
|
|
win.Run();
|
|
}
|