mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 17:59:38 +03:00
791c882e25
git-svn-id: svn://kolibrios.org@5980 a494cfbc-eb01-0410-851d-a64ba20cac60
19 lines
563 B
C
19 lines
563 B
C
void DrawToolbarButton(char image_id, int x)
|
|
{
|
|
DefineButton(x, 5, TOOLBAR_ICON_WIDTH-1, TOOLBAR_ICON_HEIGHT-1, 10+image_id + BT_HIDE, 0);
|
|
img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 0, image_id*TOOLBAR_ICON_HEIGHT);
|
|
}
|
|
|
|
|
|
void DrawScroller()
|
|
{
|
|
scroll.max_area = list.count;
|
|
scroll.cur_area = list.visible;
|
|
scroll.position = list.first;
|
|
scroll.all_redraw = 0;
|
|
scroll.start_x = list.x + list.w;
|
|
scroll.start_y = list.y;
|
|
scroll.size_y = list.h;
|
|
scroll.start_x = list.x + list.w;
|
|
scrollbar_v_draw(#scroll);
|
|
} |