ultimatepp/uppdev/PaintSizeGrip/main.cpp
cxl becf4df6d6 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@3524 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-06-13 09:36:27 +00:00

31 lines
550 B
C++

#include <CtrlLib/CtrlLib.h>
#define IMAGECLASS TestImg
#define IMAGEFILE <PaintSizeGrip/test.iml>
#include <Draw/iml_header.h>
#define IMAGECLASS TestImg
#define IMAGEFILE <PaintSizeGrip/test.iml>
#include <Draw/iml_source.h>
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();
}