Subversion Repositories Kolibri OS

Rev

Rev 9601 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9601 Rev 9602
Line 234... Line 234...
234
					LoginBoxLoop();
234
					LoginBoxLoop();
235
				}
235
				}
236
				if (id==CHANGE_CHARSET)
236
				if (id==CHANGE_CHARSET)
237
				{
237
				{
238
					DefineButton(0,0,Form.cwidth,Form.cheight, CLOSE_CHANGE_CHARSET+BT_HIDE+BT_NOFRAME);
238
					DefineButton(0,0,Form.cwidth,Form.cheight, CLOSE_CHANGE_CHARSET+BT_HIDE+BT_NOFRAME);
239
					DrawRectangle(Form.cwidth-100, Form.cheight-status_bar_h- 70, 70, 82, sc.work_graph);
239
					DrawRectangle(Form.cwidth-100, Form.cheight-status_bar_h- 70, 70, 82, sc.line);
240
					DrawRectangle3D(Form.cwidth-99, Form.cheight-status_bar_h- 69, 68, 80, 0xFFFfff, sc.work);
240
					DrawRectangle3D(Form.cwidth-99, Form.cheight-status_bar_h- 69, 68, 80, 0xFFFfff, sc.work);
241
					for (id=0; id<5; id++)
241
					for (id=0; id<5; id++)
242
					{
242
					{
243
						if (cur_charset==id+1) { line_col=sc.button; text_col=sc.button_text; }
243
						if (cur_charset==id+1) { line_col=sc.button; text_col=sc.button_text; }
244
						else { line_col=sc.work; text_col=sc.work_text; }
244
						else { line_col=sc.work; text_col=sc.work_text; }
Line 262... Line 262...
262
				break;
262
				break;
263
			case evReDraw: _MB_DRAW:
263
			case evReDraw: _MB_DRAW:
264
				if !(DefineWindow(MAILBOX_HEADER)) break;
264
				if !(DefineWindow(MAILBOX_HEADER)) break;
265
				scroll1.bckg_col = scroll_wv.bckg_col = 0xBBBbbb;
265
				scroll1.bckg_col = scroll_wv.bckg_col = 0xBBBbbb;
266
				scroll1.frnt_col = scroll_wv.frnt_col = sc.work;
266
				scroll1.frnt_col = scroll_wv.frnt_col = sc.work;
267
				scroll1.line_col = scroll_wv.line_col = sc.work_graph;
267
				scroll1.line_col = scroll_wv.line_col = sc.line;
268
				DrawToolbar();
268
				DrawToolbar();
269
				DrawMailBox();
269
				DrawMailBox();
Line 270... Line 270...
270
 
270
 
271
				break;
271
				break;
Line 295... Line 295...
295
	DrawBar(0,0, Form.cwidth,toolbar_w-3, sc.work);
295
	DrawBar(0,0, Form.cwidth,toolbar_w-3, sc.work);
296
	DrawCaptButton(10                    , BUT_Y, BUT_W, BUT_H, GET_MAIL,    sc.button, sc.button_text,"Get mail");
296
	DrawCaptButton(10                    , BUT_Y, BUT_W, BUT_H, GET_MAIL,    sc.button, sc.button_text,"Get mail");
297
	DrawCaptButton(BUT_W+ 20, BUT_Y, BUT_W+10, BUT_H, SAVE_LETTER, sc.button, sc.button_text,"Save letter");
297
	DrawCaptButton(BUT_W+ 20, BUT_Y, BUT_W+10, BUT_H, SAVE_LETTER, sc.button, sc.button_text,"Save letter");
298
	DrawCaptButton(Form.cwidth-BUT_W - 10, BUT_Y, BUT_W, BUT_H, EXIT_MAIL,   sc.button, sc.button_text,"< Exit");
298
	DrawCaptButton(Form.cwidth-BUT_W - 10, BUT_Y, BUT_W, BUT_H, EXIT_MAIL,   sc.button, sc.button_text,"< Exit");
Line 299... Line 299...
299
 
299
 
300
	DrawBar(0, mail_list.y-3, mail_list.w,1, sc.work_graph);
300
	DrawBar(0, mail_list.y-3, mail_list.w,1, sc.line);
301
	DrawBar(0, mail_list.y-2, mail_list.w,1, 0xdfdfdf);
301
	DrawBar(0, mail_list.y-2, mail_list.w,1, 0xdfdfdf);
302
	DrawBar(0, mail_list.y-1, mail_list.w,1, 0xf0f0f0);
302
	DrawBar(0, mail_list.y-1, mail_list.w,1, 0xf0f0f0);
Line 303... Line 303...
303
}
303
}
Line 327... Line 327...
327
	DrawScroller1();
327
	DrawScroller1();
328
}
328
}
Line 329... Line 329...
329
 
329
 
330
void DrawLetterInfo() {
330
void DrawLetterInfo() {
331
	int lt_y = mail_list.y+mail_list.h;
331
	int lt_y = mail_list.y+mail_list.h;
332
	DrawBar(0, lt_y, mail_list.w, 1, sc.work_graph);
332
	DrawBar(0, lt_y, mail_list.w, 1, sc.line);
333
	DrawBar(0, lt_y+1, Form.cwidth, 1, LBUMP);
333
	DrawBar(0, lt_y+1, Form.cwidth, 1, LBUMP);
334
	DrawBar(0, lt_y+2, Form.cwidth, LIST_INFO_H-4, sc.work);
334
	DrawBar(0, lt_y+2, Form.cwidth, LIST_INFO_H-4, sc.work);
335
	WriteText(mail_list.w-30/2, lt_y, 0x80, 0x888888, "= = =");
335
	WriteText(mail_list.w-30/2, lt_y, 0x80, 0x888888, "= = =");
336
	WriteText(mail_list.w-30/2, lt_y+1, 0x80, 0xEeeeee, "= = =");
336
	WriteText(mail_list.w-30/2, lt_y+1, 0x80, 0xEeeeee, "= = =");
337
	DrawBar(0, lt_y+LIST_INFO_H-2, Form.cwidth, 1, sc.work_graph); //bottom
337
	DrawBar(0, lt_y+LIST_INFO_H-2, Form.cwidth, 1, sc.line); //bottom
338
	DrawBar(0, lt_y+LIST_INFO_H-1, Form.cwidth, 1, 0xdfdfdf);
338
	DrawBar(0, lt_y+LIST_INFO_H-1, Form.cwidth, 1, 0xdfdfdf);
339
	DrawBar(0, lt_y+LIST_INFO_H  , Form.cwidth, 1, 0xf0f0f0);
339
	DrawBar(0, lt_y+LIST_INFO_H  , Form.cwidth, 1, 0xf0f0f0);
340
	WriteTextB(10, lt_y+8 , 0x80, sc.work_text, "From:");
340
	WriteTextB(10, lt_y+8 , 0x80, sc.work_text, "From:");
341
	WriteText (45, lt_y+8 , 0x80, sc.work_text, #from);
341
	WriteText (45, lt_y+8 , 0x80, sc.work_text, #from);