English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 06 October 2005, 10:00   #1
silk
 
Posts: n/a
Filenames truncated in drop-down list

Hi,

Is there any chance that you (Toni...) could change the display of the drop-down list for files so that we can always see the right-most part of the filename. As you can see from the attachment, given the length of the path (especially when looking insider archives) it's difficult to select the correct file.

Thanks for all the hard work,
Rob
Attached Thumbnails
Click image for larger version

Name:	truncated.PNG
Views:	299
Size:	34.7 KB
ID:	9352  
 
Old 06 October 2005, 11:01   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
I don't think Windows supports right aligned drop down lists.
Toni Wilen is offline  
Old 06 October 2005, 11:12   #3
silk
 
Posts: n/a
I was thinking more along the lines of only populating the list with with say:
"w:\abc\def...\full filename.adf" - although I'll concede that what's in the list may be what gets passed back to the program which wouldn't be ideal. Ideally what's displayed should be seperate to the string that's returned when that option is selected.

I appreciate what VC++ offers might not be good enough, I'll try and take a look into it (or think of a better way - navigating the TOSEC demo's archive isn't particularly friendly from the GUI, long paths are probably unavoidable)

I really like the idea of the archive support (automatically looking inside rar files in my case) - just trying to make it easier for me to start demos on demand.

BTW: Any chance of the archive expansion supporting files ending with .exe? I've a lot of executable binaries which I'd like to rar up rather than leave uncompressed.

Thanks for all the hard work,
Rob
 
Old 06 October 2005, 16:23   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
Originally Posted by Silk
I was thinking more along the lines of only populating the list with with say:
"w:\abc\def...\full filename.adf" - although I'll concede that what's in the list may be what gets passed back to the program which wouldn't be ideal. Ideally what's displayed should be seperate to the string that's returned when that option is selected.
This is unfortunately idea that is not worth the trouble to implement. Clipping the text properly inside the text box is quite impossible.. and I won't create any custom dialogs. I still hate GUI programming

Quote:
BTW: Any chance of the archive expansion supporting files ending with .exe? I've a lot of executable binaries which I'd like to rar up rather than leave uncompressed.
Done
Toni Wilen is offline  
Old 06 October 2005, 22:02   #5
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Toni: Could you perhaps do a "cheat" version of this? Instead of creating one drop down list, create 2 - one being invisible. The invisible one is effectively the current one you have, and everytime you populate the list, you put the shortened version into the display list in the same order. If the user selects a game, the index will be the same for both lists so you can lookup the full path by looking in the invisible list, but the user only sees the shortened version. And no GUI programming required!
Codetapper is offline  
Old 07 October 2005, 21:00   #6
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
How about just displaying the filename and removing the path?
BippyM is offline  
Old 08 October 2005, 01:27   #7
Marcuz
Registered User
 
Marcuz's Avatar
 
Join Date: Jun 2002
Location: .
Age: 48
Posts: 5,562
Quote:
Originally Posted by bippym
How about just displaying the filename and removing the path?
good idea, i second it, if possible
Marcuz is offline  
Old 09 October 2005, 12:36   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
It isn't that easy, length of textbox is unknown and font is non-proportional. I guess it is possible but I am quite sure it is something I don't even want to know..

Removing paths: what about users who have identically named files in multiple directories. (for example, can happen when testing adfs)
Toni Wilen is offline  
Old 09 October 2005, 12:39   #9
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Quote:
Originally Posted by Toni Wilen
It isn't that easy, length of textbox is unknown and font is non-proportional. I guess it is possible but I am quite sure it is something I don't even want to know..

Removing paths: what about users who have identically named files in multiple directories. (for example, can happen when testing adfs)
Have the option of having full paths or filenames.. I rarely see filenames anyway as the path is so long!
BippyM is offline  
Old 09 October 2005, 13:14   #10
Marcuz
Registered User
 
Marcuz's Avatar
 
Join Date: Jun 2002
Location: .
Age: 48
Posts: 5,562
Quote:
Originally Posted by Toni Wilen
Removing paths: what about users who have identically named files in multiple directories. (for example, can happen when testing adfs)
is that adjustablewith a tooltip 'lil popup window?
Marcuz is offline  
Old 09 October 2005, 13:54   #11
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Roll eyes (sarcastic)

Quote:
Originally Posted by bippym
Have the option of having full paths or filenames.. I rarely see filenames anyway as the path is so long!
Same problem here.
It's more a guessing game when selecting files.
andreas is offline  
Old 09 October 2005, 22:25   #12
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Quote:
Originally Posted by Toni Wilen
It isn't that easy, length of textbox is unknown and font is non-proportional. I guess it is possible but I am quite sure it is something I don't even want to know..

Removing paths: what about users who have identically named files in multiple directories. (for example, can happen when testing adfs)
I personally don't see the problem. At the moment if you have any files inside your "My Documents" folder, the drop down list is almost unusable. Why not just put in the file without any path at all so it's just the filename. If that item already exists in the listbox, add the path or a shortened version of the path by comparing where it differs from any existing entry. eg:

