Canvas wiggle

Im trying to wiggle a canvas like a wrong password does. I set up a timer on the same window as the canvas and in the paint event i test for the error condition and if present i set the timer.enabled=true

I would just in the paint:
for i as integer = 1 to 2
g.drawpicture p,20,0,g.width,g.height, 0,0,p.width,p.height
//wait 250 (or so)
g.drawpicture p,0,0,g.width,g.height, 0,0,p.width,p.height
next

but how do you pass g? i set it to a property and the timer action seems to nil out the g and or p? Im not seeing how to access the graphics in the canvas. this has to be overlooking something really obvious

Ehh?

Without a description under which circumstances the canvas is wiggling I think you can’t get a proposal for any solution!

Canvas wiggle: by itself ?

a wiggle of the hips ?

More data is needed to eventually guess an answer… :wink:

I originally saw this topic without any posts. Just the timestamp. I think the original poster deleted the message once finding the answer. Alexander replied “Ehh?” to a dead topic that now looks like he’s the original poster.

Hal, where are-you ?

Right

To Emile:
the Discovery One spacecraft crashed on Neptune and HAL 9000 is no more