BeginPath / EndPath

Phil
11-06-2000, 04:19 PM
Hi,

I think these are the functions I want, I have a notion to use paths to trace a line using the mouse down, move and up events with say lineto. Must admit I don't know a great deal about this subject, if anyone has any experience they can share or can point me in the right direction it'll be very appreciated.
By the way I think I need to use the API function LineTo rather than using the line control. I have to trace lines on another control, an ActiveX map control.

Thanks a lot

Phil

Jared
11-12-2000, 11:14 PM
What I would do is use the controls MouseDown event and read the X and Y values into some array.

Then when I wanted to draw the line, I would use the API function "MoveToEX" to move the CurrentX and CurrentY to the start position. Then just do a "LineTo" to each of the following coordinates in the array.

Hope this helps.


Jared Hoylman

Please visit VB Overdrive at <A HREF="http://www.extreme-vb.net/vboverdrive/" target="_new">http://www.extreme-vb.net/vboverdrive/</A>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum