Subversion Repositories Kolibri OS

Rev

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

Rev 8779 Rev 8933
Line 1... Line 1...
1
llist select_list;
1
llist select_list;
2
scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
2
scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
?define T_SELECT_LIST_NO_DATA "No data to show"
4
?define T_SELECT_LIST_NO_DATA "No data to show"
5
 
5
 
6
void SelectList_Init(dword _x, _y, _w, _h, _no_selection)
-
 
7
{
6
void SelectList_Init(dword _x, _y, _w, _h)
8
	select_list.no_selection = _no_selection;
7
{
9
	select_list.SetFont(8, 14, 0x90);
8
	select_list.SetFont(8, 14, 0x90);
Line 10... Line 9...
10
	select_list.SetSizes(_x, _y, _w, _h, 20);
9
	select_list.SetSizes(_x, _y, _w, _h, 20);
Line 18... Line 17...
18
 
17
 
Line 19... Line 18...
19
	if (select_list.count > select_list.visible) list_last = select_list.visible; else list_last = select_list.count;
18
	if (select_list.count > select_list.visible) list_last = select_list.visible; else list_last = select_list.count;
20
 
19
 
21
	for (i=0; i
-
 
22
	{
20
	for (i=0; i
23
		DrawBar(select_list.x,i*select_list.item_h+select_list.y,select_list.w, select_list.item_h, 0xFFFfff);
21
	{
24
		SelectList_DrawLine(i); //NEED TO BE IMPLEMENTED IN APP
22
		SelectList_DrawLine(i); //NEED TO BE IMPLEMENTED IN APP
25
	}
23
	}
26
	DrawBar(select_list.x,i*select_list.item_h+select_list.y, select_list.w, -i*select_list.item_h+ select_list.h, 0xFFFfff);
24
	DrawBar(select_list.x,i*select_list.item_h+select_list.y, select_list.w, -i*select_list.item_h+ select_list.h, 0xFFFfff);
27
	if (!select_list.count) WriteText(-strlen(T_SELECT_LIST_NO_DATA)*select_list.font_w + select_list.w / 2 + select_list.x + 1, 
25
	if (!select_list.count) WriteText(-15*8 + select_list.w / 2 + select_list.x + 1, 
28
		select_list.h / 2 - 8 + select_list.y, select_list.font_type, 0x999999, T_SELECT_LIST_NO_DATA);
26
		select_list.h / 2 - 8 + select_list.y, 0x90, 0x999999, T_SELECT_LIST_NO_DATA);
Line 29... Line 27...
29
	SelectList_DrawScroller();
27
	SelectList_DrawScroller();
30
}
28
}