line length

wxShape::GetLinePosition
int GetLinePosition(wxLineShape* line)

Gets the zero-based position of line in the list of lines for this shape.

What does this mean? What is the zero-based position of the line? And in
which list of lines? It only get one line as input!

Anyway, it always return zero!

What I need is the length of a line connected/attached to a shape. Any
ideas?

Thomas

Thomas Aanensen wrote:

wxShape::GetLinePosition
int GetLinePosition(wxLineShape* line)

Gets the zero-based position of line in the list of lines for this shape.

What does this mean? What is the zero-based position of the line? And in
which list of lines? It only get one line as input!

Shapes can have lines attached to them. It is probably refering to the position in the list of attached lines.

Anyway, it always return zero!

What I need is the length of a line connected/attached to a shape. Any
ideas?

No.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!