DomZ Posted October 6, 2005 Report Share Posted October 6, 2005 Nothing major, but if the filename is really big it over-runs onto the rest of the interface. See the image below: Link to comment Share on other sites More sharing options...
ReWired Posted October 7, 2005 Report Share Posted October 7, 2005 Confirmed.Also if after the bug appears you change to other torrent (with shorter filename) - this issue remains, means you can't read nothing in "Total Size".The problem is real, when you have few torrents with very long names, especially if they have the same first part of the name, but second part is different (for example CD1 and CD2, or different release) - then you can't understand the file name.Probably the same bug will appear if you use long path to save downloads (in line "Save in" and "Hash").it will be good to leave for these info two lines, instead of one (as it is now). Link to comment Share on other sites More sharing options...
DomZ Posted October 7, 2005 Author Report Share Posted October 7, 2005 Or just limit the size of the text box, so once it reaches the end, the end gets abbreviated to "..." Link to comment Share on other sites More sharing options...
ReWired Posted October 7, 2005 Report Share Posted October 7, 2005 truncating is not a good idea.if you have two files:1.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-BBBBBB.torrent2.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-CCCCC.torrentthen truncating will not work for you:1.AAAAAAAAAAAAAAAAAAAAAAA.........2.AAAAAAAAAAAAAAAAAAAAAAA.........better will be with two lines:1.AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAA-BBBBB.torrent2.AAAAAAAAAAAAAAAAAAAA AAAAAAAAAA-CCCCC.torrentok, we talk about torrent names here, but what about Save In?is there the same bug? Link to comment Share on other sites More sharing options...
chaosblade Posted October 7, 2005 Report Share Posted October 7, 2005 I think right now its just trying to give the textbox as much space as possible. Im not sure word-wrapping is available on those (i know .NET ones do, not sure about C++). Link to comment Share on other sites More sharing options...
NOP Posted October 8, 2005 Report Share Posted October 8, 2005 This problem is common with many programs. The smartest solution imo: show a tooltip if filename is truncated, like TotalCommander does! Link to comment Share on other sites More sharing options...
chaosblade Posted October 8, 2005 Report Share Posted October 8, 2005 I agree, That would be a good solution. The label would show "very very very very very long path..." and the tooltip should show the full name. Link to comment Share on other sites More sharing options...
vithos Posted October 8, 2005 Report Share Posted October 8, 2005 You could also try truncating it more intelligently based on the same field's data on other torrents. So for example:AAAAAAAAAAAAAAAAAAAAAAAAAAAAA-BBBBB.torrentAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-CCCCC.torrentAAAAAAAAAAAA...-BBBBB.torrentAAAAAAAAAAAA...-CCCCC.torrentThat would require keeping all these fields in sorted lists in memory though. Not sure if it would be worth it. And then you've got the problem of what if there's an elipsis inside the filename? I'll risk a guess that rich text is not possible in the current code for these fields, and that's probably the only way to make the truncation really reliable (change the text size or color or something for the elipsis so that it doesn't look like an elipsis from the filename would look).But about the long ones making it impossible to read the labels on other torrents with short ones... that almost seems like a repainting issue but we're probably better off changing the behavior so that it's never neccessary to check if repainting is needed in these cases.My $0.02. Link to comment Share on other sites More sharing options...
chaosblade Posted October 8, 2005 Report Share Posted October 8, 2005 i dont think thats really needed, as far as i could see thats the only place they are displayed (the Save To directory). so one copy in the tooltip property of the label, and a truncated copy in the text property, is all thats needed, unless im wrong. Link to comment Share on other sites More sharing options...
vithos Posted October 8, 2005 Report Share Posted October 8, 2005 Yeah, I was talking about truncating them more intelligently in the middle of the string to avoid multiple different strings truncating to the same string. It's overkill for sure; an elipsis at the end is more reasonable. But where is the Save To directory displayed? Do you mean the "File Name:" field? The same problem could occur on "Tracker URL:" easily as well. And how about tooltips on the listview of torrents, for that matter? They already get truncated. Link to comment Share on other sites More sharing options...
chaosblade Posted October 8, 2005 Report Share Posted October 8, 2005 Well, First of all nobody needs to go wild with filenames, i mean, aside from the full path, why would you need a 500 character long name ? I've seen silly things like <torrent actual name>[ENG][2CD][www.omgzor.com/whatthehellimreallycool.com] .. which is kinda pointless. This goes for tracker URLs aswell.I was talking about the Save In: label in the general tab (which currently doesn't show, but might become a problem aswell). Link to comment Share on other sites More sharing options...
Greek Posted December 15, 2005 Report Share Posted December 15, 2005 the best solution is this, using '...' when the filename is made up of a lot of characters and when you hover the mouse pointer over it, it would display the filename in a tooltip. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.