Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hiding the transparent gray selection rectangle (Read 3584 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Hiding the transparent gray selection rectangle
Oct 23rd, 2009 at 7:16am
Print Post  
Hi,

I need to diable the visibilty of the selection rectangle(transparent gray colored) which appears when we want to select a range of node on diagram.

What property need to be set for it..??

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hiding the transparent gray selection rectangl
Reply #1 - Oct 23rd, 2009 at 8:11am
Print Post  
Set the Diagram.Selection.Brush property to SolidColorBrush(Color.Transparent).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Hiding the transparent gray selection rectangl
Reply #2 - Oct 23rd, 2009 at 8:24am
Print Post  
Hi,

Thanks for yoyr reply.

But this will set the background of the item which is selected.

I want to remove the visibility of the rectangle which appear when we click on any blank area of diagram and drag the mouse to some other location(on diagram such taht it covers some nodes within it) to select multiple nodes.!!!!

This is a TRANSPARENT GRAY SHAPE...!!!

I need to off the visibility of this selection rectangle.

How could i do this..!!??
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hiding the transparent gray selection rectangl
Reply #3 - Oct 23rd, 2009 at 8:31am
Print Post  
This doesn't change the selected items, only the color of the selection rectangle.
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Hiding the transparent gray selection rectangl
Reply #4 - Oct 23rd, 2009 at 9:02am
Print Post  
Hi Stoyo,

Thanks,
It Worked....  Cheesy
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Hiding the transparent gray selection rectangl
Reply #5 - Oct 29th, 2009 at 12:55pm
Print Post  
Hi Stoyo,

What if at some point in code I want to change back to the default selection rectangle which used to come before making it transparent.

What need to be set for it.!!!

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hiding the transparent gray selection rectangl
Reply #6 - Oct 29th, 2009 at 1:43pm
Print Post  
Set it to new SolidColorBrush(Color.FromArgb(75, c.R, c.G, c.B)), where c = SystemColors.HighlightBrush.Color.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Hiding the transparent gray selection rectangl
Reply #7 - Oct 29th, 2009 at 1:57pm
Print Post  
Thanks Stoyo

It worked too.....Cheesy

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