2013-03-11 19:16:24 +01:00
|
|
|
#define MEMSIZE 0x3E80
|
2015-08-02 00:08:58 +02:00
|
|
|
|
|
|
|
#include "../lib/io.h"
|
|
|
|
#include "../lib/draw.h"
|
2013-02-04 14:15:13 +01:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
int id, key;
|
2015-08-02 00:08:58 +02:00
|
|
|
mem_Init();
|
|
|
|
io.set("/sys/RUN",ATR_HIDDEN);
|
2013-02-04 14:15:13 +01:00
|
|
|
loop()
|
|
|
|
{
|
|
|
|
switch(WaitEvent())
|
|
|
|
{
|
|
|
|
case evButton:
|
|
|
|
id=GetButtonID();
|
|
|
|
if (id==1) ExitProcess();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case evKey:
|
|
|
|
key = GetKey();
|
2015-07-22 20:32:54 +02:00
|
|
|
if (key==013){ //Enter
|
2013-02-04 14:15:13 +01:00
|
|
|
WriteText(50,90,0x80,0xFF00FF,"Pressed Enter");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case evReDraw:
|
|
|
|
draw_window();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void draw_window()
|
|
|
|
{
|
2013-03-11 19:16:24 +01:00
|
|
|
proc_info Form;
|
2015-08-02 00:08:58 +02:00
|
|
|
dword pos;
|
|
|
|
//float zz=0.944,ret;
|
2013-02-04 14:15:13 +01:00
|
|
|
DefineAndDrawWindow(215,100,250,200,0x34,0xFFFFFF,"Window header");
|
2015-08-02 00:08:58 +02:00
|
|
|
//draw.gradient(pos,10,10,0x0,20,20,0x0);
|
2013-03-11 19:16:24 +01:00
|
|
|
GetProcessInfo(#Form, SelfInfo);
|
2015-08-02 00:08:58 +02:00
|
|
|
draw.circle(60,60,5);
|
|
|
|
|
2014-03-30 13:57:13 +02:00
|
|
|
WriteText(10,110,0x80,0,#param);
|
2013-02-04 14:15:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop:
|