Rev 7518 | Rev 7606 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7518 | Rev 7551 | ||
---|---|---|---|
Line 561... | Line 561... | ||
561 | if (show_status_bar.checked) status_bar_h = STATUS_BAR_H; else status_bar_h = 0; |
561 | if (show_status_bar.checked) status_bar_h = STATUS_BAR_H; else status_bar_h = 0; |
562 | DefineAndDrawWindow(Form.left+rand_n,Form.top+rand_n,Form.width,Form.height,0x73,NULL,TITLE,0); |
562 | DefineAndDrawWindow(Form.left+rand_n,Form.top+rand_n,Form.width,Form.height,0x73,NULL,TITLE,0); |
563 | GetProcessInfo(#Form, SelfInfo); |
563 | GetProcessInfo(#Form, SelfInfo); |
564 | if (Form.status_window>2) return; |
564 | if (Form.status_window>2) return; |
565 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
565 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
566 | if (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
566 | if (!two_panels.checked) && (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
- | 567 | if ( two_panels.checked) && (Form.width < 573) { MoveSize(OLD,OLD,573,OLD); return; } |
|
567 | GetProcessInfo(#Form, SelfInfo); |
568 | GetProcessInfo(#Form, SelfInfo); |
568 | ESDWORD[#toolbar_pal] = col_work; |
569 | ESDWORD[#toolbar_pal] = col_work; |
569 | ESDWORD[#toolbar_pal+4] = MixColors(0, col_work, 35); |
570 | ESDWORD[#toolbar_pal+4] = MixColors(0, col_work, 35); |
570 | PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal); |
571 | PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal); |
571 | DrawBar(127, 8, 1, 25, col_graph); |
572 | DrawBar(127, 8, 1, 25, col_graph); |
Line 637... | Line 638... | ||
637 | 638 | ||
638 | if (active_panel==1) |
639 | if (active_panel==1) |
639 | { |
640 | { |
640 | llist_copy(#files, #files_inactive); |
641 | llist_copy(#files, #files_inactive); |
641 | strcpy(#path, #inactive_path); |
642 | strcpy(#path, #inactive_path); |
642 | col_selec = 0xCCCccc; |
643 | col_selec = 0xCCCccc; //this is a bad code: need to use some var to set inactive panel for DrawList(); |
643 | files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
644 | files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2 - status_bar_h, files.item_h); |
644 | DrawList(); |
645 | DrawList(); |
645 | Open_Dir(#path,WITH_REDRAW); |
646 | Open_Dir(#path,WITH_REDRAW); |
646 | llist_copy(#files, #files_active); |
647 | llist_copy(#files, #files_active); |
Line 698... | Line 699... | ||
698 | DrawBar(files.x+files.w-141,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
699 | DrawBar(files.x+files.w-141,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
699 | DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
700 | DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
700 | Scroll(); |
701 | Scroll(); |
Line 701... | Line 702... | ||
701 | 702 | ||
702 | if (del_active) Del_Form(); |
703 | if (del_active) Del_Form(); |
703 | if (new_element_active) NewElement_Form(new_element_active, #new_element_name); |
704 | if (new_element_active) && (col_selec != 0xCCCccc) NewElement_Form(new_element_active, #new_element_name); |
Line 704... | Line 705... | ||
704 | } |
705 | } |
705 | 706 |