2021-12-03 01:18:11 +01:00
|
|
|
#define MEMSIZE 4096*40
|
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
|
|
|
}
|
|
|
|
}
|