Subversion Repositories Kolibri OS

Rev

Rev 9363 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9363 Rev 9428
1
#define MEMSIZE 4096*40
1
#define MEMSIZE 1024*50
2
 
2
 
3
#include "../lib/gui.h"
3
#include "../lib/gui.h"
4
#include "../lib/fs.h"
4
#include "../lib/fs.h"
5
 
5
 
6
void main()
6
void main()
7
{
7
{
8
	proc_info Form;
8
	proc_info Form;
9
 
9
 
10
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE);
10
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE);
11
	loop() switch(WaitEvent())
11
	loop() switch(WaitEvent())
12
	{
12
	{
13
		case evMouse:			
13
		case evMouse:			
14
			mouse.get();
14
			mouse.get();
15
			break;
15
			break;
16
 
16
 
17
		case evKey:
17
		case evKey:
18
			@GetKeyScancode();
18
			@GetKeyScancode();
19
			if (AL == SCAN_CODE_ESC) @ExitProcess();
19
			if (AL == SCAN_CODE_ESC) @ExitProcess();
20
			break;
20
			break;
21
 
21
 
22
		case evReDraw:
22
		case evReDraw:
23
			sc.get();
23
			sc.get();
24
			DefineAndDrawWindow(100, 100, 300, 250, 0x34, sc.work, "Template app", 0);
24
			DefineAndDrawWindow(100, 100, 300, 250, 0x34, sc.work, "Template app", 0);
25
			GetProcessInfo(#Form, SelfInfo);
25
			GetProcessInfo(#Form, SelfInfo);
26
	}
26
	}
27
}
27
}