Rev 5703 | Rev 6008 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5703 | Rev 5743 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | { |
18 | { |
19 | sc_slider_y = files.first * sc_h / files.count + sc_y; |
19 | sc_slider_y = files.first * sc_h / files.count + sc_y; |
20 | sc_slider_h = sc_h * files.visible - files.visible / files.count; |
20 | sc_slider_h = sc_h * files.visible - files.visible / files.count; |
21 | if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width |
21 | if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width |
22 | if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y=onTop(23+sc_slider_h,0); //äëÿ áîëüøîãî ñïèñêà |
22 | if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= Form.cheight - 19 - sc_slider_h; //äëÿ áîëüøîãî ñïèñêà |
23 | } |
23 | } |
24 | //slider |
24 | //slider |
25 | DrawFlatButton(sc_x,sc_slider_y,16,sc_slider_h,0,-1,""); |
25 | DrawFlatButton(sc_x,sc_slider_y,16,sc_slider_h,0,-1,""); |
26 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_palette[13-i]); |
26 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_palette[13-i]); |
27 | if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_palette[i]); |
27 | if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_palette[i]); |
28 | //area before slider |
28 | //area before slider |