Rev 5651 | Rev 5685 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5651 | Rev 5678 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | #include "..\lib\patterns\libimg_load_skin.h" |
28 | #include "..\lib\patterns\libimg_load_skin.h" |
Line 29... | Line 29... | ||
29 | 29 | ||
Line 30... | Line 30... | ||
30 | char homepage[] = FROM "html\\homepage.htm"; |
30 | char homepage[] = FROM "html\\homepage.htm"; |
31 | 31 | ||
32 | #ifdef LANG_RUS |
32 | #ifdef LANG_RUS |
33 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 1.12"; |
33 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 1.14"; |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
36 | char loading[] = " £à㧪 áâà ¨æë... |
36 | char loading[] = " £à㧪 áâà ¨æë... |
Line 128... | Line 128... | ||
128 | load_dll(libimg, #libimg_init,1); |
128 | load_dll(libimg, #libimg_init,1); |
129 | load_dll(libHTTP, #http_lib_init,1); |
129 | load_dll(libHTTP, #http_lib_init,1); |
130 | Libimg_LoadImage(#skin, abspath("wv_skin.png")); |
130 | Libimg_LoadImage(#skin, abspath("wv_skin.png")); |
131 | SetSkinColors(); |
131 | SetSkinColors(); |
Line 132... | Line 132... | ||
132 | 132 | ||
133 | WB1.DrawBuf.zoomf = 1; |
133 | WB1.DrawBuf.zoom = 1; |
134 | Form.width=WIN_W; |
134 | Form.width=WIN_W; |
135 | Form.height=WIN_H; |
135 | Form.height=WIN_H; |
136 | SetElementSizes(); |
136 | SetElementSizes(); |
137 | if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME); |
137 | if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME); |
Line 175... | Line 175... | ||
175 | { |
175 | { |
176 | scroll_used=1; |
176 | scroll_used=1; |
177 | } |
177 | } |
178 | if (scroll_used) |
178 | if (scroll_used) |
179 | { |
179 | { |
180 | mouse.y = mouse.y / WB1.DrawBuf.zoomf + 5; |
180 | mouse.y = mouse.y + 5; |
181 | half_scroll_size = WB1.list.h - 16 * WB1.list.visible / WB1.list.count - 3 /2; |
181 | half_scroll_size = WB1.list.h - 16 * WB1.list.visible / WB1.list.count - 3 /2; |
182 | if (half_scroll_size+WB1.list.y>mouse.y) || (mouse.y<0) || (mouse.y>4000) mouse.y=half_scroll_size+WB1.list.y; |
182 | if (half_scroll_size+WB1.list.y>mouse.y) || (mouse.y<0) || (mouse.y>4000) mouse.y=half_scroll_size+WB1.list.y; |
183 | btn=WB1.list.first; |
183 | btn=WB1.list.first; |
184 | WB1.list.first = mouse.y -half_scroll_size -WB1.list.y * WB1.list.count / WB1.list.h; |
184 | WB1.list.first = mouse.y -half_scroll_size -WB1.list.y * WB1.list.count / WB1.list.h; |
185 | if (WB1.list.visible+WB1.list.first>WB1.list.count) WB1.list.first=WB1.list.count-WB1.list.visible; |
185 | if (WB1.list.visible+WB1.list.first>WB1.list.count) WB1.list.first=WB1.list.count-WB1.list.visible; |
Line 280... | Line 280... | ||
280 | 280 | ||
281 | void SetElementSizes() |
281 | void SetElementSizes() |
282 | { |
282 | { |
283 | address_box.top = TOOLBAR_H-TAB_H/2-7+TAB_H; |
283 | address_box.top = TOOLBAR_H-TAB_H/2-7+TAB_H; |
284 | address_box.width = Form.cwidth - address_box.left - 25 - 22; |
284 | address_box.width = Form.cwidth - address_box.left - 25 - 22; |
- | 285 | WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoom, |
|
285 | WB1.list.SetSizes(0, TOOLBAR_H, Form.width - 10 - scroll_wv.size_x / WB1.DrawBuf.zoomf, Form.cheight - TOOLBAR_H - STATUSBAR_H / WB1.DrawBuf.zoomf, 0, 11); |
286 | Form.cheight - TOOLBAR_H - STATUSBAR_H, 0, 11*WB1.DrawBuf.zoom); |
286 | WB1.list.column_max = WB1.list.w - scroll_wv.size_x / 6; |
287 | WB1.list.column_max = WB1.list.w - scroll_wv.size_x / 6; |
287 | WB1.list.visible = WB1.list.h - 5 / WB1.list.line_h; |
288 | WB1.list.visible = WB1.list.h - 5 / WB1.list.line_h; |
288 | WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.line_h); |
289 | WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.line_h); |
Line 475... | Line 476... | ||
475 | mouse.y = TOOLBAR_H-6; |
476 | mouse.y = TOOLBAR_H-6; |
476 | mouse.x = Form.cwidth - 167; |
477 | mouse.x = Form.cwidth - 167; |
477 | CreateThread(#menu_rmb,#stak+4092); |
478 | CreateThread(#menu_rmb,#stak+4092); |
478 | return; |
479 | return; |
479 | case 122: |
480 | case 122: |
480 | if (WB1.DrawBuf.zoomf==1) WB1.DrawBuf.zoomf=2; else WB1.DrawBuf.zoomf=1; |
481 | if (WB1.DrawBuf.zoom==1) WB1.DrawBuf.zoom=2; else WB1.DrawBuf.zoom=1; |
481 | Draw_Window(); |
482 | Draw_Window(); |
482 | } |
483 | } |
483 | } |
484 | } |