Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic x/y-points (Read 3871 times)
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
x/y-points
Sep 8th, 2005 at 9:18am
Print Post  
next question  Smiley

I get my x and y points from a database.

like

float x=node.X;->175,48
float y=node.Y;-> 125,08

Box b = _flowChart.CreateBox(x, y, 15, 15);

If I take the same worths for my listBoxes. the controlls have other worth. how can it be?

like
listBox.Top = (int)b.BoundingRect.Top;->4,2
listBox.Left = (int)b.BoundingRect.Left;->62,44
on this way the position for the listBoxes are not the same like the nodes

where is the error?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: x/y-points
Reply #1 - Sep 8th, 2005 at 9:45am
Print Post  
By default FlowChart.NET measures stuff in millimeters, as set in the MeasureUnit property. So you can either set MeasureUnit to Pixels or use the flowchart's DocToClient method to convert the box coordinates to form coordinates.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint