Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
7614 leency 1
 
2
more_less_box spinbox1 = { 23, 0, 999, "SpinBox" };
3
edit_box edit_cmm = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
4
	0x10000000,sizeof(param)-2,#param,0, 0b};
5
char st_str[16];
6
edit_box edit_st = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
7
	0x10000000,sizeof(st_str)-2,#st_str,0, 0b};
8
9
 
10
 
11
{
12
	incn y2;
13
	y2.n = y;
14
	spinbox1.draw(x, y2.inc(30));
15
	WriteText(x, y2.inc(30), 0x90, sc.work_text, "C-- Edit");
7806 leency 16
	DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
7614 leency 17
	WriteText(x, y2.inc(35), 0x90, sc.work_text, "Strandard Edit");
7806 leency 18
	DrawStEditBoxPos(x, y2.inc(20), #edit_st);
7614 leency 19
	DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
20
	DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
21
}
22
23
 
24
{
25
	dword c_inactive = MixColors(sc.work_graph, sc.work, 128);
7806 leency 26
	dword c_active = MixColors(sc.work_graph, 0, 128);
27
	ESI = edit_box_pointer;
7614 leency 28
	ESI.edit_box.left = x;
29
	ESI.edit_box.top = y;
30
	ESI.edit_box.blur_border_color = c_inactive;
31
	ESI.edit_box.focus_border_color = c_active;
32
	edit_box_draw  stdcall (edit_box_pointer);
33
}
34