Subversion Repositories Kolibri OS

Rev

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

Rev 7783 Rev 7806
Line 74... Line 74...
74
			edit_box_key stdcall(#edit1);	
74
			edit_box_key stdcall(#edit1);	
75
			Translate();
75
			Translate();
76
			break;
76
			break;
Line 77... Line 77...
77
			
77
			
78
         case evReDraw:
78
         case evReDraw:
79
			system.color.get();
79
			sc.get();
80
			DefineAndDrawWindow(215,120,500,350,0x73,system.color.work,WINDOW_TITLE,0);
80
			DefineAndDrawWindow(215,120,500,350,0x73,sc.work,WINDOW_TITLE,0);
81
			GetProcessInfo(#Form, SelfInfo);
81
			GetProcessInfo(#Form, SelfInfo);
82
			if (Form.status_window>2) break;
82
			if (Form.status_window>2) break;
83
			if (Form.height<140) { MoveSize(OLD,OLD,OLD,140); break; }
83
			if (Form.height<140) { MoveSize(OLD,OLD,OLD,140); break; }
84
			if (Form.width<400) { MoveSize(OLD,OLD,400,OLD); break; }
84
			if (Form.width<400) { MoveSize(OLD,OLD,400,OLD); break; }
85
			DrawBar(0, 0, Form.cwidth, TOPH, system.color.work); //top bg
85
			DrawBar(0, 0, Form.cwidth, TOPH, sc.work); //top bg
86
			DrawBar(0, TOPH, Form.cwidth, 1, system.color.work_graph);
86
			DrawBar(0, TOPH, Form.cwidth, 1, sc.work_graph);
87
			edit1.width=Form.cwidth-edit1.left-edit1.left - 116;
87
			edit1.width=Form.cwidth-edit1.left-edit1.left - 116;
88
			edit_box_draw stdcall(#edit1);
88
			edit_box_draw stdcall(#edit1);
89
			DrawWideRectangle(edit1.left-2, edit1.top-2, edit1.width+3, 25, 2, 0xffffff);
89
			DrawWideRectangle(edit1.left-2, edit1.top-2, edit1.width+3, 25, 2, 0xffffff);
90
			DrawRectangle(edit1.left-3, edit1.top-3, edit1.width+4, 26, system.color.work_graph);
90
			DrawRectangle(edit1.left-3, edit1.top-3, edit1.width+4, 26, sc.work_graph);
91
			DrawTranslation();
91
			DrawTranslation();
92
			DrawLangButtons();
92
			DrawLangButtons();
93
      }
93
      }
94
   }
94
   }
Line 95... Line 95...
95
}
95
}
96
 
96
 
97
 
97
 
98
void DrawLangButtons()
98
void DrawLangButtons()
99
{
99
{
100
	dword direction;
100
	dword direction;
101
	DrawBar(Form.cwidth-111, edit1.top+3, 100, 25, system.color.work);
101
	DrawBar(Form.cwidth-111, edit1.top+3, 100, 25, sc.work);
102
	DefineButton(Form.cwidth-79, edit1.top-4+3, 20, 20, BUTTON_CHANGE_LANGUAGE, system.color.work_button);
102
	DefineButton(Form.cwidth-79, edit1.top-4+3, 20, 20, BUTTON_CHANGE_LANGUAGE, sc.button);
103
	WriteText(Form.cwidth-73, edit1.top-1+3, 10000001b, system.color.work_button_text, "\26");
103
	WriteText(Form.cwidth-73, edit1.top-1+3, 10000001b, sc.button_text, "\26");
Line 104... Line 104...
104
	if (active_dict == ENG_RUS) direction = TEXT_VOC_R_E; else direction = TEXT_VOC_E_R;
104
	if (active_dict == ENG_RUS) direction = TEXT_VOC_R_E; else direction = TEXT_VOC_E_R;
105
	WriteText(Form.cwidth-111, edit1.top+3, 0x90, system.color.work_text, direction);
105
	WriteText(Form.cwidth-111, edit1.top+3, 0x90, sc.work_text, direction);
106
}
106
}