ListIconGadget bahavior when typing

Just starting out? Need help? Post your questions and find answers here.
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

ListIconGadget bahavior when typing

Post by boddhi »

Hello,

I apologize in advance for not providing a demonstrative snippet, as I can't precisely reproduce the conditions that lead me to the following situation.

Consider the video below:
Image

I have two ListIcons with exactly the same flags (#PB_ListIcon_GridLines|#PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection) and subject to the same item sorting procedures with callback.

In the 1st case, to go to a specific item, I can type several letters to refine the positioning in the list.
Here, I quickly type 'N' then 'B' and the selection line is positioned on 'NB'.

In the 2nd case, I do exactly the same thing, but the behavior is different. The selection line is positioned first on the first word beginning with 'N', then on the first word beginning with 'B', and not on the first word beginning with 'NB'.

I have no idea why this behavior is different. Could anyone give me a possible reason ?

Thanks for your help.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Randy Walker
Addict
Addict
Posts: 1109
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: ListIconGadget bahavior when typing

Post by Randy Walker »

Firstly, you didn't mention your platform -- Windows/Linux/MAC???
The behavior I see in your video demonstrates typical Windows reactions when you type a letter with focus on a ListIconGadget, intended to help you jump to the next occurrence of any entry beginning with the letter you type. I often use that feature in the Windows explorer and often wish I could type 2 letters but just not possible in my experience. I think the only solution is to create a StringGadget for input to search through your ListIconGadget as they did in the Windows Explorer. Probably some sample code to get you started somewhere here in the forum pages.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply