-[8.5b2] Attributes,F2, two templates with same first letter

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

-[8.5b2] Attributes,F2, two templates with same first letter

Post by *MVV »

Try to open Attributes dialog and save templates c, cc, ccc. Then press F2 and c, TC always loads first of them, even if you press c multiple times.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The quick search in this function is currently very simple, it just jumps to the first matching string. Maybe I can improve this when I have a lot of time, but I don't currently see an urgent need.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Windows itself supports search in comboboxes so I think you don't need any manual quick search methods.
When you type text into combobox drop-down window it searches matched lines and even displays little cursor that shows matched part of line. The only thing it doesn't do for you is accepting choice.

However, I agree that it is not so necessary thing to fix.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It must be a problem with Delphi comboboxes - I just checked my code, I'm not doing any quick search. But the same happens with Lazarus. Do I need to set any class attributes to get this Windows search?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I made test application in Delphi 2 with combobox, and search works in it.

I haven't changed any styles, just dragged combobox component to a form, switched its type to csDropDownList and added some strings.
When I type a letter, it jumps to next item starting with typed letter.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's odd, I'm using normal csDropDownList. I'm not even using Unicode for this combobox...
Author of Total Commander
https://www.ghisler.com
Post Reply