Subversion Repositories Kolibri OS

Rev

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

Rev 5707 Rev 5709
Line 212... Line 212...
212
						menu_call_mouse = 1;
212
						menu_call_mouse = 1;
Line 213... Line 213...
213
						
213
						
214
						if (files.MouseOver(mouse.x, mouse.y))
214
						if (files.MouseOver(mouse.x, mouse.y))
215
						{
215
						{
-
 
216
							files.current = mouse.y - files.y / files.line_h + files.first;
216
							files.current = mouse.y - files.y / files.line_h + files.first;
217
							List_ReDraw();
217
							menu_stak = malloc(4096);
218
							menu_stak = malloc(4096);
218
							CreateThread(#FileMenu,menu_stak+4092);	
219
							CreateThread(#FileMenu,menu_stak+4092);	
219
						}
220
						}
220
						break;
221
						break;
Line 506... Line 507...
506
void draw_window()
507
void draw_window()
507
{
508
{
508
	DefineAndDrawWindow(GetScreenWidth()-550/4+rand_n,rand_n+30,550,500,0x73,system.color.work,TITLE,0);
509
	DefineAndDrawWindow(GetScreenWidth()-550/4+rand_n,rand_n+30,550,500,0x73,system.color.work,TITLE,0);
509
	GetProcessInfo(#Form, SelfInfo);
510
	GetProcessInfo(#Form, SelfInfo);
510
	if (Form.status_window>2) return;
511
	if (Form.status_window>2) return;
511
	if (Form.height < files.min_h) MoveSize(OLD,OLD,OLD,files.min_h);
512
	if (Form.height < 350) MoveSize(OLD,OLD,OLD,350);
512
	if (Form.width<480) MoveSize(OLD,OLD,480,OLD);
513
	if (Form.width  < 480) MoveSize(OLD,OLD,480,OLD);
513
	GetProcessInfo(#Form, SelfInfo); //if win_size changed
514
	GetProcessInfo(#Form, SelfInfo); //if win_size changed
514
	PutPaletteImage(#toolbar,246,34,0,0,8,#toolbar_pal);
515
	PutPaletteImage(#toolbar,246,34,0,0,8,#toolbar_pal);
515
	DrawBar(127, 8, 1, 25, system.color.work_graph);
516
	DrawBar(127, 8, 1, 25, system.color.work_graph);
516
	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);
517
	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);
Line 525... Line 526...
525
	DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg
526
	DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg
526
	for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]);	
527
	for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]);	
527
	if (!two_panels)
528
	if (!two_panels)
528
	{
529
	{
529
		DrawLeftPanel();
530
		DrawLeftPanel();
530
		files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59, disc_num*16+3,files.line_h);	
531
		files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59, files.line_h);
531
		DrawListColumns();
532
		DrawListColumns();
532
		Open_Dir(#path,ONLY_SHOW);
533
		Open_Dir(#path,ONLY_SHOW);
533
	}
534
	}
534
	else
535
	else
535
	{
536
	{
536
		files.SetSizes(2, 57+22, Form.cwidth/2-2-17, Form.cheight-59-22, disc_num*16+3,files.line_h);
537
		files.SetSizes(2, 57+22, Form.cwidth/2-2-17, Form.cheight-59-22, files.line_h);
537
		DrawListColumns();
538
		DrawListColumns();
538
		Open_Dir(#path,ONLY_SHOW);		
539
		Open_Dir(#path,ONLY_SHOW);		
539
		files.SetSizes(Form.cwidth/2, 57+22, Form.cwidth/2 -17, Form.cheight-59-22, disc_num*16+3,files.line_h);
540
		files.SetSizes(Form.cwidth/2, 57+22, Form.cwidth/2 -17, Form.cheight-59-22, files.line_h);
540
		DrawListColumns();
541
		DrawListColumns();
541
		Open_Dir(#path,ONLY_SHOW);
542
		Open_Dir(#path,ONLY_SHOW);
542
	}
543
	}
543
	if (del_active) Del_Form();
544
	if (del_active) Del_Form();
544
	if (new_element_active) NewElement_Form(new_element_active, #new_element_name);
545
	if (new_element_active) NewElement_Form(new_element_active, #new_element_name);