Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom AnchorPoint drawing and Shape (Read 1359 times)
ilafon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: May 24th, 2009
Custom AnchorPoint drawing and Shape
Jun 19th, 2009 at 2:22am
Print Post  
Hello,

I'm drawing custom AnchorPoints (MarkStyle = Custom && hooking on the DrawAnchorPoint event).

I'd like to use one of prefedined Shape for my AnchorPoint. But it seems that Shape objects can only be used with ShapeNode. There is no drawing method in the Shape class definition.

Is there a way to use a Shape object for AnchorPoint drawing, other than writing my own shape drawing code?

Thanks in advance for the information.

Isabelle.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom AnchorPoint drawing and Shape
Reply #1 - Jun 19th, 2009 at 6:41am
Print Post  
Hi,

You could create a ShapeNode without adding it to the diagram, and when you need to draw a shape somewhere, set the node's Bounds to that position and call its Draw(IGraphics) method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint