Click to See Complete Forum and Search --> : Picture1.pset(x,y) won't produce an unbroken line


maudie
July 20th, 1999, 04:58 AM
code:
MouseDown
Paintnow = True

MouseMove
Picture1.pset(x,y)

mouseUp
Paintnow = False

With a narrow drawwidth this produces a broken line on anything but very slow mousemovements.

Is there a way around this ?

Thanks R.................................

Ravi Kiran
July 20th, 1999, 05:55 AM
Becasue MouseMove is not triggered for every pixel movement of the mouse. However "interupt based" the mouse movement is, Windows is not a real time OS!, and it has otherthings to do as well!!

What you can do is draw small line segments each time you get a MouseMove event. (from your prev. point) You will atleast get a continuous line, if not a all-too-smooth line :-)

Ravi Kiran

maudie
July 20th, 1999, 12:19 PM
Ravi.... Thanks; Problem solved.

I don't seem to be able to RATE your replies but they are EXCELLENT !!!

Thanks again.

R:)-.......................................

Ravi Kiran
July 20th, 1999, 07:20 PM
Why?:-)

You should be able to see a "Rate This post" followed by a drop-down combo box with 4 ratings and a "Rate it" btn at the RHS bottom of the post!
Dont you?
May be you need to be logged-in to do that also?!!