Jump to content

ListView Item Clicked help


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...