Rev 9576 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9576 | Rev 9602 | ||
---|---|---|---|
Line 625... | Line 625... | ||
625 | 625 | ||
626 | if (menu_id == COLOR_SCHEME) thema = true; |
626 | if (menu_id == COLOR_SCHEME) thema = true; |
Line 627... | Line 627... | ||
627 | if (menu_id == REOPEN_IN_APP) reopa = true; |
627 | if (menu_id == REOPEN_IN_APP) reopa = true; |
628 | 628 | ||
Line 629... | Line 629... | ||
629 | DrawBar(0, 0, Form.cwidth, TOOLBAR_H - 1, sc.work); |
629 | DrawBar(0, 0, Form.cwidth, TOOLBAR_H - 1, sc.work); |
630 | DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, sc.work_graph); |
630 | DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, sc.line); |
631 | 631 | ||
632 | x.set(-GAP_S+8); |
632 | x.set(-GAP_S+8); |
Line 642... | Line 642... | ||
642 | void DrawStatusBar(dword _in_text) |
642 | void DrawStatusBar(dword _in_text) |
643 | { |
643 | { |
644 | static char status_text[64]; |
644 | static char status_text[64]; |
645 | if (Form.status_window&ROLLED_UP) return; |
645 | if (Form.status_window&ROLLED_UP) return; |
646 | if (_in_text) strncpy(#status_text, _in_text, sizeof(status_text)); |
646 | if (_in_text) strncpy(#status_text, _in_text, sizeof(status_text)); |
647 | DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.work_graph); |
647 | DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.line); |
648 | DrawBar(0,Form.cheight - STATUSBAR_H+1, Form.cwidth,STATUSBAR_H-1, sc.work); |
648 | DrawBar(0,Form.cheight - STATUSBAR_H+1, Form.cwidth,STATUSBAR_H-1, sc.work); |
649 | WriteText(5, Form.cheight - STATUSBAR_H + 4, 0x80, sc.work_text, #status_text); |
649 | WriteText(5, Form.cheight - STATUSBAR_H + 4, 0x80, sc.work_text, #status_text); |
650 | if (file_path[0]) { |
650 | if (file_path[0]) { |
651 | WriteTextCenter(Form.cwidth-70, Form.cheight - STATUSBAR_H + 4, |
651 | WriteTextCenter(Form.cwidth-70, Form.cheight - STATUSBAR_H + 4, |
652 | 60, sc.work_text, real_encoding*10+#charsets); |
652 | 60, sc.work_text, real_encoding*10+#charsets); |
Line 685... | Line 685... | ||
685 | bool DrawSearch() |
685 | bool DrawSearch() |
686 | { |
686 | { |
687 | char matches[30]; |
687 | char matches[30]; |
688 | int _y = Form.cheight - SEARCH_H - STATUSBAR_H; |
688 | int _y = Form.cheight - SEARCH_H - STATUSBAR_H; |
689 | if (!search.visible) return false; |
689 | if (!search.visible) return false; |
690 | DrawBar(0, _y, Form.cwidth, 1, sc.work_graph); |
690 | DrawBar(0, _y, Form.cwidth, 1, sc.line); |
691 | DrawBar(0, _y+1, Form.cwidth, SEARCH_H-1, sc.work); |
691 | DrawBar(0, _y+1, Form.cwidth, SEARCH_H-1, sc.work); |
Line 692... | Line 692... | ||
692 | 692 | ||
693 | search_box.top = _y + 6; |
693 | search_box.top = _y + 6; |
Line 694... | Line 694... | ||
694 | search_box.width = math.min(Form.width - 200, 150); |
694 | search_box.width = math.min(Form.width - 200, 150); |
Line 695... | Line 695... | ||
695 | 695 | ||
Line 696... | Line 696... | ||
696 | DrawRectangle(search_box.left-1, search_box.top-1, search_box.width+2, 23,sc.work_graph); |
696 | DrawRectangle(search_box.left-1, search_box.top-1, search_box.width+2, 23,sc.line); |
697 | 697 | ||
698 | edit_box_draw stdcall(#search_box); |
698 | edit_box_draw stdcall(#search_box); |
699 | 699 | ||
Line 700... | Line 700... | ||
700 | DrawCaptButton(search_box.left+search_box.width+14, search_box.top-1, 30, |
700 | DrawCaptButton(search_box.left+search_box.width+14, search_box.top-1, 30, |
701 | TOOLBAR_ICON_HEIGHT+1, BTN_FIND_PREVIOUS+10, sc.work_light, sc.work_text, "<"); |
701 | TOOLBAR_ICON_HEIGHT+1, BTN_FIND_PREVIOUS+10, sc.light, sc.work_text, "<"); |
702 | DrawCaptButton(search_box.left+search_box.width+44, search_box.top-1, 30, |
702 | DrawCaptButton(search_box.left+search_box.width+44, search_box.top-1, 30, |
Line 703... | Line 703... | ||
703 | TOOLBAR_ICON_HEIGHT+1, BTN_FIND_NEXT+10, sc.work_light, sc.work_text, ">"); |
703 | TOOLBAR_ICON_HEIGHT+1, BTN_FIND_NEXT+10, sc.light, sc.work_text, ">"); |
704 | 704 | ||
705 | sprintf(#matches, T_MATCHES, search.found.count); |
705 | sprintf(#matches, T_MATCHES, search.found.count); |
706 | WriteTextWithBg(search_box.left+search_box.width+14+85, |
706 | WriteTextWithBg(search_box.left+search_box.width+14+85, |
707 | search_box.top+3, 0xD0, sc.work_text, #matches, sc.work); |
707 | search_box.top+3, 0xD0, sc.work_text, #matches, sc.work); |
Line 708... | Line 708... | ||
708 | 708 | ||
709 | DefineHiddenButton(Form.cwidth-26, search_box.top-1, TOOLBAR_ICON_HEIGHT+1, |
709 | DefineHiddenButton(Form.cwidth-26, search_box.top-1, TOOLBAR_ICON_HEIGHT+1, |