ListView SINGLE-click detection
- Posted by Andy Drummond <kestrelandy at xalt.co.uk> Oct 19, 2001
- 804 views
Dan et al, Reading back I just saw that the problem is in SINGLE-click detecting, not double click. So try this ... What I do is trap EVERY message in a trace(1) and see what sequence is likly to do what I want. this works fine for me, so it should for you to. atom LastLVpos -- Initialise to something, like -1 procedure ListView_onEvent ( int iMsg, atom wParm, atom lParm ) seq LVpos if iMsg = WM_PAINT then LVpos = getLVSelected(ListView) if length(LVpos) and LVpos[1] != LastLVpos then LastLVpos = LVpos[1] ShowSelected() end if end if end procedure Good luck, Andy