Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Remove Box (Read 2507 times)
Frank@etc.be
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Dec 19th, 2005
Remove Box
Dec 19th, 2005 at 7:28am
Print Post  
Hi,

There is a bug in the removal of boxes.

If you delete a box from the 'Boxes' collection, it stays in the 'Objects' collection.

This means that even if you delete a box from the boxes collection, it stays painted because it is still in the 'objects' collection.

A manual remove in both collection solves the problem, but shouldn't this be automatic ?

Kind Regards
Frank Vanderlinden
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Remove Box
Reply #1 - Dec 19th, 2005 at 7:55am
Print Post  
Hi,

Better do not add or remove items directly to/from the Flowchart or Selection item collections. Instead use the provided methods, e.g. FlowChart.CreateBox or FlowChart.Add(new Box()), FlowChart.DeleteObject, etc.

DeleteObject does some more operations than removing the items from the collections, e.g. it creates an undo record, deletes arrows linked to a box, deletes groups, updates the document size, etc.

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