Rev 5778 | Rev 5781 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5778 | Rev 5779 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | #endif |
8 | #endif |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | struct llist |
10 | struct llist |
11 | { |
11 | { |
12 | int x, y, w, h, line_h, text_y; |
- | |
13 | dword font_w, font_h, font_type; |
12 | int x, y, w, h, line_h, text_y; |
- | 13 | int count, visible, first, current, column_max; //visible = row_max |
|
14 | int count, visible, first, current, column_max; //visible = row_max |
14 | dword font_w, font_h, font_type; |
15 | int wheel_size; |
15 | byte wheel_size; |
- | 16 | byte active; |
|
16 | int active; |
17 | byte no_selection; |
17 | void ClearList(); |
18 | void ClearList(); |
18 | int MouseOver(int xx, yy); |
19 | int MouseOver(int xx, yy); |
19 | int ProcessMouse(int xx, yy); |
20 | int ProcessMouse(int xx, yy); |
20 | int ProcessKey(dword key); |
21 | int ProcessKey(dword key); |
Line 123... | Line 124... | ||
123 | return 0; |
124 | return 0; |
124 | } |
125 | } |
Line 125... | Line 126... | ||
125 | 126 | ||
126 | int llist::KeyDown() |
127 | int llist::KeyDown() |
127 | { |
128 | { |
128 | if (current-first+1 |
129 | if (current-first+1 |
129 | { |
130 | { |
130 | if (current + 1 >= count) return 0; |
131 | if (current + 1 >= count) return 0; |
131 | current++; |
132 | current++; |
132 | } |
133 | } |
Line 144... | Line 145... | ||
144 | return 1; |
145 | return 1; |
145 | } |
146 | } |
Line 146... | Line 147... | ||
146 | 147 | ||
147 | int llist::KeyUp() |
148 | int llist::KeyUp() |
148 | { |
149 | { |
149 | if (current > first) |
150 | if (current > first) && (!no_selection) |
150 | { |
151 | { |
151 | current--; |
152 | current--; |
152 | } |
153 | } |
153 | else |
154 | else |