Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Set and Get Coordinates of boxes/arrows (Read 3964 times)
lolo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 26th, 2005
Set and Get Coordinates of boxes/arrows
Aug 26th, 2005 at 1:53am
Print Post  
How do i display boxes and arrows based on information stored in database?

for example, i stored the X,Y position of the box/arrow as integers in database, and then when the form loads, the box will be loaded based on position in the database....

Please help. Thanks
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Set and Get Coordinates of boxes/arrows
Reply #1 - Aug 26th, 2005 at 12:05pm
Print Post  
The coordinates of boxes can be set using their BoundingRect property. E.g.

box.BoundingRect = new RectangleF(x, y, width, height)

To set the coordinates of arrow points, use the ControlPoints collection and call UpdateFromPoints:

arr.ControlPoints(0) = New PointF(x0, y0)
arr.ControlPoints(1) = New PointF(x1, y1)
arr.UpdateFromPoints()
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint