OnMouseDown
Posted: Sun May 01, 2011 3:19 pm
Hi,
I was hoping this piece of code would constantly run as long as I held the left mouse button down without me having to code anything further! But alas it does not! Is something blocking it from it re-iterating through the code? What should I do/look for?
Code: Select all
case "OnMouseDown"
if msg.id = #ARROWUP
if listerY <> 0
listerY = listerY - 1
drawUI(0)
endif
elseif msg.id = #ARROWDOWN
if listerY <> p_tableSize(listing$)-17 ; *** 17 is a temporary value ***
listerY = listerY + 1
drawUI(0)
endif
endif
wait(10) ; a tiny delay so the lister doesn't move up or down too quickly / would be useful if this value decreased the longer the
; button is held