/programs/cmm/TWB/TWB.c |
---|
6,7 → 6,7 |
#define URL param |
scroll_bar scroll_wv = { 17,200,398, 44,17,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; |
scroll_bar scroll_wv = { 15,200,398,44,0,2,115,15,0,0xeeeeee,0xBBBbbb,0xeeeeee,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; |
char header[2048]; |
647,7 → 647,7 |
if (!strcmp(#options, "utf-8")) || (!strcmp(#options,"utf8")) meta_encoding = _UTF; |
if (!strcmp(#options, "koi8-r")) || (!strcmp(#options, "koi8-u")) meta_encoding = _KOI; |
if (!strcmp(#options, "windows-1251")) || (!strcmp(#options, "windows1251")) meta_encoding = _WIN; |
//if (!strcmp(#options, "dos")) || (!strcmp(#options, "cp-866")) meta_encoding = _DOS; |
if (!strcmp(#options, "dos")) || (!strcmp(#options, "cp-866")) meta_encoding = _DOS; |
if (cur_encoding==_DEFAULT) BufEncode(meta_encoding); |
return; |
} |
662,7 → 662,7 |
scroll_wv.cur_area = list.visible; |
scroll_wv.position = list.first; |
scroll_wv.all_redraw=1; |
scroll_wv.all_redraw=0; |
scroll_wv.start_x = list.x + list.w; |
scroll_wv.start_y = list.y; |
scroll_wv.size_y=list.h; |
/programs/cmm/TWB/links.h |
---|
63,6 → 63,8 |
CursorPointer.Restore(); |
} |
char temp[4096]; |
PathShow_data status_text = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, 0, #temp, 0}; |
void LinksArray::Hover(dword mx, my, link_col_in, link_col_a, bg_col) |
{ |
76,6 → 78,13 |
if (links[active].underline) DrawBar(links[active].x,links[active].y+8,links[active].w,1, link_col_in); |
if (links[i].underline) DrawBar(links[i].x,links[i].y+8,links[i].w,1, bg_col); |
active = i; |
DrawBar(progress_bar.left+progress_bar.width+10, progress_bar.top+2, Form.cwidth-progress_bar.left-progress_bar.width-10, 9, col_bg); |
status_text.start_x = progress_bar.left+progress_bar.width+10; |
status_text.start_y = progress_bar.top+2; |
status_text.area_size_x = Form.cwidth-progress_bar.left-progress_bar.width-10; |
status_text.text_pointer = links[active].link; |
PathShow_prepare stdcall(#status_text); |
PathShow_draw stdcall(#status_text); |
return; |
} |
} |
83,6 → 92,7 |
{ |
CursorPointer.Restore(); |
if (links[active].underline) DrawBar(links[active].x,links[active].y+8,links[active].w,1, link_col_in); |
DrawBar(progress_bar.left+progress_bar.width+10, progress_bar.top+2, Form.cwidth-progress_bar.left-progress_bar.width-10, 9, col_bg); |
active = -1; |
} |
} |