Sign in to follow this  
Followers 0
Psibernetic

GUIRegisterMsg() Help

2 posts in this topic

I am checking for the double click event using this function...I wrote a UDF for it like it says I need to...I got confused in the help file with DLL structs tho... can any one clear up my confusion PLZ...

CODE

func psi_DetectDblClick()

$psi_SelectedItemListView=_GUICtrlListViewGetCurSel($xHiddenListView)

Select

Case $psi_SelectedItemListView<>-1

$psi_LonePath=_GUICtrlListViewGetItemText($xHiddenListView, $psi_SelectedItemListView,1)

$psi_Filename=_GUICtrlListViewGetItemText($xHiddenListView, $psi_SelectedItemListView,0)

If $psi_Filename<>"N/A" Then

$psi_FullPath=$psi_LonePath & $psi_Filename

GUICtrlSetData($xFilePath, $psi_FullPath)

EndIf

EndSelect

EndFunc


[sup]Psibernetic[/sup]My Creations:X-HideSecuracy

Share this post


Link to post
Share on other sites



Wow ok I found a much easier solution to checking if a listview Item was clicked

CODE

If GUIGetMsg()=$GUI_EVENT_PRIMARYDOWN then

;in here do ur checking the $GUI_EVENT_PRIMARYDOWN is the event returned when u left clck on ur GUI so just see if an Item is selected

endif


[sup]Psibernetic[/sup]My Creations:X-HideSecuracy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0