--- Ken Ray <[EMAIL PROTECTED]> wrote: > If I'm reading you correctly, you just trap the > message, get the direction > of the arrowkey and process accordingly.
> on arrowKey pDir > if the shiftKey is down then put 10 into tIncr > else put 1 into tIncr > put the selectedObject into tObj > if tObj <> "" then > switch pDir > case "left" > set the left of tObj to (the left of tObj > - tIncr) > break > case "right" > set the left of tObj to (the left of tObj > + tIncr) > break > case "up" > set the top of tObj to (the top of tObj - > tIncr) > break > case "down" > set the top of tObj to (the top of tObj + > tIncr) > break > end switch > else > pass arrowkey > end if > end arrowKey > > Is this what you're looking for? yes it is, thanks. it just wasn't working with the shiftKey before. wouldn't go to the arrowkey handler, now OK. my solution uses the loc, but i like your lefts, tops approach better, the move commnd takes a x,y input so i just go with the loc for now for consistancy. incidently, this is a nice intro to the case, break control structure! Erik Hansen [EMAIL PROTECTED] http://www.erikhansen.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
