Rev 7750 | Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7750 | Rev 7783 | ||
---|---|---|---|
Line 80... | Line 80... | ||
80 | DefineAndDrawWindow(215,120,500,350,0x73,system.color.work,WINDOW_TITLE,0); |
80 | DefineAndDrawWindow(215,120,500,350,0x73,system.color.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.width-9, TOPH, system.color.work); //top bg |
85 | DrawBar(0, 0, Form.cwidth, TOPH, system.color.work); //top bg |
86 | DrawBar(0, TOPH, Form.width-9, 1, system.color.work_graph); |
86 | DrawBar(0, TOPH, Form.cwidth, 1, system.color.work_graph); |
87 | edit1.width=Form.width-edit1.left-edit1.left-9 - 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, system.color.work_graph); |
91 | DrawTranslation(); |
91 | DrawTranslation(); |
92 | DrawLangButtons(); |
92 | DrawLangButtons(); |
Line 96... | Line 96... | ||
96 | 96 | ||
97 | 97 | ||
98 | void DrawLangButtons() |
98 | void DrawLangButtons() |
99 | { |
99 | { |
100 | dword direction; |
100 | dword direction; |
101 | DrawBar(Form.width-120, edit1.top+3, 100, 25, system.color.work); |
101 | DrawBar(Form.cwidth-111, edit1.top+3, 100, 25, system.color.work); |
102 | DefineButton(Form.width-88, 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, system.color.work_button); |
103 | WriteText(Form.width-82, edit1.top-1+3, 10000001b, system.color.work_button_text, "\26"); |
103 | WriteText(Form.cwidth-73, edit1.top-1+3, 10000001b, system.color.work_button_text, "\26"); |
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; |
Line 105... | Line 105... | ||
105 | WriteText(Form.width-120, edit1.top+3, 0x90, system.color.work_text, direction); |
105 | WriteText(Form.cwidth-111, edit1.top+3, 0x90, system.color.work_text, direction); |
106 | } |
106 | } |
107 | 107 | ||
Line 154... | Line 154... | ||
154 | { |
154 | { |
155 | int y_pos=TOPH+1; |
155 | int y_pos=TOPH+1; |
156 | char draw_buf[4096]; |
156 | char draw_buf[4096]; |
157 | strlcpy(#draw_buf, #translate_result, sizeof(draw_buf)-1); |
157 | strlcpy(#draw_buf, #translate_result, sizeof(draw_buf)-1); |
Line 158... | Line 158... | ||
158 | 158 | ||
159 | DrawBar(0, y_pos, Form.width-9, Form.cheight - y_pos, 0xFFFFFF); |
159 | DrawBar(0, y_pos, Form.cwidth, Form.cheight - y_pos, 0xFFFFFF); |
160 | strttl(#draw_buf); |
160 | strttl(#draw_buf); |
Line 161... | Line 161... | ||
161 | WriteTextB(10+1, y_pos+8, 10000001b, 0x800080, #search_word); |
161 | WriteTextB(10+1, y_pos+8, 10000001b, 0x800080, #search_word); |
162 | 162 |