Rev 7818 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7818 | Rev 7872 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | } |
66 | } |
67 | 67 | ||
Line 68... | Line 68... | ||
68 | void SEARCH::draw_found() |
68 | void SEARCH::draw_found() |
69 | { |
69 | { |
- | 70 | char matches[30]; |
|
70 | strcpy(#param, "Matches: "); |
71 | strcpy(#matches, "Matches: "); |
71 | strcat(#param, itoa(found_count)); |
72 | strcat(#matches, itoa(found_count)); |
72 | strcat(#param, " "); |
73 | strcat(#matches, " "); |
73 | WriteTextWithBg(search_box.left+search_box.width+14+110, search_box.top+3, 0xD0, sc.work_text, #param, sc.work); |
74 | WriteTextWithBg(search_box.left+search_box.width+14+110, search_box.top+3, 0xD0, sc.work_text, #matches, sc.work); |
74 | } |
75 | } |
Line 75... | Line 76... | ||
75 | 76 | ||
76 | bool SEARCH::draw(dword _btn_find, _btn_hide) |
77 | bool SEARCH::draw(dword _btn_find, _btn_hide, _y) |
77 | { |
78 | { |
78 | if (!visible) return false; |
79 | if (!visible) return false; |
79 | DrawBar(0,Form.cheight - SEARCH_H, Form.cwidth, 1, sc.work_graph); |
80 | DrawBar(0, _y, Form.cwidth, 1, sc.work_graph); |
Line 80... | Line 81... | ||
80 | DrawBar(0,Form.cheight - SEARCH_H+1, Form.cwidth, SEARCH_H-1, sc.work); |
81 | DrawBar(0, _y+1, Form.cwidth, SEARCH_H-1, sc.work); |
81 | 82 | ||
Line 82... | Line 83... | ||
82 | search_box.top = Form.cheight - SEARCH_H + 6; |
83 | search_box.top = _y + 6; |
Line 83... | Line 84... | ||
83 | search_box.width = math.min(Form.width - 200, 250); |
84 | search_box.width = math.min(Form.width - 200, 250); |
Line 142... | Line 143... | ||
142 | draw_bar(0, atoi(pos.get(i)), 3, list.item_h, col); |
143 | draw_bar(0, atoi(pos.get(i)), 3, list.item_h, col); |
143 | } |
144 | } |
144 | } |
145 | } |
145 | 146 | ||
Line 146... | Line 147... | ||
146 | void draw_bar(dword _x, _y, _w, _h, _color) |
147 | :void draw_bar(dword _x, _y, _w, _h, _color) |
147 | { |
148 | { |
148 | int i; |
149 | int i; |
149 | for (i = _y*list.w+_x*KFONT_BPP+kfont.raw ; i<_y*list.w+_x+_w*KFONT_BPP+kfont.raw ; i+=KFONT_BPP) |
150 | for (i = _y*list.w+_x*4+kfont.raw ; i<_y*list.w+_x+_w*4+kfont.raw ; i+=4) |
150 | { |
151 | { |
151 | ESDWORD[i] = _color; |
152 | ESDWORD[i] = _color; |
152 | } |
153 | } |
153 | if (_h>0) draw_bar(dword _x, _y+1, _w, _h-1, _color); |
154 | if (_h>0) draw_bar(dword _x, _y+1, _w, _h-1, _color); |
154 | } |
155 | } |
155 | 156 |