Rev 5435 | Rev 5532 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5435 | Rev 5441 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | scroll_size=onTop(22,57) * files.visible - files.visible / files.count; |
14 | scroll_size=onTop(22,57) * files.visible - files.visible / files.count; |
15 | if (scroll_size<20) scroll_size = 20; //óñòàíàâëèâàåì ìèíèìàëüíûé ðàçìåð ñêðîëëà |
15 | if (scroll_size<20) scroll_size = 20; //óñòàíàâëèâàåì ìèíèìàëüíûé ðàçìåð ñêðîëëà |
16 | if (scroll_size>onTop(22,57)-on_y+56) || (files.first+files.visible>=files.count) on_y=onTop(23+scroll_size,0); //äëÿ áîëüøîãî ñïèñêà |
16 | if (scroll_size>onTop(22,57)-on_y+56) || (files.first+files.visible>=files.count) on_y=onTop(23+scroll_size,0); //äëÿ áîëüøîãî ñïèñêà |
17 | } |
17 | } |
18 | DrawFlatButton(onLeft(27,0),on_y,16,scroll_size,0,-1,"");//ïîëçóíîê |
18 | DrawFlatButton(Form.cwidth - 18,on_y,16,scroll_size,0,-1,"");//ïîëçóíîê |
19 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(onLeft(25-i,0), on_y+2, 1, scroll_size-3, col_palette[13-i]); |
19 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(Form.cwidth - 16 + i, on_y+2, 1, scroll_size-3, col_palette[13-i]); |
20 | if (scroll_used) for (i=0; i<13; i++) DrawBar(onLeft(25-i,0), on_y+2, 1, scroll_size-3, col_palette[i]); |
20 | if (scroll_used) for (i=0; i<13; i++) DrawBar(Form.cwidth - 16 + i, on_y+2, 1, scroll_size-3, col_palette[i]); |
21 | //ïîëå äî ïîëçóíêà |
21 | //ïîëå äî ïîëçóíêà |
22 | if (on_y>58) DrawBar(onLeft(26,0),57,15,1, 0xC7C9C9); |
22 | if (on_y>58) DrawBar(Form.cwidth - 17,57,15,1, 0xC7C9C9); |
23 | DrawBar(onLeft(26,0),58,1, on_y-58,0xC7C9C9); |
23 | DrawBar(Form.cwidth - 17,58,1, on_y-58,0xC7C9C9); |
24 | DrawBar(onLeft(25,0),58,14,on_y-58,0xCED0D0); |
24 | DrawBar(Form.cwidth - 16,58,14,on_y-58,0xCED0D0); |
25 | //ïîëå ïîñëå ïîëçóíêà |
25 | //ïîëå ïîñëå ïîëçóíêà |
26 | if (onTop(22,57)-scroll_size+55>on_y) DrawBar(onLeft(26,0),on_y+scroll_size+1,15,1,0xC7C9C9); |
26 | if (onTop(22,57)-scroll_size+55>on_y) DrawBar(Form.cwidth - 17,on_y+scroll_size+1,15,1,0xC7C9C9); |
27 | DrawBar(onLeft(26,0),on_y+scroll_size+2,1,onTop(22,57)-scroll_size-on_y+55,0xC7C9C9); |
27 | DrawBar(Form.cwidth - 17,on_y+scroll_size+2,1,onTop(22,57)-scroll_size-on_y+55,0xC7C9C9); |
28 | DrawBar(onLeft(25,0),on_y+scroll_size+2,14,onTop(22,57)-scroll_size-on_y+55,0xCED0D0); |
28 | DrawBar(Form.cwidth - 16,on_y+scroll_size+2,14,onTop(22,57)-scroll_size-on_y+55,0xCED0D0); |
29 | } |
29 | } |
30 | 30 | ||
Line 31... | Line 31... | ||
31 | void DrawFlatButton(dword x,y,width,height,id,color,text) |
31 | void DrawFlatButton(dword x,y,width,height,id,color,text) |
32 | { |
32 | { |
33 | int fill_h; |
33 | int fill_h; |