Rev 7746 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7746 | Rev 7748 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | { |
65 | { |
66 | int i; |
66 | int i; |
67 | if (!count) return true; |
67 | if (!count) return true; |
68 | for (i=0; i |
68 | for (i=0; i |
69 | { |
69 | { |
- | 70 | if (mx>links[i].x) && (my>links[i].y) |
|
70 | if (mx>links[i].x) && (my>links[i].y) && (mx |
71 | && (mx |
- | 72 | && (my>WB1.list.y+WB1.list.first) |
|
71 | { |
73 | { |
72 | if (mouse.lkm) && (mouse.down) { |
74 | if (mouse.lkm) && (mouse.down) { |
73 | DrawRectangle(links[active].x, -WB1.list.first + links[active].y, |
75 | DrawRectangle(links[active].x, -WB1.list.first + links[active].y, |
74 | links[active].w, links[active].h, 0); |
76 | links[active].w, links[active].h, 0); |
75 | return false; |
77 | return false; |
Line 89... | Line 91... | ||
89 | return false; |
91 | return false; |
90 | } |
92 | } |
91 | if (active==i) return false; |
93 | if (active==i) return false; |
92 | CursorPointer.Load(#CursorFile); |
94 | CursorPointer.Load(#CursorFile); |
93 | CursorPointer.Set(); |
95 | CursorPointer.Set(); |
94 | if (links[active].underline) DrawBar(links[active].x, -WB1.list.first + links[active].y |
96 | if (links[active].underline) DrawUnderline(links[active].x, -WB1.list.first + links[active].y |
95 | + links[active].h, links[active].w, links[active].underline_h, link_color_inactive); |
97 | + links[active].h, links[active].w, links[active].underline_h, link_color_inactive); |
96 | if (links[i].underline) DrawBar(links[i].x, -WB1.list.first + links[i].y |
98 | if (links[i].underline) DrawUnderline(links[i].x, -WB1.list.first + links[i].y |
97 | + links[i].h, links[i].w, links[i].underline_h, page_bg); |
99 | + links[i].h, links[i].w, links[i].underline_h, page_bg); |
98 | active = i; |
100 | active = i; |
99 | DrawStatusBar(links[active].link); |
101 | DrawStatusBar(links[active].link); |
100 | return true; |
102 | return true; |
101 | } |
103 | } |
102 | } |
104 | } |
103 | if (active!=-1) |
105 | if (active!=-1) |
104 | { |
106 | { |
105 | CursorPointer.Restore(); |
107 | CursorPointer.Restore(); |
106 | if (links[active].underline) { |
108 | if (links[active].underline) { |
107 | DrawBar(links[active].x, -WB1.list.first + links[active].y + links[active].h,links[active].w, |
109 | DrawUnderline(links[active].x, -WB1.list.first + links[active].y + links[active].h,links[active].w, |
108 | links[active].underline_h, link_color_inactive); |
110 | links[active].underline_h, link_color_inactive); |
109 | } |
111 | } |
110 | DrawBar(status_text.start_x, status_text.start_y, status_text.area_size_x, 9, col_bg); |
112 | DrawBar(status_text.start_x, status_text.start_y, status_text.area_size_x, 9, col_bg); |
111 | active = -1; |
113 | active = -1; |
112 | } |
114 | } |
113 | } |
115 | } |
Line -... | Line 116... | ||
- | 116 | ||
- | 117 | void DrawUnderline(dword x,y,w,h,color) |
|
- | 118 | { |
|
114 | > |
119 | if (y>WB1.list.y) DrawBar(x,y,w,h,color); |