Subversion Repositories Kolibri OS

Rev

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

Rev 7801 Rev 7806
Line 208... Line 208...
208
		case evReDraw:
208
		case evReDraw:
209
			DefineAndDrawWindow(GetScreenWidth()-800/2-random(80), //40
209
			DefineAndDrawWindow(GetScreenWidth()-800/2-random(80), //40
210
				GetScreenHeight()-700/2-random(80),800,700,0x73,0,0,0);
210
				GetScreenHeight()-700/2-random(80),800,700,0x73,0,0,0);
211
			GetProcessInfo(#Form, SelfInfo);
211
			GetProcessInfo(#Form, SelfInfo);
212
			ProcessMenuClick();
212
			ProcessMenuClick();
213
			system.color.get();
213
			sc.get();
214
			if (Form.status_window>2) break;
214
			if (Form.status_window>2) break;
215
			if (Form.height<120) { MoveSize(OLD,OLD,OLD,120); break; }
215
			if (Form.height<120) { MoveSize(OLD,OLD,OLD,120); break; }
216
			if (Form.width<280) { MoveSize(OLD,OLD,280,OLD); break; }
216
			if (Form.width<280) { MoveSize(OLD,OLD,280,OLD); break; }
217
			draw_window();
217
			draw_window();
218
			break;
218
			break;
Line 305... Line 305...
305
void draw_window()
305
void draw_window()
306
{
306
{
307
	int i;
307
	int i;
308
	SetElementSizes();
308
	SetElementSizes();
Line 309... Line 309...
309
 
309
 
310
	DrawBar(0,0, Form.cwidth,PADDING, system.color.work);
310
	DrawBar(0,0, Form.cwidth,PADDING, sc.work);
311
	DrawBar(0,PADDING+TSZE+1, Form.cwidth,PADDING-1, system.color.work);
311
	DrawBar(0,PADDING+TSZE+1, Form.cwidth,PADDING-1, sc.work);
312
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, MixColors(system.color.work_dark, system.color.work, 180));
312
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, MixColors(sc.work_dark, sc.work, 180));
313
	DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, system.color.work_graph);
313
	DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, sc.work_graph);
314
	DrawBar(0, PADDING, address_box.left-2, TSZE+1, system.color.work);
314
	DrawBar(0, PADDING, address_box.left-2, TSZE+1, sc.work);
Line 315... Line 315...
315
	DrawBar(address_box.left+address_box.width+18, PADDING, Form.cwidth-address_box.left-address_box.width-18, TSZE+1, system.color.work);
315
	DrawBar(address_box.left+address_box.width+18, PADDING, Form.cwidth-address_box.left-address_box.width-18, TSZE+1, sc.work);
316
 
316
 
317
	DrawTopPanelButton(BACK_BUTTON, PADDING-1, PADDING, 30);
317
	DrawTopPanelButton(BACK_BUTTON, PADDING-1, PADDING, 30);
318
	DrawTopPanelButton(FORWARD_BUTTON, PADDING+TSZE+PADDING-2, PADDING, 31);
318
	DrawTopPanelButton(FORWARD_BUTTON, PADDING+TSZE+PADDING-2, PADDING, 31);
Line 319... Line 319...
319
	DrawTopPanelButton(SANDWICH_BUTTON, Form.cwidth-PADDING-TSZE-3, PADDING, -1);
319
	DrawTopPanelButton(SANDWICH_BUTTON, Form.cwidth-PADDING-TSZE-3, PADDING, -1);
Line 320... Line 320...
320
	for (i=0; i<=2; i++) DrawBar(Form.cwidth-PADDING-TSZE+3, i*5+PADDING+7, 15, 3, system.color.work_graph);
320
	for (i=0; i<=2; i++) DrawBar(Form.cwidth-PADDING-TSZE+3, i*5+PADDING+7, 15, 3, sc.work_graph);
321
 
321
 
Line 322... Line 322...
322
	DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, system.color.work_graph);
322
	DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.work_graph);
Line 857... Line 857...
857
	}
857
	}
858
}
858
}
Line 859... Line 859...
859
 
859
 
860
void DrawStatusBar(dword _status_text)
860
void DrawStatusBar(dword _status_text)
861
{
861
{
862
	status_text.font_color = system.color.work_text;
862
	status_text.font_color = sc.work_text;
863
	status_text.start_x = 10;
863
	status_text.start_x = 10;
864
	status_text.start_y = Form.cheight - STATUSBAR_H + 4;
864
	status_text.start_y = Form.cheight - STATUSBAR_H + 4;
865
	status_text.area_size_x = Form.cwidth - status_text.start_x -3 - 70;
865
	status_text.area_size_x = Form.cwidth - status_text.start_x -3 - 70;
866
	//DrawBar(status_text.start_x, status_text.start_y, status_text.area_size_x, 9, system.color.work);
866
	//DrawBar(status_text.start_x, status_text.start_y, status_text.area_size_x, 9, sc.work);
867
	DrawBar(0,Form.cheight - STATUSBAR_H+1, Form.cwidth,STATUSBAR_H-1, system.color.work);
867
	DrawBar(0,Form.cheight - STATUSBAR_H+1, Form.cwidth,STATUSBAR_H-1, sc.work);
868
	if (_status_text) {
868
	if (_status_text) {
869
		status_text.text_pointer = _status_text;
869
		status_text.text_pointer = _status_text;
870
		PathShow_prepare stdcall(#status_text);
870
		PathShow_prepare stdcall(#status_text);
871
		PathShow_draw stdcall(#status_text);		
871
		PathShow_draw stdcall(#status_text);		
872
	}
872
	}
873
	DefineHiddenButton(status_text.start_x+status_text.area_size_x+10, status_text.start_y-3,
873
	DefineHiddenButton(status_text.start_x+status_text.area_size_x+10, status_text.start_y-3,
874
		60, 12, CHANGE_ENCODING);
874
		60, 12, CHANGE_ENCODING);
875
	WriteTextCenter(status_text.start_x+status_text.area_size_x+10,
875
	WriteTextCenter(status_text.start_x+status_text.area_size_x+10,
876
		status_text.start_y, 60, system.color.work_text, WB1.cur_encoding*10+#charsets);
876
		status_text.start_y, 60, sc.work_text, WB1.cur_encoding*10+#charsets);
Line 877... Line 877...
877
}
877
}
878
 
878
 
879
void DrawOmnibox()
879
void DrawOmnibox()
Line 880... Line 880...
880
{
880
{
881
	int imgxoff;
881
	int imgxoff;
882
	
882
	
883
	DrawOvalBorder(address_box.left-2, address_box.top-3, address_box.width+18, 24, system.color.work_graph, 
883
	DrawOvalBorder(address_box.left-2, address_box.top-3, address_box.width+18, 24, sc.work_graph, 
884
		system.color.work_graph, system.color.work_graph, system.color.work_dark);
884
		sc.work_graph, sc.work_graph, sc.work_dark);
Line 885... Line 885...
885
	DrawBar(address_box.left-1, address_box.top-2, address_box.width+18, 1, 0xD8DCD8);
885
	DrawBar(address_box.left-1, address_box.top-2, address_box.width+18, 1, 0xD8DCD8);