2021-12-16 20:08:12 +01:00
|
|
|
#define MEMSIZE 1024*50
|
2021-06-19 22:42:09 +02:00
|
|
|
|
|
|
|
#include "../lib/gui.h"
|
|
|
|
#include "../lib/fs.h"
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2021-12-03 01:18:11 +01:00
|
|
|
proc_info Form;
|
2021-06-19 22:42:09 +02:00
|
|
|
|
2021-12-03 01:18:11 +01:00
|
|
|
@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE);
|
|
|
|
loop() switch(WaitEvent())
|
2021-06-19 22:42:09 +02:00
|
|
|
{
|
2021-12-03 01:18:11 +01:00
|
|
|
case evMouse:
|
|
|
|
mouse.get();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case evKey:
|
|
|
|
@GetKeyScancode();
|
|
|
|
if (AL == SCAN_CODE_ESC) @ExitProcess();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case evReDraw:
|
|
|
|
sc.get();
|
|
|
|
DefineAndDrawWindow(100, 100, 300, 250, 0x34, sc.work, "Template app", 0);
|
|
|
|
GetProcessInfo(#Form, SelfInfo);
|
2021-06-19 22:42:09 +02:00
|
|
|
}
|
|
|
|
}
|