Creation code:
And while the Full Row Select works, the One Click Activate seems to be doing Hot Tracking, the row the cursor is over is changing font color.
Notify Case Code:
I get only three messages from the the $WM_NOTIFY checking;
Foxlist notify: -12 <- on startup.
Foxlist notify: -160 <- on startup.
Foxlist notify: -7 <- somewhere when opening the file and loading the list.
So I am overlooking something, but what?
Code:
CONTROL ADD LISTVIEW, hDlg, %IDLV_FOXLIST, _ "FoxList", _ 498, 26, 114, 110, _ %WS_CHILD OR %WS_VISIBLE OR %WS_TABSTOP OR _ %LVS_REPORT OR %LVS_SHOWSELALWAYS, _ %WS_EX_CLIENTEDGE OR %WS_EX_LEFT OR %WS_EX_RIGHTSCROLLBAR LISTVIEW SET STYLE hDlg, %IDLV_FOXLIST, %LVS_EX_FULLROWSELECT _ OR %LVS_EX_ONECLICKACTIVATE
Notify Case Code:
Code:
CASE %WM_NOTIFY IF ISTRUE isLoading THEN EXIT FUNCTION SELECT CASE CB.NMID CASE %IDTV_FOXTREE, %IDTV_IMPORTTREE ' this works, when using the treeview, ' notifies are processed CASE %IDLV_FOXLIST LOCAL pnmv AS NM_LISTVIEW POINTER #DEBUG PRINT "Foxlist notify: "& FORMAT$(CB.NMCODE) pnmv = CB.NMHDR SELECT CASE CB.NMCODE CASE %LVN_COLUMNCLICK #DEBUG PRINT "Foxlist Column:"& _ FORMAT$(@pnmv.iSubItem) &" clicked" CASE %LVN_ITEMCHANGED #DEBUG PRINT "Foxlist Row:"& _ FORMAT$(@pnmv.iSubItem) &":"& _ FORMAT$(@pnmv.iSubItem) &" clicked" END SELECT END SELECT
Foxlist notify: -12 <- on startup.
Foxlist notify: -160 <- on startup.
Foxlist notify: -7 <- somewhere when opening the file and loading the list.
So I am overlooking something, but what?
Comment