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

Getting highlighted item in treeview

$
0
0

Hello, I want to allow users to be able to double click a tree view, and then retrieve the element they clicked, currently I am doing it as follows, and everything works except, it's always a blank text returned, I seem to be missing some step, could someone take a peak at my code and help me? thanks.
 

 Case $NM_DBLCLK ; The user has double-clicked the left mouse button within the control                     $SNAME = _GUICtrlTreeView_GetText($contactlist, $idfrom)                     _debugprint($SNAME)                     _DebugPrint("$NM_DBLCLK" & @LF & "--> hWndFrom:" & @TAB & $hWndFrom & @LF & _                             "-->IDFrom:" & @TAB & $iIDFrom & @LF & _                             "-->Code:" & @TAB & $iCode) ;~                  Return 1 ; nonzero to not allow the default processing                     Return 0 ; zero to allow the default processing

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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