Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Customising of selection rectangle (Read 1762 times)
roman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 8th, 2011
Customising of selection rectangle
Mar 2nd, 2011 at 1:24pm
Print Post  
Hi Stoyo

We've got some problems, while multiselecting DiagramItems. Sometimes we get an OutOfMemory-Exception when drawing the selection-rectangle repeatedly.

According to this post:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=126344984...
I'm assuming it could have to do with the dashed border of the selection rectangle.
If so, is there any chance to customise the selection rectangle. For example, using a continuous border instead.

Thanks in advance
Roman
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customising of selection rectangle
Reply #1 - Mar 2nd, 2011 at 1:56pm
Print Post  
Hi Roman,

Are you getting 'first-chance" or uncaught exception? The control should be catching it internally when drawing the selection border. You can change the border pen like this:

diagram.Selection.Pen = new MindFusion.Drawing.Pen(Color.FromArgb(100, Color.Blue), 1);

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


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 8th, 2011
Re: Customising of selection rectangle
Reply #2 - Mar 2nd, 2011 at 2:54pm
Print Post  
Hi Stoyo

It's a first chance exception and you're right, it's handled inside the control.
Seems like i've decided too fast 8).

Anyway, thanks for the reply and for sorting this out.

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