[Wish]Drive combobox enhancement

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
TLis
Member
Member
Posts: 111
Joined: 2004-06-02, 16:48 UTC
Location: Szczecin, Poland

[Wish]Drive combobox enhancement

Post by *TLis »

Hi,

The drive combobox displays the drive letters in the first column, and the description in the second one. The drive can be selected by clicking in the first column only. It would be better, if we could click in the second column as well to select the drive.

Quite often we look up the drive by description, not remembering the drive letter, that has been assigned to it. Then, as soon, as we find the requested description (e.g. network share), we could click it directly, without moving to the first colum to click on its drive letter.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It would be better, if we could click in the second column as well to select the drive.
Unfortunately this isn't possible. The problem is that when I click outside of the dropdown listbox (the box containing just the drive letters), then Windows closes this list (and with it the additional window!) before the click reaches that window...
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2ghisler(Author)
But you could just extend the listbox entries with the description.
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, but then I could no longer use a normal dropdown listbox, only an owner-drawn.
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

ghisler(Author) wrote:Yes, but then I could no longer use a normal dropdown listbox, only an owner-drawn.
For having longer texts in the entries??
I switched to Linux, bye and thanks for all the fish!
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Hm, I have no technical background, so sorry if a dwarf raises his hand here :wink:, but I also would prefer a non-splitted select field that contains the drives letters and labels in one completely clickable row.

Of course this is no real urge, but this would make selecting a drive with this box by mouse a bit more comfortable, as you could click anywhere in the shown select field to choose the drive. The current behaviour is a bit like a 'Home'-button on a web page that reacts only when clicking on 'Ho'... :wink:
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

I completely agree.
This solution with an extra window is not fortunate at all.

It also has several other small bugs:
- the extra window is actually 1 pixel taller than the list box, so if you have a good eye, it's a bit disturbing
- in certain cases the list box will unfold upwards (if there's not enough room downwards) however the extra window still shows up downwards, completely separated now from the list box

So, changing this will be a welcome improvement.
User avatar
HolgerK
Power Member
Power Member
Posts: 5408
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2ghisler(Author)
I agree, the problem with standard combo boxes is, that the list box part of the combo box has always the same width as the combo box.

Actual we see two elements:
<[ComboBox]> and <"free space on drive">:
<[-X-][V]> <"[Drive label] n,nnn,nnn k of mm,mmm,mmm k free">
maybe another layout can solve this problem:
<[V][-X- [Drive label ]> <"n,nnn,nnn k of mm,mmm,mmm k free">
- Move the "Drive label" part from <"free space on drive"> into the combo box.
- Place the DropDownButton [V] at the left side and fill the list box with "drive letter" and "drive label"
- The width of the combo box should be set to the maximum length of "drive letter" and "drive name".
- If the combo box is hidden by configuration, the old layout for <"free space on drive"> can be kept.

Kind regards,
Holger
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

the list box part of the combo box has always the same width as the combo box
It seems that it doesn't have to be so - look at the 3 combo boxes in the "Find files" -> "Plugins" tab (Plugin, Property, OP) - they are all wider than the original unfolded combobox.

Same thing with the "Configuration" -> "Misc." -> "Command" combo box in TC 6.56
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5408
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2petermad

You're right.
It seems that the list box width can be set indepentent from the combo box width. :oops:
The main point behind my suggestions is that the folded combo should show the drive label too.
It's not necessary to show this info again in the <"free space on drive"> section.
But maybe ghisler decided against this, because it looks ugly if the label names are not lined up:
[l] label of drive l
[m] label of drive m
So in the end it's true, only a owner drawn list box can beautify this :(

Kind regards,
Holger
ghirai
Junior Member
Junior Member
Posts: 4
Joined: 2007-03-18, 17:09 UTC

Post by *ghirai »

Subclassing or setting a hook might work, but i don't know if it's worth the effort.
Post Reply