Subversion Repositories Kolibri OS

Rev

Rev 3449 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3449 Rev 3458
Line 3... Line 3...
3
#define ITEM_HEIGHT 18
3
#define ITEM_HEIGHT 18
4
#define ITEM_WIDTH  138
4
#define ITEM_WIDTH  138
Line 5... Line 5...
5
 
5
 
6
char *ITEMS_LIST[]={
6
char *ITEMS_LIST[]={
7
"View in Tinypad   F3",52,
7
"View in Tinypad   F3",52,
8
"WIN               F5",REFRESH,
8
"WIN               F5",54,
9
"DOS           Ctrl+D",04,
9
"DOS           Ctrl+D",04,
10
"KOI           Ctrl+K",11,
10
"KOI           Ctrl+K",11,
11
"UTF           Ctrl+U",21,
11
"UTF           Ctrl+U",21,
12
"Line breaks ON"      ,01,
12
"Line breaks ON"      ,01,
Line 38... Line 38...
38
				id1=mm.y/ITEM_HEIGHT;
38
				id1=mm.y/ITEM_HEIGHT;
39
				if (id1<0) || (id1+1>items_num) || (mm.x<0) || (mm.x>ITEM_WIDTH) break;
39
				if (id1<0) || (id1+1>items_num) || (mm.x<0) || (mm.x>ITEM_WIDTH) break;
40
				if (mm.lkm) || (mm.pkm)
40
				if (mm.lkm) || (mm.pkm)
41
				{
41
				{
42
					ActivateWindow(GetProcessSlot(Form.ID));
42
					ActivateWindow(GetProcessSlot(Form.ID));
43
					SendWindowMessage(evKey, ITEMS_LIST[items_cur*2+1]);
43
					SendWindowMessage(evButton, ITEMS_LIST[items_cur*2+1]);
-
 
44
					SwitchToAnotherThread();
44
					ExitProcess();
45
					ExitProcess();
45
				}
46
				}
46
				if (items_cur<>id1)
47
				if (items_cur<>id1)
47
				{
48
				{
48
					items_cur=id1;
49
					items_cur=id1;