Rev 3067 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3067 | Rev 3225 | ||
---|---|---|---|
Line 118... | Line 118... | ||
118 | DrawBar(0, 0, Form.width-9, 69, sc.work); |
118 | DrawBar(0, 0, Form.width-9, 69, sc.work); |
119 | edit1.focus_border_color=sc.work_graph; |
119 | edit1.focus_border_color=sc.work_graph; |
120 | edit1.width=Form.width-edit1.left-edit1.left-9; |
120 | edit1.width=Form.width-edit1.left-edit1.left-9; |
121 | edit_box_draw stdcall(#edit1); //ðèñóåì ñòðîêó àäðåñà |
121 | edit_box_draw stdcall(#edit1); //ðèñóåì ñòðîêó àäðåñà |
122 | DefineButton(edit1.left+edit1.width-80,35, 80,20, 10, sc.work_button); |
122 | DefineButton(edit1.left+edit1.width-80,35, 80,20, 10, sc.work_button); |
123 | WriteText(edit1.left+edit1.width-80+14,35+7,0x80,sc.work_button_text,#translate_caption, 0); |
123 | WriteText(edit1.left+edit1.width-80+14,35+7,0x80,sc.work_button_text,#translate_caption); |
124 | DrawBar(0, 69, Form.width-9, 1, sc.work_graph); |
124 | DrawBar(0, 69, Form.width-9, 1, sc.work_graph); |
Line 125... | Line 125... | ||
125 | 125 | ||
126 | WriteText(edit1.left,35+7,0x80,sc.work_text,#direction, 0); |
126 | WriteText(edit1.left,35+7,0x80,sc.work_text,#direction); |
127 | DefineButton(edit1.left+130,35, 120,20, 11, sc.work_button); |
127 | DefineButton(edit1.left+130,35, 120,20, 11, sc.work_button); |
128 | WriteText(edit1.left+130+112,35+7,0x80,sc.work_button_text,"\x19", 0); |
128 | WriteText(edit1.left+130+112,35+7,0x80,sc.work_button_text,"\x19"); |
129 | DrawBar(edit1.left+130+1,36, 107,19, 0xFFFFFF); |
129 | DrawBar(edit1.left+130+1,36, 107,19, 0xFFFFFF); |
Line 130... | Line 130... | ||
130 | WriteText(edit1.left+130+8,35+7,0x80,0x000000,#cur_dict, 0); |
130 | WriteText(edit1.left+130+8,35+7,0x80,0x000000,#cur_dict); |
131 | 131 | ||
Line 167... | Line 167... | ||
167 | files_buf = mem_Alloc(fcount+1*304+32); |
167 | files_buf = mem_Alloc(fcount+1*304+32); |
Line 168... | Line 168... | ||
168 | 168 | ||
Line 169... | Line 169... | ||
169 | ReadDir(fcount, files_buf, #program_path); |
169 | ReadDir(fcount, files_buf, #program_path); |
170 | 170 | ||
Line 171... | Line 171... | ||
171 | fcount-=2; |
171 | fcount-=2; |
172 | mem_Move(files_buf,files_buf+608,fcount*304); |
172 | memmov(files_buf,files_buf+608,fcount*304); |
173 | 173 | ||
174 | 174 | ||
175 | DefineButton(0,0, Form.width,Form.height, 12+BT_HIDE+BT_NOFRAME, sc.work_button); |
175 | DefineButton(0,0, Form.width,Form.height, 12+BT_HIDE+BT_NOFRAME, sc.work_button); |
176 | for (j=0; j |
176 | for (j=0; j |
177 | { |
177 | { |
Line 178... | Line 178... | ||
178 | DefineButton(edit1.left+130,j+1*20+35, 107,20, 20+j, sc.work_button); |
178 | DefineButton(edit1.left+130,j+1*20+35, 107,20, 20+j, sc.work_button); |
179 | WriteText(edit1.left+130+8,j+1*20+35+7,0x80,sc.work_button_text, j*304+files_buf+72, 0); |
179 | WriteText(edit1.left+130+8,j+1*20+35+7,0x80,sc.work_button_text, j*304+files_buf+72); |
Line 248... | Line 248... | ||
248 | char draw_buf[4096]; |
248 | char draw_buf[4096]; |
249 | strcpy(#draw_buf, #translate_result); |
249 | strcpy(#draw_buf, #translate_result); |
Line 250... | Line 250... | ||
250 | 250 | ||
251 | DrawBar(0, y_pos, Form.width-9, Form.height - y_pos-skin_height-4, 0xFFFFFF); |
251 | DrawBar(0, y_pos, Form.width-9, Form.height - y_pos-skin_height-4, 0xFFFFFF); |
252 | strttl(#draw_buf); |
252 | strttl(#draw_buf); |
253 | WriteText(10+1, y_pos+8, 0x90, 0x800080, #search_word, 0); |
253 | WriteText(10+1, y_pos+8, 0x90, 0x800080, #search_word); |
254 | WriteText(10 , y_pos+8, 0x90, 0x800080, #search_word, 0); |
254 | WriteText(10 , y_pos+8, 0x90, 0x800080, #search_word); |
255 | while (draw_buf) |
255 | while (draw_buf) |
256 | { |
256 | { |
257 | text_break= Form.width/6-6; |
257 | text_break= Form.width/6-6; |
258 | if (text_break>strlen(#draw_buf)) |
258 | if (text_break>strlen(#draw_buf)) |
259 | { |
259 | { |
260 | WriteText(10, y_pos+21, 0x80, 0, #draw_buf, 0); |
260 | WriteText(10, y_pos+21, 0x80, 0, #draw_buf); |
261 | return; |
261 | return; |
262 | } |
262 | } |
263 | while (draw_buf[text_break]<>' ') && (text_break>0) text_break--; |
263 | while (draw_buf[text_break]<>' ') && (text_break>0) text_break--; |
264 | strcpy(#tt, #draw_buf+text_break+1); |
264 | strcpy(#tt, #draw_buf+text_break+1); |
265 | draw_buf[text_break]=0x0; |
265 | draw_buf[text_break]=0x0; |
266 | WriteText(10, y_pos+21, 0x80, 0, #draw_buf, 0); |
266 | WriteText(10, y_pos+21, 0x80, 0, #draw_buf); |
267 | strcpy(#draw_buf, #tt); |
267 | strcpy(#draw_buf, #tt); |
268 | y_pos+=12; |
268 | y_pos+=12; |
269 | if (y_pos+24+skin_height+12>Form.height) return; //÷òîá íå çàëåçàëî íà íèæíèé îáîäîê |
269 | if (y_pos+24+skin_height+12>Form.height) return; //÷òîá íå çàëåçàëî íà íèæíèé îáîäîê |
270 | } |
270 | } |