mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
33 lines
457 B
C++
33 lines
457 B
C++
#include "DragTest.h"
|
|
|
|
|
|
|
|
DragTest::DragTest()
|
|
{
|
|
Add(ctrl);
|
|
ctrl.VSizePos(100, 0).HSizePosZ(0, 0);
|
|
}
|
|
|
|
void DragCtrl::LeftDrag(Point p, dword keyflags)
|
|
{
|
|
PromptOK("Drag start");
|
|
}
|
|
|
|
void DragCtrl::RightDown(Point p, dword keyflags)
|
|
{
|
|
MenuBar::Execute(THISBACK(OnBar));
|
|
}
|
|
|
|
void DragCtrl::OnBar(Bar &bar)
|
|
{
|
|
bar.Add("Context Item", THISBACK(OnBarItem));
|
|
}
|
|
|
|
void DragCtrl::OnBarItem()
|
|
{
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
DragTest().Run();
|
|
}
|