Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Detect when the user clicks a listview cell

$
0
0
Hello,
It's possible to detect when the user clicks a listview cell?
For example, how can I show a msgbox when the user clicks on the cell "Tutti3"?

[ autoit ]         
#include <GUIConstantsEx.au3> #include <ListviewConstants.au3> Opt("GUIOnEventMode", 1) GUICreate("",850, 200) GUISetOnEvent($GUI_EVENT_CLOSE, "_ExitApp") $brosList = GUICtrlCreateListView("Cognome|Nome|Prova", 10, 10, 750, 100, Default, $LVS_EX_CHECKBOXES) GUICtrlCreateListViewItem("Ciao|Tutti|Hello", $brosList) GUICtrlCreateListViewItem("Ciao|Tutti2|Hello", $brosList) GUICtrlCreateListViewItem("Ciao|Tutti3|Hello", $brosList) GUICtrlCreateListViewItem("Ciao|Tutti4|Hello", $brosList) GUISetState() While 1 Sleep(10) WEnd Func _ExitApp() Exit EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>