Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the index of a focused list item
#2
Finally, I am satisfied with the following, very fast and efficient solution :

Function tempf
Trigger SF8     Help - how to add the trigger to the macro
Code:
Copy      Help
for i 0 n
,GetListViewItemText(hwl i &sp)
,err
,,_s=_error.description
,,out "<>%s : <open ''%s /%i''>%s</open> - %s" NowT si _error.place si _s
,,mac "Warning_QM" si
,,end
,if(SendMessage(hwl LVM_GETITEMSTATE i 0xffff00ff)&LVIS_SELECTED)
,,out "Index found %i" i
,,break

Any comment is appreciated


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)