JusGellin Posted October 27, 2007 Share Posted October 27, 2007 I'm trying to get more comfortable in using the ListView Control. But there seems to be a lot of differences between the Release and Beta. I would like to be able to just get used to using the Beta version.In the following I am trying to be able to click on the column header titles and get an event.I can do this in the release version:#include <GuiListView.au3> $Form1 = GUICreate("Remote Desktop", 552, 587, -936, 133) $listview1 = GUICtrlCreateListView ("col1 |col2|col3 ",10,10,200,150) GuiSetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ListView1 MsgBox(0,"Test","Success") EndSelect WendBut if I use the Beta version, I don't get an event. How can I make this work?#include <GuiListView.au3> $Form1 = GUICreate("Remote Desktop", 552, 587, -936, 133) $ListView1 = _GUICtrlListView_Create ($Form1,"col1 |col2|col3 ", 10,10,200,150 ) GuiSetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ListView1 MsgBox(0,"Test","Success") EndSelect WendThanks Link to comment Share on other sites More sharing options...
GaryFrost Posted October 27, 2007 Share Posted October 27, 2007 (edited) I'm trying to get more comfortable in using the ListView Control. But there seems to be a lot of differences between the Release and Beta. I would like to be able to just get used to using the Beta version. In the following I am trying to be able to click on the column header titles and get an event. I can do this in the release version: #include <GuiListView.au3> $Form1 = GUICreate("Remote Desktop", 552, 587, -936, 133) $listview1 = GUICtrlCreateListView ("col1 |col2|col3 ",10,10,200,150) GuiSetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ListView1 MsgBox(0,"Test","Success") EndSelect Wend But if I use the Beta version, I don't get an event. How can I make this work? #include <GuiListView.au3> $Form1 = GUICreate("Remote Desktop", 552, 587, -936, 133) $ListView1 = _GUICtrlListView_Create ($Form1,"col1 |col2|col3 ", 10,10,200,150 ) GuiSetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ListView1 MsgBox(0,"Test","Success") EndSelect Wend Thanks The internal "AutoIt" created ListView works the same on both Release and Beta, in the 1st example your using the "Internal" created ListView, in the 2nd your using the UDF created ListView, therefore the msg isn't caught internally by AutoIt. Edited October 27, 2007 by GaryFrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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