Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I draw a line joining 2 windows coordinates

Status
Not open for further replies.

ssv123

Programmer
Oct 7, 2003
6
US
Hi,
I am having (wx1,wy1)(wx2,wy2)(wx3,wy3)(wx4,wy4)Actually they are the coordinates of the square. I have these statements like
call moveto_w(wx1,wy1,wxy)
status = lineto_w(wx1,wy1)
call moveto_w(wx2,wy2,wxy)
status = lineto_w(wx2,wy2)
call moveto_w(wx3,wy3,wxy)
status = lineto_w(wx3,wy3)
call moveto_w(wx4,wy4,wxy)
status = lineto_w(wx4,wy4)

Now, how do I draw the lines and make a square.
????
 
Try

call moveto_w(wx1,wy1,wxy)
status = lineto_w(wx2,wy2)
status = lineto_w(wx3,wy3)
status = lineto_w(wx4,wy4)
status = lineto_w(wx1,wy1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top