Subversion Repositories Kolibri OS

Rev

Rev 7043 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5980 leency 1
void DrawToolbarButton(char image_id, int x)
2
{
7218 leency 3
	DefineButton(x+1, 6, TOOLBAR_ICON_WIDTH-2, TOOLBAR_ICON_HEIGHT-2, 10+image_id + BT_HIDE, 0);
4
	img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 0, image_id*TOOLBAR_ICON_HEIGHT);
5980 leency 5
}
6
 
7
 
8
void DrawScroller()
9
{
10
	scroll.max_area = list.count;
11
	scroll.cur_area = list.visible;
12
	scroll.position = list.first;
13
	scroll.all_redraw = 0;
14
	scroll.start_x = list.x + list.w;
15
	scroll.start_y = list.y;
16
	scroll.size_y = list.h;
17
	scrollbar_v_draw(#scroll);
18
}