16,14 → 16,25 |
#include "..\lib\lib.obj\box_lib.h" |
#include "..\lib\lib.obj\libio_lib.h" |
#include "..\lib\lib.obj\libimg_lib.h" |
#include "..\lib\lib.obj\truetype.h" |
#include "..\lib\list_box.h" |
//images |
#include "img\toolbar_icons.c" |
#include "img\URLgoto.txt"; |
|
#ifndef AUTOBUILD |
#include "lang.h--" |
#endif |
|
#ifdef LANG_RUS |
char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 0.99.08"; |
?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
#else |
char version[]=" Text-based Browser 0.99.08"; |
?define IMAGES_CACHE_CLEARED "Images cache cleared" |
#endif |
|
|
#define URL param |
int use_truetype = 0; |
char fontlol[64]; |
|
char editURL[sizeof(URL)], |
47,6 → 58,8 |
char stak[512]; |
mouse m; |
|
int action_buf; |
|
#include "TWB.h" |
#include "include\menu_rmb.h" |
|
55,14 → 68,12 |
{ |
int btn, key; |
int half_scroll_size; |
int scroll_used=0; |
int scroll_used=0, show_menu; |
|
mem_Init(); |
if (load_dll2(boxlib, #box_lib_init,0)!=0) {notify("System Error: library doesn't exists /rd/1/lib/box_lib.obj"); ExitProcess();} |
if (load_dll2(libio, #libio_init,1)!=0) debug("Error: library doesn't exists - libio"w); |
if (load_dll2(libimg, #libimg_init,1)!=0) debug("Error: library doesn't exists - libimg"w); |
if (load_dll2(libtruetype, #truetype,0)!=0) {debug("Warning: library doesn't exists - TrueType"w); use_truetype = 2; } |
else init_font(#fontlol); |
|
if (!URL) strcpy(#URL, "/sys/index.htm"); |
strcpy(#editURL, #URL); |
88,20 → 99,28 |
};*/ |
|
btn=GetProcessSlot(Form.ID); |
if (btn<>GetActiveProcess()) break; //åñëè îêíî íå àêòèâíî íà ñîáûòèÿ ìûøè íå ðåàãèðóåì |
if (btn<>GetActiveProcess()) break; |
|
edit_box_mouse stdcall (#address_box); |
|
m.get(); |
|
if (m.pkm) && (m.y>WB1.top) && (m.y<Form.height) && (filesize) |
if (m.y>WB1.top) && (m.y<Form.height) && (filesize) |
{ |
if (m.pkm) |
{ |
show_menu = 1; |
} |
if (!m.pkm) && (show_menu) |
{ |
show_menu = 0; |
SwitchToAnotherThread(); |
CreateThread(#menu_rmb,#stak); |
break; |
} |
} |
|
if (m.vert==65535) //ïðîêðóòêà êîë¸ñèêîì |
if (m.vert==65535) |
{ |
if (lines.first==0) break; |
if (lines.first>3) lines.first-=2; ELSE lines.first=1; |
111,7 → 130,8 |
if (m.vert==1) |
{ |
if(lines.visible+lines.first+3>=lines.all) WB1.Scan(181); |
ELSE { |
else |
{ |
lines.first+=2; |
WB1.Scan(ID2); |
} |
161,6 → 181,7 |
if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);} //àäðåñíàÿ ñòðîêà |
break; |
case evReDraw: |
if (action_buf) { WB1.Scan(action_buf); action_buf=0;} |
Draw_Window(); |
break; |
default: |