Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Multi select with custom behavior (Read 3912 times)
rdwheeler
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: May 28th, 2008
Multi select with custom behavior
Aug 23rd, 2010 at 5:30pm
Print Post  
I have created my own BehaviorBase-derived class. I can't figure out how to let multi-selection via drag work (i.e., drag a box around nodes to select them) with my new class. What I need is when the user drags from an empty area, begin a multi-selection box. Similar to Behavior.DrawLinks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Multi select with custom behavior
Reply #1 - Aug 23rd, 2010 at 6:21pm
Print Post  
Hi,

return new InteractionState(Diagram.Selection, 8, Action.Create);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
rdwheeler
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: May 28th, 2008
Re: Multi select with custom behavior
Reply #2 - Aug 23rd, 2010 at 6:37pm
Print Post  
Thats it. Thanks Stoyan, I love your fast replies. So with htis code I can multi-select, but while doing so the cursor becomes CursorHint.Disallow. How can I get it to Pointer?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Multi select with custom behavior
Reply #3 - Aug 23rd, 2010 at 7:09pm
Print Post  
It should be shown only if there are no items intersecting with the selection rectangle. Isn't that what you are seeing, or do you want it a pointer even then?
  
Back to top
 
IP Logged
 
rdwheeler
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: May 28th, 2008
Re: Multi select with custom behavior
Reply #4 - Aug 23rd, 2010 at 9:30pm
Print Post  
I see. Okay I like the behavior as it is. Thanks.
  
Back to top
 
IP Logged
 
sledenev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Dec 16th, 2009
Re: Multi select with custom behavior
Reply #5 - Feb 11th, 2011 at 12:33pm
Print Post  
Stoyo wrote on Aug 23rd, 2010 at 7:09pm:
It should be shown only if there are no items intersecting with the selection rectangle. Isn't that what you are seeing, or do you want it a pointer even then?


Hi,
I need behavior like this, i.e. I want to be able to draw selection rectangle but withot cursor to become CursorHint.Disallow. How can I do it? Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Multi select with custom behavior
Reply #6 - Feb 11th, 2011 at 1:53pm
Print Post  
Hi,

You could change DisallowCursor to a pointer if you don't need the stop icon to show at all in any situation. Otherwise set OverrideCursor for the duration of selection.

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