Subversion Repositories Kolibri OS

Rev

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

Rev 7774 Rev 7806
Line 139... Line 139...
139
					edit_box_key stdcall(#edit_disk_size);
139
					edit_box_key stdcall(#edit_disk_size);
140
					break;
140
					break;
141
			}
141
			}
142
			break;
142
			break;
143
         case evReDraw:			
143
         case evReDraw:			
144
			system.color.get();
144
			sc.get();
145
			DefineAndDrawWindow(170,150,405,290,0x74,system.color.work,"Virtual Disk Manager 0.69",0);
145
			DefineAndDrawWindow(170,150,405,290,0x74,sc.work,"Virtual Disk Manager 0.69",0);
146
			GetProcessInfo(#Form, SelfInfo);
146
			GetProcessInfo(#Form, SelfInfo);
147
			if (Form.status_window>2) break;
147
			if (Form.status_window>2) break;
Line 148... Line 148...
148
 
148
 
149
			DrawBar(0,0,  Form.cwidth,TOPPANELH, system.color.work);
149
			DrawBar(0,0,  Form.cwidth,TOPPANELH, sc.work);
150
			DrawBar(0,TOPPANELH, Form.cwidth,1,  system.color.work_graph);
150
			DrawBar(0,TOPPANELH, Form.cwidth,1,  sc.work_graph);
151
			WriteText(6, 9, 0x90, system.color.work_text, SIZE_TEXT);
151
			WriteText(6, 9, 0x90, sc.work_text, SIZE_TEXT);
152
			DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,system.color.work_graph);
152
			DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,sc.work_graph);
153
			edit_box_draw stdcall (#edit_disk_size);
153
			edit_box_draw stdcall (#edit_disk_size);
154
			x = 6 + DrawStandartCaptButton(6, 36, 10, T_ADD_DISK);
154
			x = 6 + DrawStandartCaptButton(6, 36, 10, T_ADD_DISK);
155
			DrawStandartCaptButton(x, 36, 11, T_DELETE_DISK);
155
			DrawStandartCaptButton(x, 36, 11, T_DELETE_DISK);
156
			_PutImage(6+6, 42,  14,14, #icons_btn);
156
			_PutImage(6+6, 42,  14,14, #icons_btn);
Line 228... Line 228...
228
	dword selection_color;
228
	dword selection_color;
229
	char free_ram_text[60];
229
	char free_ram_text[60];
230
	byte i;
230
	byte i;
Line 231... Line 231...
231
 
231
 
232
	DrawBar(0,TOPPANELH+1, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF);
232
	DrawBar(0,TOPPANELH+1, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF);
233
	DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, system.color.work_graph);
233
	DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.work_graph);
234
	DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, system.color.work);
234
	DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work);
235
	sprintf(#free_ram_text, FREE_RAM_TEXT, GetFreeRAM()/1024);
235
	sprintf(#free_ram_text, FREE_RAM_TEXT, GetFreeRAM()/1024);
236
	WriteText(10, Form.cheight-20, 0x90, system.color.work_text, #free_ram_text);
236
	WriteText(10, Form.cheight-20, 0x90, sc.work_text, #free_ram_text);
237
	if (disk_num==0)
237
	if (disk_num==0)
238
	{
238
	{
239
		WriteText(17,TOPPANELH+15,    0x90, 0x777777, INTRO_TEXT_1);
239
		WriteText(17,TOPPANELH+15,    0x90, 0x777777, INTRO_TEXT_1);
240
		WriteText(17,TOPPANELH+15+15, 0x90, 0x777777, INTRO_TEXT_2);
240
		WriteText(17,TOPPANELH+15+15, 0x90, 0x777777, INTRO_TEXT_2);