Subversion Repositories Kolibri OS

Rev

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

Rev 7614 Rev 7806
Line 11... Line 11...
11
{
11
{
12
	incn y2;
12
	incn y2;
13
	y2.n = y;
13
	y2.n = y;
14
	spinbox1.draw(x, y2.inc(30));
14
	spinbox1.draw(x, y2.inc(30));
15
	WriteText(x, y2.inc(30), 0x90, system.color.work_text, "C-- Edit");
15
	WriteText(x, y2.inc(30), 0x90, sc.work_text, "C-- Edit");
16
	DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
16
	DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
17
	WriteText(x, y2.inc(35), 0x90, system.color.work_text, "Strandard Edit");
17
	WriteText(x, y2.inc(35), 0x90, sc.work_text, "Strandard Edit");
18
	DrawStEditBoxPos(x, y2.inc(20), #edit_st);
18
	DrawStEditBoxPos(x, y2.inc(20), #edit_st);
19
	DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
19
	DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
20
	DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
20
	DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
21
}
21
}
22
 
22
 
Line 23... Line 23...
23
:void DrawStEditBoxPos(dword x,y, edit_box_pointer)
23
:void DrawStEditBoxPos(dword x,y, edit_box_pointer)
24
{
24
{
25
	dword c_inactive = MixColors(system.color.work_graph, system.color.work, 128);
25
	dword c_inactive = MixColors(sc.work_graph, sc.work, 128);
26
	dword c_active = MixColors(system.color.work_graph, 0, 128);
26
	dword c_active = MixColors(sc.work_graph, 0, 128);
27
	ESI = edit_box_pointer;
27
	ESI = edit_box_pointer;
28
	ESI.edit_box.left = x;
28
	ESI.edit_box.left = x;
29
	ESI.edit_box.top = y;
29
	ESI.edit_box.top = y;
30
	ESI.edit_box.blur_border_color = c_inactive;
30
	ESI.edit_box.blur_border_color = c_inactive;
31
	ESI.edit_box.focus_border_color = c_active;
31
	ESI.edit_box.focus_border_color = c_active;