Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Multi-select using click and drag (Read 2330 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Multi-select using click and drag
Jun 23rd, 2022 at 2:56pm
Print Post  
I can select multiple boxes in my chart using CTRL+click on each box - this gives me pic1. I can also draw a selection rectangle that stays inside the boundaries of the boxes and this seems to work although I think it's an undocumented feature (pic2). What users are used to is to draw a selection rectangle around the boxes to be selected (pic3). This does not seem to work. Is there a way of getting this to work also?

Thanks in advance.
DavidL
  

Pic1.PNG ( 2 KB | 84 Downloads )
Pic1.PNG
pic2.PNG ( 2 KB | 80 Downloads )
pic2.PNG
pic3.PNG ( 3 KB | 88 Downloads )
pic3.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Multi-select using click and drag
Reply #1 - Jun 23rd, 2022 at 4:48pm
Print Post  
It should also work when drawing the selection lasso around nodes. Check if you are not preventing that from Diagram.NodeSelecting event handler.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: Multi-select using click and drag
Reply #2 - Jun 24th, 2022 at 3:26pm
Print Post  
No, I'm not actually handling the NodeSelecting event.
DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Multi-select using click and drag
Reply #3 - Jun 27th, 2022 at 9:26am
Print Post  
Also check if not clearing selection from SelectionChanged event handler.

That works in the control's demo and sample projects otherwise. You could save empty diagram XML from one of them and from your application, and compare the files (e.g. using SDK's windiff tool) to see if differing property values aren't affecting selection behavior.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: Multi-select using click and drag
Reply #4 - Jun 27th, 2022 at 3:30pm
Print Post  
I was actually clearing the selection in the mouse click event handler for some reason now lost in time. Problem now fixed. Thanks for your help.

DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint