I have a listview that is populated after a database query.
The listview has 4 columns (0-3).
I want for when the user clicks the listview, that I can get the value of column 4 of the row they clicked and do something with that data.
My problems is in the callback.
What API group do I need?
%LVN_ITEMCHANGED is not what I want because that will throw up a value for every item in the LV.
Is there something like %LVN_ITEMSELECTED?
I just don't see what I need in the API reference.
The listview has 4 columns (0-3).
I want for when the user clicks the listview, that I can get the value of column 4 of the row they clicked and do something with that data.
My problems is in the callback.
What API group do I need?
Code:
CASE %wm_notify udtNMListview = CBLPARAM SELECT CASE @udtNMListview.hdr.Code CASE %LVN_COLUMNCLICK ' column heading is clicked CASE %LVN_ITEMCHANGED ' row clicked lngIndex = ListView_GetNextItem( mainLV, - 1, %LVNI_SELECTED ) MSGBOX STR$(lngIndex) CALL ListView_GetItemText( mainLV, lngIndex, 3, aszText, SIZEOF( aszText )) msgbox aszText END SELECT
Is there something like %LVN_ITEMSELECTED?
I just don't see what I need in the API reference.
Comment