Rev 5991 | Rev 6008 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5991 | Rev 5996 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | 34 | ||
Line 35... | Line 35... | ||
35 | dword col_padding, col_selec, col_lpanel; |
35 | dword col_padding, col_selec, col_lpanel; |
Line 36... | Line -... | ||
36 | - | ||
37 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
36 | |
38 | 37 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
|
39 | byte smooth_font=false; |
38 | |
40 | byte active_about=0; |
39 | byte active_about=0; |
41 | word about_window; |
40 | word about_window; |
Line 665... | Line 664... | ||
665 | ext1, attr, |
664 | ext1, attr, |
666 | file_offet, |
665 | file_offet, |
667 | file_name_off, |
666 | file_name_off, |
668 | y=filenum*files.item_h+files.y; |
667 | y=filenum*files.item_h+files.y; |
669 | BDVK file; |
668 | BDVK file; |
- | 669 | char label_file_name[4096]; |
|
670 | if (filenum==-1) return; |
670 | if (filenum==-1) return; |
671 | DrawBar(files.x,y,3,files.item_h,bgcol); |
671 | DrawBar(files.x,y,3,files.item_h,bgcol); |
672 | DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol); |
672 | DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol); |
673 | DrawBar(files.x+3,y+17,16,1,bgcol); |
673 | DrawBar(files.x+3,y+17,16,1,bgcol); |
674 | if (files.item_h>18) DrawBar(files.x+3,y+18,16,files.item_h-18,bgcol); |
674 | if (files.item_h>18) DrawBar(files.x+3,y+18,16,files.item_h-18,bgcol); |
Line 715... | Line 715... | ||
715 | PathShow_draw stdcall(#FileShow); |
715 | PathShow_draw stdcall(#FileShow); |
716 | } |
716 | } |
717 | } |
717 | } |
718 | else |
718 | else |
719 | { |
719 | { |
720 | label.smooth = smooth_font; |
720 | strcpy(#label_file_name, file_name_off); |
- | 721 | if (label.getsize(#label_file_name) + 141 + 26 > files.w) |
|
- | 722 | { |
|
- | 723 | while (label.getsize(#label_file_name) + 141 + 26 > files.w) { |
|
- | 724 | ESBYTE[#label_file_name+strlen(#label_file_name)-1] = NULL; |
|
- | 725 | } |
|
- | 726 | strcpy(#label_file_name+strlen(#label_file_name)-2, "..."); |
|
- | 727 | } |
|
721 | label.write(files.x + 23, files.item_h - label.height / 2 + y, bgcol, text_col, label.size.pt, file_name_off); |
728 | label.write(files.x + 23, files.item_h - label.height / 2 + y, bgcol, text_col, label.size.pt, #label_file_name); |
722 | } |
729 | } |
723 | DrawBar(files.x+files.w-141,y,1,files.item_h,system.color.work); //gray line 1 |
730 | DrawBar(files.x+files.w-141,y,1,files.item_h,system.color.work); //gray line 1 |
724 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
731 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
725 | } |
732 | } |