ListIconGadget for an entry. Or, does anyone know how to do this already?
Here's some API code that would do the trick if the structure was supported:
Code: Select all
a$="target"
FindTopic.LVFINDINFO ; <-- Compiler says 'Structure not found'
FindTopic\flags=#LVFI_STRING
FindTopic\psz=@a$
p=SendMessage_(hWnd,#LVM_FINDITEM,-1,FindTopic)
Debug "target was found at index position "+Str(p)
Code: Select all
a$="target"
For a=0 To CountGadgetItems(#gadget)-1
If FindString(GetGadgetItemText(#gadget,a,0),a$,1)<>0 : p=a : Break : EndIf
Next
Debug "target was found at index position "+Str(p)
