LordBoling Posted June 30, 2011 Posted June 30, 2011 I have a GUI with a ListView populated by an array. I need the Gui to update with more controls when the user clicks on an item in the list. However I have no clue how to know when the user clicks on an item. If anyone has any suggestions I would appreciate it. Thanks. Here is the Gui if you need it. $Test = GUICreate("Test", 413, 298, 524, 167) $ListView1 = GUICtrlCreateListView("Qty|Description|Part Number|Total", 0, 0, 266, 129) _GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_TRACKSELECT)) _GUICtrlListView_AddArray($ListView1,$oProd) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
PsaltyDS Posted July 1, 2011 Posted July 1, 2011 You'll have to handle the WM_NOTIFY messages. There are examples already posted. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
LordBoling Posted July 6, 2011 Author Posted July 6, 2011 Thank you. Looks to be exactly what I am looking for. Now off to research how to use it. Thanks again. Your suggestions for others have been very useful in my coding projects. I appreciate your helpfulness.
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