Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowChartX 1.4.1: Add box to box (Read 2737 times)
Christian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jul 22nd, 2008
FlowChartX 1.4.1: Add box to box
Jul 22nd, 2008 at 3:53pm
Print Post  
Hello!

I'm using FlowChartX 1.4.1.
The existing application has the feature to add a box to another box with drag&drop by user.
Now I want to do the same from the source code. I want to add a box to another box programatic. I tried sevaral ways but it did not work.
If I do getGroups to the flow chart there are no groups so i think a box with sub-boxes is not realized with groups. If I get the ContainedItems from a box I find the sub-boxes. But i'm not able to add boxes to the containing items (from source code, from gui by user it is possible). The containing items object is a group and i tried to add a box. this crashs.
Does someone know a solution?

Thanks for your help!!

Greetings

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChartX 1.4.1: Add box to box
Reply #1 - Jul 23rd, 2008 at 7:59am
Print Post  
Hi,

The Box and Table classes have PutInContainer and RemoveFromContainer methods, but I don't know if they are available in version 1.4.1.

Stoyan
  
Back to top
 
IP Logged
 
Christian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jul 22nd, 2008
Re: FlowChartX 1.4.1: Add box to box
Reply #2 - Jul 23rd, 2008 at 10:37am
Print Post  
Hello Stoyan,
thanks for your fast help!
In version 1.4.1 these methods are not available. I looked at IBoxItem and ITableItem.

Greetings

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChartX 1.4.1: Add box to box
Reply #3 - Jul 23rd, 2008 at 2:57pm
Print Post  
Hi Christian,

Why not upgrade then 8)

Unfortunately, there are no other means to add an item to the container programmatically, because containers manage their items through a hidden Group object, and not through the SubordinateGroup which has public access.

Or otherwise, if you have a version with the source code, I can send you the implementation for these methods.

Greetings,
Stoyan
  
Back to top
 
IP Logged
 
Christian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jul 22nd, 2008
Re: FlowChartX 1.4.1: Add box to box
Reply #4 - Jul 23rd, 2008 at 4:46pm
Print Post  
Hello Stoyan,
source code is not available. But currently I'm trying to implement a workaround. The situation is that way that the subboxes are already in the boxes and for an update mechanism I first tried to remove and then add them if necessary. Now I trie to let them into the boxes and only remove on demand. If this works, the problem is solved. Otherwise I ask my boss for a new license Smiley

Greetings

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