Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Click Range And Only Moveable Node (Read 1227 times)
kdr35
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 12th, 2010
Node Click Range And Only Moveable Node
Aug 21st, 2010 at 8:22am
Print Post  
ShapeNode Node = diagramTargetSelection.Factory.CreateShapeNode(X , Y, 1, 1);// node size will be very small
I dynamically add node in my diagram , I have some questions;

1. I want to disable resize property of nodes , nodes have constant size
And when I click a node , resize sign appears but i want to display only move sign.

2. My nodes are located on very near eachother ,I want to change click area of node. When I do double click on near about 5-10 pixel of one node
, double click doesnt work then diagram select near link. How to I can do link click range equal link size.
« Last Edit: Aug 21st, 2010 at 10:21am by kdr35 »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Click Range And Only Moveable Node
Reply #1 - Aug 22nd, 2010 at 1:01pm
Print Post  
Hi,

Set MinimumNodeSize to SizeF(1,1), or otherwise moving nodes with the mouse might not work.

1. Set EnabledHandles = AdjustmentHandles.Move and ShowDisabledHandles = false.

2. Set LinkHitDistance to a small value (but greater than 0) and use the GetNodeAt method that takes a 'float threshold' argument to select nodes in response to diagram.DoubleClicked.

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