Rev 5811 | Rev 5978 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5811 | Rev 5825 | ||
---|---|---|---|
Line 122... | Line 122... | ||
122 | if (!CheckActiveProcess(Form.ID)) break; |
122 | if (!CheckActiveProcess(Form.ID)) break; |
123 | edit_box_mouse stdcall (#address_box); |
123 | edit_box_mouse stdcall (#address_box); |
124 | mouse.get(); |
124 | mouse.get(); |
125 | if (WB1.list.MouseOver(mouse.x, mouse.y)) |
125 | if (WB1.list.MouseOver(mouse.x, mouse.y)) |
126 | { |
126 | { |
127 | PageLinks.Hover(mouse.x, WB1.list.first*WB1.list.line_h + mouse.y, link_color_inactive, link_color_active, bg_color); |
127 | PageLinks.Hover(mouse.x, WB1.list.first*WB1.list.item_h + mouse.y, link_color_inactive, link_color_active, bg_color); |
128 | if (bufsize) && (mouse.pkm) && (mouse.up) { CreateThread(#menu_rmb,#stak+4092); break; } |
128 | if (bufsize) && (mouse.pkm) && (mouse.up) { CreateThread(#menu_rmb,#stak+4092); break; } |
129 | if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage(); |
129 | if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage(); |
130 | } |
130 | } |
131 | scrollbar_v_mouse (#scroll_wv); |
131 | scrollbar_v_mouse (#scroll_wv); |
132 | if (WB1.list.first != scroll_wv.position) |
132 | if (WB1.list.first != scroll_wv.position) |
Line 212... | Line 212... | ||
212 | if (redirected>0) |
212 | if (redirected>0) |
213 | { |
213 | { |
214 | http_free stdcall (http_transfer); |
214 | http_free stdcall (http_transfer); |
215 | http_transfer=0; |
215 | http_transfer=0; |
216 | PageLinks.GetAbsoluteURL(#URL); |
216 | PageLinks.GetAbsoluteURL(#URL); |
217 | BrowserHistory.current--; |
217 | BrowserHistory.cur_y--; |
218 | strcpy(#editURL, #URL); |
218 | strcpy(#editURL, #URL); |
219 | DrawEditBox(); |
219 | DrawEditBox(); |
220 | OpenPage(); |
220 | OpenPage(); |
221 | } |
221 | } |
222 | else |
222 | else |
Line 242... | Line 242... | ||
242 | address_box.width = Form.cwidth - address_box.left - 25 - 22; |
242 | address_box.width = Form.cwidth - address_box.left - 25 - 22; |
243 | WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoom, |
243 | WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoom, |
244 | Form.cheight - TOOLBAR_H - STATUSBAR_H, WB1.list.font_h + WB1.DrawBuf.zoom + WB1.DrawBuf.zoom * WB1.DrawBuf.zoom); |
244 | Form.cheight - TOOLBAR_H - STATUSBAR_H, WB1.list.font_h + WB1.DrawBuf.zoom + WB1.DrawBuf.zoom * WB1.DrawBuf.zoom); |
245 | WB1.list.wheel_size = 7; |
245 | WB1.list.wheel_size = 7; |
246 | WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w; |
246 | WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w; |
247 | WB1.list.visible = WB1.list.h - 5 / WB1.list.line_h; |
247 | WB1.list.visible = WB1.list.h - 5 / WB1.list.item_h; |
248 | if (WB1.list.w!=WB1.DrawBuf.bufw) WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h * 30); |
248 | if (WB1.list.w!=WB1.DrawBuf.bufw) WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h * 30); |
249 | } |
249 | } |
Line 250... | Line 250... | ||
250 | 250 | ||
251 | void Draw_Window() |
251 | void Draw_Window() |
Line 484... | Line 484... | ||
484 | void ClickLink() |
484 | void ClickLink() |
485 | { |
485 | { |
486 | if (http_transfer > 0) |
486 | if (http_transfer > 0) |
487 | { |
487 | { |
488 | StopLoading(); |
488 | StopLoading(); |
489 | BrowserHistory.current--; |
489 | BrowserHistory.cur_y--; |
490 | } |
490 | } |
Line 491... | Line 491... | ||
491 | 491 | ||
492 | strcpy(#URL, PageLinks.GetURL(PageLinks.active)); |
492 | strcpy(#URL, PageLinks.GetURL(PageLinks.active)); |
493 | //#1 |
493 | //#1 |