Link to home
Start Free TrialLog in
Avatar of arijitbhowmik
arijitbhowmik

asked on

To retain a line on the screen.

I am trying to draw line between points LBUTTONDOWN and LBUTTONUP.But cannot retain the previous line when trying to draw the subsequent line.How can i retain the previous lines on the screen.
Avatar of VCGuru
VCGuru

could you post the relevant sections of your code please the LBUTTONDOWN and UP code?
ASKER CERTIFIED SOLUTION
Avatar of Norbert
Norbert
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Norbert is right, Why I wanted to post your code is this, Now normally if you are storing the point in button up event and using Lineto in down event the line is drawn. But if in these events if you are calling Invalidate(), then all the drawn lines dissapear, You'll have to have a mechanism to store these points and draw lines in OnDraw()