Subversion Repositories Kolibri OS

Rev

Rev 9642 | 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
	spinbox1.draw(x, y2.set(y+30));
9453 leency 14
	WriteText(x, y2.inc(30), 0x90, sc.work_text, "C-- Edit");
7806 leency 15
	DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
7614 leency 16
	WriteText(x, y2.inc(35), 0x90, sc.work_text, "Standard Edit");
9643 leency 17
	DrawStEditBoxPos(x, y2.inc(20), #edit_st);
7614 leency 18
	DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
19
	DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
20
}
21
22
 
23
{
24
	dword c_inactive = MixColors(sc.line, sc.work, 128);
9602 leency 25
	dword c_active = MixColors(sc.line, 0, 128);
26
	ESI = edit_box_pointer;
7614 leency 27
	ESI.edit_box.left = x;
28
	ESI.edit_box.top = y;
29
	ESI.edit_box.blur_border_color = c_inactive;
30
	ESI.edit_box.focus_border_color = c_active;
31
	edit_box_draw  stdcall (edit_box_pointer);
32
}
33