Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overview exception (Read 1228 times)
DConroy
YaBB Newbies
*
Offline



Posts: 12
Joined: Nov 1st, 2005
Overview exception
Apr 19th, 2007 at 1:49pm
Print Post  
Hi...

I've got an issue where I've got an overview control that serves many flowcharts.

As each flowchart is activated, the document of the overview is changed to the current overview.

If no flowcharts are open, overview.document is set to null.

If the document is not null, there's no problems.  But if it is and the user clicks on the control and drags the mouse to the edge of the control, an unhandled exception occurs.

Anyone have any ideas?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview exception
Reply #1 - Apr 19th, 2007 at 4:36pm
Print Post  
Hi,

The overview does not provide for a null Document, so you might create a temporary empty chart and assign it to the overview instead of null. E.g.

if (no flowcharts are open)
  ovw.Document = new FlowChart();

You might set the temporary chart's background to gray to indicate that this isn't an actual flowchart.

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