Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5980 | leency | 1 | void DrawToolbarButton(char image_id, int x) |
2 | { |
||
3 | DefineButton(x, 5, TOOLBAR_ICON_WIDTH-1, TOOLBAR_ICON_HEIGHT-1, 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); |
||
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 | scroll.start_x = list.x + list.w; |
||
18 | scrollbar_v_draw(#scroll); |
||
19 | } |