Subversion Repositories Kolibri OS

Rev

Rev 6289 | Rev 6678 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6289 Rev 6566
Line 17... Line 17...
17
	{
17
	{
18
		sc_slider_y = files.first * sc_h / files.count + sc_y;
18
		sc_slider_y = files.first * sc_h / files.count + sc_y;
19
		sc_slider_h = sc_h * files.visible - files.visible / files.count;
19
		sc_slider_h = sc_h * files.visible - files.visible / files.count;
20
		if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width
20
		if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width
21
		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; //äëÿ áîëüøîãî ñïèñêà 
21
		if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= sc_y + sc_h - sc_slider_h - 1; //äëÿ áîëüøîãî ñïèñêà 
22
	}
22
	}
23
	//slider
23
	//slider
24
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col_graph);
24
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col_graph);
25
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2,0xFEFEFE,col_padding);
25
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2,0xFEFEFE,col_padding);
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]);