mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@3524 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9ba68a4b11
commit
2e2e8bec68
4 changed files with 53 additions and 0 deletions
10
uppdev/PaintSizeGrip/PaintSizeGrip.upp
Normal file
10
uppdev/PaintSizeGrip/PaintSizeGrip.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp,
|
||||
test.iml;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI SSE2";
|
||||
|
||||
4
uppdev/PaintSizeGrip/init
Normal file
4
uppdev/PaintSizeGrip/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _PaintSizeGrip_icpp_init_stub
|
||||
#define _PaintSizeGrip_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#endif
|
||||
31
uppdev/PaintSizeGrip/main.cpp
Normal file
31
uppdev/PaintSizeGrip/main.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#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();
|
||||
}
|
||||
|
||||
8
uppdev/PaintSizeGrip/test.iml
Normal file
8
uppdev/PaintSizeGrip/test.iml
Normal file
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue