Hi,

REALbasic 2007r1 Pro for Mac OS X 10.4.9


Say the following code (not complete, but it does not matter)

  // Fills the Points array
  Points(1) =  10  // X of Point 1
  Points(2) =  10  // Y of Point 1
  Points(3) =  75  // X of Point 2
  Points(4) =  30  // Y of Point 2
  Points(5) =  10  // X of Point 3
  Points(6) = 125  // Y of Point 3
  
  // Draw the PolyGon Border (Triangle)
  g.ForeColor = RGB(255,200,100) // A kind of yellow
  
  // Draw the lines
  g.DrawLine Points(1),Points(2),Points(3),Points(4)
  g.DrawLine Points(3),Points(4),Points(5),Points(6)
  g.DrawLine Points(5),Points(6),Points(1),Points(2)


The question is:

How do I compute the width of each of the three lines ?


TIA,

Emile

PS: Nearly 3h10 and I am still awaken... I'd better not ask questions like that 
so late in the night...
[I was right above, the awaken was... difficult!]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to