ListView SINGLE-click detection

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu