Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adding custom node class to the shape tool bar (Read 1347 times)
newbieDraw
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: Dec 22nd, 2011
Adding custom node class to the shape tool bar
Jan 8th, 2014 at 3:38pm
Print Post  
Hi Stoyo,

I have some custom node classes inherited from ShapeNode and I am presently using the NodeListView to perform drag/drop operation on the DiagramView. The custom nodes consist of an image and a text area that I draw by overriding the draw method under ShapeNode. Is there a way I can add these nodes to the ShapeToolBar?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adding custom node class to the shape tool bar
Reply #1 - Jan 8th, 2014 at 5:00pm
Print Post  
Hi,

ShapeToolBar can display only Shape objects. You could add some temporary / place-holder Shape to the toolbar to represent your custom nodes, and if you detect it was clicked in the ShapeClicked handler - do whatever you need with the custom nodes.

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