mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@15904 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b8c65f9026
commit
e2a5769634
2 changed files with 50 additions and 0 deletions
9
upptst/HoldTriple/HoldTriple.upp
Normal file
9
upptst/HoldTriple/HoldTriple.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
41
upptst/HoldTriple/main.cpp
Normal file
41
upptst/HoldTriple/main.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#include <CodeEditor/CodeEditor.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyCtrl : Ctrl {
|
||||
void Paint(Draw& w) override {
|
||||
w.DrawRect(GetSize(), Blue());
|
||||
}
|
||||
void LeftHold(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Left Hold!");
|
||||
}
|
||||
void RightHold(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Right Hold!");
|
||||
}
|
||||
void MiddleHold(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Middle Hold!");
|
||||
}
|
||||
void LeftTriple(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Left Triple!");
|
||||
}
|
||||
void RightTriple(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Right Triple!");
|
||||
}
|
||||
void MiddleTriple(Point p, dword keyflags) override
|
||||
{
|
||||
Exclamation("Middle Triple!");
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyCtrl ctrl;
|
||||
TopWindow win;
|
||||
win << ctrl.RightPos(100, 100).TopPos(200, 200);
|
||||
win.Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue