diff --git a/uppdev/PaintSizeGrip/PaintSizeGrip.upp b/uppdev/PaintSizeGrip/PaintSizeGrip.upp new file mode 100644 index 000000000..64c4df5c5 --- /dev/null +++ b/uppdev/PaintSizeGrip/PaintSizeGrip.upp @@ -0,0 +1,10 @@ +uses + CtrlLib; + +file + main.cpp, + test.iml; + +mainconfig + "" = "GUI SSE2"; + diff --git a/uppdev/PaintSizeGrip/init b/uppdev/PaintSizeGrip/init new file mode 100644 index 000000000..7966b5a0c --- /dev/null +++ b/uppdev/PaintSizeGrip/init @@ -0,0 +1,4 @@ +#ifndef _PaintSizeGrip_icpp_init_stub +#define _PaintSizeGrip_icpp_init_stub +#include "CtrlLib/init" +#endif diff --git a/uppdev/PaintSizeGrip/main.cpp b/uppdev/PaintSizeGrip/main.cpp new file mode 100644 index 000000000..b52f31faf --- /dev/null +++ b/uppdev/PaintSizeGrip/main.cpp @@ -0,0 +1,31 @@ +#include +#define IMAGECLASS TestImg +#define IMAGEFILE +#include +#define IMAGECLASS TestImg +#define IMAGEFILE +#include + +using namespace Upp; + +struct MyApp : TopWindow { + StatusBar status; + + virtual void Paint(Draw& w) { + w.DrawRect(GetSize(), Gray()); + w.DrawImage(100, 100, CtrlsImg::SizeGrip()); + w.DrawImage(130, 100, TestImg::test()); + } + + MyApp() { + AddFrame(status); + Sizeable(); + } +}; + +GUI_APP_MAIN +{ + MyApp app; + app.Run(); +} + diff --git a/uppdev/PaintSizeGrip/test.iml b/uppdev/PaintSizeGrip/test.iml new file mode 100644 index 000000000..38f6d697a --- /dev/null +++ b/uppdev/PaintSizeGrip/test.iml @@ -0,0 +1,8 @@ +PREMULTIPLIED +IMAGE_ID(test) + +IMAGE_BEGIN_DATA +IMAGE_DATA(120,156,149,206,187,9,0,64,8,68,65,11,176,104,75,179,51,239,18,65,196,207,186,96,228,4,143,152,152,174,179,63) +IMAGE_DATA(85,53,212,138,8,228,221,34,62,219,201,103,59,245,87,182,235,233,108,229,55,27,253,102,99,63,98,183,223,212,116,185) +IMAGE_DATA(7,159,235,23,208,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) +IMAGE_END_DATA(96, 1)