c:\documents and settings\codetapper\my documents\winuae\hunter.adf
f:\amiga\backup\games\Hunter.adf
f:\backup\games\Hunter.adf

The bottom one would be first so goes in as Hunter.adf.

Then you hit f:\amiga\backup\games\Hunter.adf and it detects that the filename Hunter.adf is already in the list. So it only puts in the different parts. So it would appear as say f:\amiga\...\Hunter.adf.

Then you hit the top one, and you can put in something like c:\...\Hunter.adf

Any shortening of the path would be a great improvement imho...


or how about this?

Put the entries in with the filename FIRST, then the path at the end, preferably indented/tabbed etc?

Code:
Hunter.adf   c:\documents and settings\
Hunter.adf   f:\amiga\games\
Hunter.adf   f:\backup\amiga\games
That would be really good as the filename is the important bit, and if there are multiple games with the same filename you then check the secondary part, the path?
Codetapper is offline  
Old 09 October 2005, 22:29   #13
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Or display the filename and the CRC only, most adf testers would probably be okay with this and also know the differing versions..

Or have the rightmost part of the path and the filename, after-all you can't have 2 adf's with the same name in the same path!
BippyM is offline  
Old 10 October 2005, 04:45   #14
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Quote:
Originally Posted by bippym
Or display the filename and the CRC only, most adf testers would probably be okay with this and also know the differing versions..

Or have the rightmost part of the path and the filename, after-all you can't have 2 adf's with the same name in the same path!
You could have this problem:

Code:
c:\program files\winuae\hd\games\g\golden_axe.adf
c:\backup\program files\winuae\hd\games\g\golden_axe.adf
Having the last part of the path would end up showing exactly the same string in the dropdown list.

I really think filename <tab/indent> path is the simplest way to go! After all, when you've got 50 games in the list, you just want to select the game and having to find the filename amongst a long path is difficult enough as it is...
Codetapper is offline  
Old 10 October 2005, 20:55   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
or how about this?

Put the entries in with the filename FIRST, then the path at the end, preferably indented/tabbed etc?
Good idea but it is not possible to indent it.. It is just a simple string and indenting proportional font with spaces looks crappy.

I tried without indenting and it works but feels slightly weird..

filename.adf [x:\path\to\somewhere\]
some.adf [x:\path\to\elsewhere\]
Toni Wilen is offline  
Old 10 October 2005, 22:36   #16
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Quote:
Originally Posted by Toni Wilen
Good idea but it is not possible to indent it.. It is just a simple string and indenting proportional font with spaces looks crappy.
In Delphi it's very easy to over-ride all paint events yourself, so I would think you can do it in C aswell. Everytime the control needs to be drawn it calls the OnDrawItem event and you are given the bounding rectangle where the object is - you can then just print text onto that canvas and thus indent easily. You don't have to worry about clipping either, Windows handles all that automatically. Another option maybe?

Quote:
I tried without indenting and it works but feels slightly weird..

filename.adf [x:\path\to\somewhere\]
some.adf [x:\path\to\elsewhere\]
I would rather have that than what it currently has - maybe a tickbox option somewhere so the user can decide which format they like?
Codetapper is offline  
Old 10 October 2005, 22:48   #17
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
Originally Posted by Codetapper
In Delphi it's very easy to over-ride all paint events yourself, so I would think you can do it in C aswell. Everytime the control needs to be drawn it calls the OnDrawItem event and you are given the bounding rectangle where the object is - you can then just print text onto that canvas and thus indent easily. You don't have to worry about clipping either, Windows handles all that automatically. Another option maybe?
Did you already forget I said I hate GUI programming?

Quote:
I would rather have that than what it currently has - maybe a tickbox option somewhere so the user can decide which format they like?
No. I am very much against more or less useless options. Especially options that don't have anything to do with emulation settings.
Toni Wilen is offline  
Old 10 October 2005, 23:46   #18
T_hairy_bootson
Workbitch 1.3
 
T_hairy_bootson's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Age: 46
Posts: 2,084
As a compromise perhaps a tool tip popping up showing the full path + filename when you hover the mouse above the path in the box...


/me ducks Toni's wrath
T_hairy_bootson is offline  
Old 11 October 2005, 05:54   #19
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Quote:
Originally Posted by Toni Wilen
Did you already forget I said I hate GUI programming?
If only it was written in Delphi, sigh
Codetapper is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Voltage drop down, what could be the reason? Sim085 support.Hardware 7 03 August 2013 23:38
New mod! Drop the Panic h0ffman Amiga scene 16 22 September 2012 10:05
about filenames orange project.WHDLoad 12 22 March 2010 17:14
Help me keep from drop-kicking my Amiga!! watertonian support.Other 12 20 March 2010 00:50
List in alphabetical order in dropdown list of Floppy Drives Zed request.UAE Wishlist 1 06 February 2010 17:26

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:32.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16348 seconds with 16 queries