Sign in to follow this  
Followers 0
LordBoling

ListView Item Clicked help

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

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