2013-03-11 19:16:24 +01:00
|
|
|
#define MEMSIZE 0x3E80
|
2013-02-04 14:15:13 +01:00
|
|
|
#include "..\lib\kolibri.h"
|
2013-03-11 19:16:24 +01:00
|
|
|
#include "..\lib\strings.h"
|
2013-02-04 14:15:13 +01:00
|
|
|
#include "..\lib\file_system.h"
|
|
|
|
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
int id, key;
|
|
|
|
|
|
|
|
loop()
|
|
|
|
{
|
|
|
|
switch(WaitEvent())
|
|
|
|
{
|
|
|
|
case evButton:
|
|
|
|
id=GetButtonID();
|
|
|
|
if (id==1) ExitProcess();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case evKey:
|
|
|
|
key = GetKey();
|
|
|
|
IF (key==013){ //Enter
|
|
|
|
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;
|
2013-02-04 14:15:13 +01:00
|
|
|
DefineAndDrawWindow(215,100,250,200,0x34,0xFFFFFF,"Window header");
|
2013-03-11 19:16:24 +01:00
|
|
|
GetProcessInfo(#Form, SelfInfo);
|
2013-02-04 14:15:13 +01:00
|
|
|
WriteText(50,80,0x80,0,"Press Enter");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stop:
|