DirtDBaK Posted July 27, 2007 Share Posted July 27, 2007 i have a media player that i have been working on, im not very good at puting together the gui, but it works for me, any ways i want detailed information sorted in a listview but if i double click it nothing happens how can i fix this? If you want my source its http://65.185.106.128%20/DDB/Source.txt hope someone can help... [center][/center] Link to comment Share on other sites More sharing options...
Zedna Posted July 27, 2007 Share Posted July 27, 2007 script snippets: GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events") Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam) #forceref $hWndGUI, $MsgID, $wParam Local $tagNMHDR, $event If $wParam = $ListView1 Then $tagNMHDR = DllStructCreate("int;int;int", $lParam) If @error Then Return $event = DllStructGetData($tagNMHDR, 3) If $event = $NM_DBLCLK Then OnDoubleclick() EndIf EndFunc Func OnDoubleclick() $col1 = _GUICtrlListViewGetItemText($ListView1,_GUICtrlListViewGetCurSel($ListView1),0) If $col1 = -1 Then Return ; do what you want here ... EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ChrisL Posted July 27, 2007 Share Posted July 27, 2007 I can't remember whi wrote this maybe gafrost? expandcollapse popupGlobal Const $WM_NOTIFY = 0x004E Global $debug = 1 #include <GuiConstants.au3> $Form1 = GUICreate("", 633, 467, -1, -1) ;Main listview which accepts droped items $ListView1 = GUICtrlCreateListView("Stuff|Stuff|Stuff|and more stuff", 30, 54, 573, 300,-1) GUICtrlSendMsg($ListView1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES) GUISetState() GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events") Do Sleep (10) Until GuiGetMsg() = $GUI_EVENT_CLOSE Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam) #forceref $hWndGUI, $MsgID, $wParam Local Const $NM_FIRST = 0 Local Const $NM_CLICK = ($NM_FIRST - 2) Local Const $NM_DBLCLK = ($NM_FIRST - 3) Local $tagNMHDR, $event, $hwndFrom, $code $tagNMHDR = DllStructCreate("int;int;int", $lParam);NMHDR (hwndFrom, idFrom, code) If @error Then Return $event = DllStructGetData($tagNMHDR, 3) Select Case $wParam = $ListView1 Select Case $event = $NM_CLICK ListView_Click() Case $event = $NM_DBLCLK ListView_DoubleClick() EndSelect EndSelect $tagNMHDR = 0 $event = 0 $lParam = 0 EndFunc ;==>WM_Notify_Events Func ListView_Click() ;---------------------------------------------------------------------------------------------- ConsoleWrite("$NM_CLICK" & @crlf) ;---------------------------------------------------------------------------------------------- EndFunc ;==>ListView_Click Func ListView_DoubleClick() ;---------------------------------------------------------------------------------------------- ConsoleWrite("$NM_DBLCLK"& @crlf) ;---------------------------------------------------------------------------------------------- EndFunc ;==>ListView_DoubleClick [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
John117 Posted July 28, 2007 Share Posted July 28, 2007 posted in the same forum about ten minutes before your question, and still sitting on page one! http://www.autoitscript.com/forum/index.php?showtopic=50202 Link to comment Share on other sites More sharing options...
DirtDBaK Posted July 28, 2007 Author Share Posted July 28, 2007 thnaks for the help ill try it out! [center][/center] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now