After getting a report from a client that they're getting weird behavior when using home key to jump to the top of multiselect listicon, I made a test in which I noticed that holding control along with home//end/page up/page down/up arrow/down arrow, the gadget state and gadget text do not update.
I could not reproduce the same behavior with home, but sending the test program to the client, they could verify that they also get the same behavior with just home as we both get with control+home.
Is this perhaps a bug?
The only way I've found to "fix" it is to switch to the regular mode instead of the multiselect mode, which does then make it impossible to select multiple items, of course.
Here's a demo that has two listicons, one has multiselect enabled, another one doesn't.
The title gets updated with the currently focused gadget's state and text.
Code: Select all
OpenWindow(0, #PB_Ignore, #PB_Ignore, #PB_Ignore, #PB_Ignore, "test", #PB_Window_ScreenCentered|#PB_Window_Maximize)
ListIconGadget(0, 0, 0, 100, 100, "", 10, #PB_ListIcon_MultiSelect)
ListIconGadget(1, 200, 0, 100, 100, "", 10)
TextGadget(2, 0, 200, 100, 5, "multiselect")
TextGadget(3, 200, 200, 100, 5, "normal")
For i=0 To 100
AddGadgetItem(0, -1, ""+i)
AddGadgetItem(1, -1, ""+i)
Next
Repeat
e=WaitWindowEvent(1)
If GetActiveGadget()>=0
state=GetGadgetState(GetActiveGadget())
text$=GetGadgetText(GetActiveGadget())
If state<>oldstate
oldstate=state
SetWindowTitle(0, ""+state+", "+text$)
EndIf
EndIf
Until e=#PB_Event_CloseWindow