Rev 5749 | Rev 5779 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5749 | Rev 5778 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | int KeyPgUp(); |
26 | int KeyPgUp(); |
27 | void CheckDoesValuesOkey(); |
27 | void CheckDoesValuesOkey(); |
28 | void SetSizes(int xx, yy, ww, hh, line_hh); |
28 | void SetSizes(int xx, yy, ww, hh, line_hh); |
29 | void SetFont(dword font_ww, font_hh, font_tt); |
29 | void SetFont(dword font_ww, font_hh, font_tt); |
30 | int MouseScroll(dword scroll_state); |
30 | int MouseScroll(dword scroll_state); |
31 | int MouseScrollNoSelection(dword scroll_state); |
- | |
32 | void debug_values(); |
31 | void debug_values(); |
33 | }; |
32 | }; |
Line 34... | Line 33... | ||
34 | 33 | ||
Line 86... | Line 85... | ||
86 | return 1; |
85 | return 1; |
87 | } |
86 | } |
88 | return 0; |
87 | return 0; |
89 | } |
88 | } |
Line 90... | Line -... | ||
90 | - | ||
91 | int llist::MouseScrollNoSelection(dword scroll_state) |
- | |
92 | { |
- | |
93 | if (count<=visible) return 0; |
- | |
94 | if (scroll_state == 65535) |
- | |
95 | { |
- | |
96 | if (current == 0) return 0; |
- | |
97 | if (current > 3) current -= 2; else current=0; |
- | |
98 | return 1; |
- | |
99 | } |
- | |
100 | if (scroll_state == 1) |
- | |
101 | { |
- | |
102 | if (visible + current == count) return 0; |
- | |
103 | if (visible+current+3 > count) current = count - visible; else current+=2; |
- | |
104 | return 1; |
- | |
105 | } |
- | |
106 | return 0; |
- | |
Line 107... | Line 89... | ||
107 | } |
89 | |
108 | 90 | ||
109 | int llist::MouseOver(int xx, yy) |
91 | int llist::MouseOver(int xx, yy) |
110 | { |
92 | { |