Subversion Repositories Kolibri OS

Rev

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

Rev 3005 Rev 3058
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",REFRESH,
9
"DOS           Ctrl+D",04,
9
"DOS           Ctrl+D",04,
10
"KOI-8         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,
13
"TrueType fonts"      ,05,
13
"TrueType fonts"      ,05,
Line 76... Line 76...
76
				}
76
				}
77
				break;
77
				break;
Line 78... Line 78...
78
				
78
				
79
		case evReDraw:
79
		case evReDraw:
80
				while (ITEMS_LIST[items_num*2]) items_num++;
80
				while (ITEMS_LIST[items_num*2]) items_num++;
81
				DefineAndDrawWindow(Form.left+m.x,Form.top+m.y+GetSkinHeight()+3,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x01,0x10FFFFFF,0);
-
 
Line 82... Line 81...
82
				DefineButton(0, 0, ITEM_WIDTH, ITEM_HEIGHT, 10+BT_HIDE+BT_NOFRAME, 0); //hack
81
				DefineAndDrawWindow(Form.left+m.x,Form.top+m.y+GetSkinHeight()+3,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x01,0x10FFFFFF,0,0x01fffFFF);
83
 
82
 
84
				DrawRegion(0,0,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x777777); //îáîäîê
83
				DrawRectangle(0,0,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x777777); //îáîäîê
85
				_ITEMS_DRAW:
84
				_ITEMS_DRAW:
86
				for (i=0; i
85
				for (i=0; i
87
				{
86
				{
88
					if (i<>items_cur) EDX=0xFFFFFF; else EDX=0x94AECE;
87
					if (i<>items_cur) EDX=0xFFFFFF; else EDX=0x94AECE;
89
					DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, ITEM_HEIGHT, EDX);
88
					DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, ITEM_HEIGHT, EDX);
90
					WriteText(8,i*ITEM_HEIGHT+6,0x80,0x000000,ITEMS_LIST[i*2],0);
89
					WriteText(8,i*ITEM_HEIGHT+6,0x80,0x000000,ITEMS_LIST[i*2],0);
91
					if (ITEMS_LIST[i*2+1]==1) && (pre_text==2) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
90
					if (ITEMS_LIST[i*2+1]==1) && (pre_text==2) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
-
 
91
					if (ITEMS_LIST[i*2+1]==5) && (use_truetype==1) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
92
					if (ITEMS_LIST[i*2+1]==5) && (use_truetype==1) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
92
				}
93
				}
93
				DrawBar(33, cur_encoding+1*ITEM_HEIGHT+8, 4, 4, 0x444444); //ïîêàçûâàåò âûáðàíóþ êîäèðîâêó