Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creating Compound Item (Read 1465 times)
maxnetpromo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Mar 5th, 2006
Creating Compound Item
Mar 18th, 2006 at 8:52am
Print Post  
I need to create an object consisting of several objects.

What i need exactly is to have a Box (representing a transformer) and connecting switches to it, using arrows.
I am doing that sucessfully, however i would like to "group these items" and make them look and behave like one object.

I want these features:
1. the arrow connecting them to be invisible.
2. itmes to be attached to each other.
3 None of the objects can be resized.
4. the objects move together (stay grouped), and ONLY when the "transformer" is moved.

Also... i am experimenting with anchor points used with box objects. Is there a way to make them permanently visible, and to uniquely identify them?

I want to be able to select them programmatically or visually and apply logic directly on them e.g finding the outgoing arrow and doing further logic on that (Switch of supply to a connecting cable for example). can it be done?


thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Creating Compound Item
Reply #1 - Mar 20th, 2006 at 6:24am
Print Post  
Hello Adrian,

- the arrow connecting them to be invisible.

Set Arrow.Visible = false.

- itmes to be attached to each other.

Use the Node.AttachTo method. First place the subordinated boxes at the location you need them relatively to the main box. Then call subBox.AttachTo(mainBox, ...).

- None of the objects can be resized.

box.EnabledHandles = Handles.None.

- the objects move together and ONLY when the "transformer" is moved

Node.AttachTo enables that.

- Is there a way to make them permanently visible ...

Set flowchart.ShowAnchors = Always and use AnchorPoint.Tag.

The anchor points are shared between objects so you cannot find point outgoing arrows directly. You will have to check all outgoing arrows of a node and check their OriginAnchor property.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint