Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Clearing the Diagram Area (Read 1152 times)
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Clearing the Diagram Area
May 31st, 2009 at 1:44pm
Print Post  
Stoyo

I use the diagram.clearall to clear all the nodes and links in my test program I have now loaded lanes, lanegrids and headers.

The diagram.clearall does not remove these new  items; is there a simple method for clearing the lanes, lanegrids and headers or can this be included in the diagram.clearall?

This would be usefull for resetting the diagram area back to a blank canvas.

Doug
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Clearing the Diagram Area
Reply #1 - Jun 1st, 2009 at 6:51am
Print Post  
Hi Doug,

Setting the LaneGrid's RowCount and ColumnCount to 0 should be the quickest way to reset it to blank state, and then you could add your default headers and lanes if needed.

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


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: Clearing the Diagram Area
Reply #2 - Jun 1st, 2009 at 10:37am
Print Post  
Stoyo

Thanks for that; it worked.

However I found another anomaly in my testing. When I create lanegrids and row/column headers it does not set the diagram.dirty=true flag.

In my test program I use thsi flag to determine if anything had been written to the diagram and prompt the user on whether they want to save or clear the diagram.

If you only created lanegrids with row/column headers with no other nodes then the flag would not be set to true and my test fails to clear the diagram

Hopefully this makes sense to you
Doug
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint