Subversion Repositories Kolibri OS

Rev

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

Rev 5804 Rev 5811
Line 529... Line 529...
529
void draw_window()
529
void draw_window()
530
{
530
{
531
	DefineAndDrawWindow(WinX+rand_n,WinY+rand_n,WinW,WinH,0x73,system.color.work,TITLE,0);
531
	DefineAndDrawWindow(WinX+rand_n,WinY+rand_n,WinW,WinH,0x73,system.color.work,TITLE,0);
532
	GetProcessInfo(#Form, SelfInfo);
532
	GetProcessInfo(#Form, SelfInfo);
533
	if (Form.status_window>2) return;
533
	if (Form.status_window>2) return;
534
	if (Form.height < 350) MoveSize(OLD,OLD,OLD,350);
534
	if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; }
535
	if (Form.width  < 480) MoveSize(OLD,OLD,480,OLD);
535
	if (Form.width  < 480) { MoveSize(OLD,OLD,480,OLD); return; }
536
	GetProcessInfo(#Form, SelfInfo); //if win_size changed
536
	GetProcessInfo(#Form, SelfInfo); //if win_size changed
537
	PutPaletteImage(#toolbar,246,34,0,0,8,#toolbar_pal);
537
	PutPaletteImage(#toolbar,246,34,0,0,8,#toolbar_pal);
538
	DrawBar(127, 8, 1, 25, system.color.work_graph);
538
	DrawBar(127, 8, 1, 25, system.color.work_graph);
539
	for (j=0; j<3; j++) DefineButton(toolbar_buttons_x[j]+2,5+2,31-5,29-5,21+j+BT_HIDE,system.color.work);
539
	for (j=0; j<3; j++) DefineButton(toolbar_buttons_x[j]+2,5+2,31-5,29-5,21+j+BT_HIDE,system.color.work);
540
	for (j=3; j<6; j++) DefineButton(toolbar_buttons_x[j],5,31,29,21+j+BT_HIDE,system.color.work);
540
	for (j=3; j<6; j++) DefineButton(toolbar_buttons_x[j],5,31,29,21+j+BT_HIDE,system.color.work);