Subversion Repositories Kolibri OS

Rev

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

Rev 5436 Rev 5674
Line 82... Line 82...
82
				edit_box_key stdcall(#SMTP_server_port_box);
82
				edit_box_key stdcall(#SMTP_server_port_box);
83
				break;
83
				break;
Line 84... Line 84...
84
 
84
 
85
			case evReDraw: _OPT_WIN:
85
			case evReDraw: _OPT_WIN:
86
				if !(DefineWindow(OPTIONS_HEADER)) break;
86
				if !(DefineWindow(OPTIONS_HEADER)) break;
87
				DrawBar(0,0, Form.cwidth, Form.cheight, sc.work);
87
				DrawBar(0,0, Form.cwidth, Form.cheight, system.color.work);
88
				OptionsWindow();
88
				OptionsWindow();
89
				break;
89
				break;
90
		}
90
		}
91
	}
91
	}
Line 92... Line 92...
92
}
92
}
93
 
93
 
94
void OptionsWindow()
94
void OptionsWindow()
95
{
95
{
96
	#define ELEM_X 25
96
	#define ELEM_X 25
97
	int i;
97
	int i;
98
	DrawBar(0, Form.cheight - 40, Form.cwidth, 1, sc.work_graph);
98
	DrawBar(0, Form.cheight - 40, Form.cwidth, 1, system.color.work_graph);
Line 99... Line 99...
99
	DrawBar(0, Form.cheight - 40+1, Form.cwidth, 1, LBUMP);
99
	DrawBar(0, Form.cheight - 40+1, Form.cwidth, 1, LBUMP);
100
	DrawCaptButton(Form.cwidth-79, Form.cheight-32, 70, 25, 19, sc.work_button, sc.work_button_text,"Apply");
100
	DrawCaptButton(Form.cwidth-79, Form.cheight-32, 70, 25, 19, system.color.work_button, system.color.work_button_text,"Apply");
101
 
101
 
102
	WriteTextB(ELEM_X, 20, 0x90, sc.work_text, "Network settings");
102
	WriteTextB(ELEM_X, 20, 0x90, system.color.work_text, "Network settings");
103
	CheckBox(ELEM_X, 45, 12, 12, 17, "Use custom settings", sc.work_graph, sc.work_text, checked[0]);
103
	CheckBox(ELEM_X, 45, 12, 12, 17, "Use custom settings", system.color.work_graph, system.color.work_text, checked[0]);
104
	CheckBox(ELEM_X, 65, 12, 12, 18, "Manual configuration", sc.work_graph, sc.work_text, checked[1]);
104
	CheckBox(ELEM_X, 65, 12, 12, 18, "Manual configuration", system.color.work_graph, system.color.work_text, checked[1]);
105
	for (i=0; i<4; i++)
105
	for (i=0; i<4; i++)
106
	{
106
	{
107
		WriteText(ELEM_X+40, i*25+4+POP_server_box.top, 0x80, sc.work_text, text1[i]);
107
		WriteText(ELEM_X+40, i*25+4+POP_server_box.top, 0x80, system.color.work_text, text1[i]);
108
		DrawRectangle(POP_server_box.left-1, i*25+POP_server_box.top-1, POP_server_box.width+2, 16, sc.work_graph);
108
		DrawRectangle(POP_server_box.left-1, i*25+POP_server_box.top-1, POP_server_box.width+2, 16, system.color.work_graph);
109
	}
109
	}
110
	edit_box_draw stdcall(#POP_server_box);
110
	edit_box_draw stdcall(#POP_server_box);
Line 111... Line 111...
111
	edit_box_draw stdcall(#POP_server_port_box);
111
	edit_box_draw stdcall(#POP_server_port_box);
112
	edit_box_draw stdcall(#SMTP_server_box);
112
	edit_box_draw stdcall(#SMTP_server_box);
113
	edit_box_draw stdcall(#SMTP_server_port_box);
113
	edit_box_draw stdcall(#SMTP_server_port_box);
114
 
114