Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7782 → Rev 7783

/programs/cmm/dicty/dicty.c
82,9 → 82,9
if (Form.status_window>2) break;
if (Form.height<140) { MoveSize(OLD,OLD,OLD,140); break; }
if (Form.width<400) { MoveSize(OLD,OLD,400,OLD); break; }
DrawBar(0, 0, Form.width-9, TOPH, system.color.work); //top bg
DrawBar(0, TOPH, Form.width-9, 1, system.color.work_graph);
edit1.width=Form.width-edit1.left-edit1.left-9 - 116;
DrawBar(0, 0, Form.cwidth, TOPH, system.color.work); //top bg
DrawBar(0, TOPH, Form.cwidth, 1, system.color.work_graph);
edit1.width=Form.cwidth-edit1.left-edit1.left - 116;
edit_box_draw stdcall(#edit1);
DrawWideRectangle(edit1.left-2, edit1.top-2, edit1.width+3, 25, 2, 0xffffff);
DrawRectangle(edit1.left-3, edit1.top-3, edit1.width+4, 26, system.color.work_graph);
98,11 → 98,11
void DrawLangButtons()
{
dword direction;
DrawBar(Form.width-120, edit1.top+3, 100, 25, system.color.work);
DefineButton(Form.width-88, edit1.top-4+3, 20, 20, BUTTON_CHANGE_LANGUAGE, system.color.work_button);
WriteText(Form.width-82, edit1.top-1+3, 10000001b, system.color.work_button_text, "\26");
DrawBar(Form.cwidth-111, edit1.top+3, 100, 25, system.color.work);
DefineButton(Form.cwidth-79, edit1.top-4+3, 20, 20, BUTTON_CHANGE_LANGUAGE, system.color.work_button);
WriteText(Form.cwidth-73, edit1.top-1+3, 10000001b, system.color.work_button_text, "\26");
if (active_dict == ENG_RUS) direction = TEXT_VOC_R_E; else direction = TEXT_VOC_E_R;
WriteText(Form.width-120, edit1.top+3, 0x90, system.color.work_text, direction);
WriteText(Form.cwidth-111, edit1.top+3, 0x90, system.color.work_text, direction);
}
 
void Translate()
156,7 → 156,7
char draw_buf[4096];
strlcpy(#draw_buf, #translate_result, sizeof(draw_buf)-1);
DrawBar(0, y_pos, Form.width-9, Form.cheight - y_pos, 0xFFFFFF);
DrawBar(0, y_pos, Form.cwidth, Form.cheight - y_pos, 0xFFFFFF);
strttl(#draw_buf);
WriteTextB(10+1, y_pos+8, 10000001b, 0x800080, #search_word);