mbuechler
YaBB Newbies
Offline
![](https://mindfusion.eu/yabbfiles/avatars/blank.gif) I love YaBB 1G - SP1!
Posts: 39
Joined: Oct 21 st, 2009
|
Problems with Controlhosts - Anchor, Routing,...
Mar 18th, 2010 at 1:10pm
|
Print Post
|
Hi together.
I am working on an application where we use the object ControlHost. In this we show our own Control, where the User can interact. Unfortunately we have some problems in using other features with ControlHosts.
1.) When the Control is shown inside the ControlHost now Anchor is shown.
2.) When we try to draw a link from one host to another it is nessecary, that the control host is a littlebit bigger than the control, so we can draw the link from a free place of the host. Trying to draw a link from inside the control is not possible. So the user has to "aim" exactly betwee control an border of host.
3.) Routing algorithm of Flowchart does not really works with the controlhosts. With normal Boxes there is no problem. The Link is drawn arround boxes. But when there is a Controlhost, the link is not drawn around controlhosts.
Are there any tipps or advices we can use to solve these problems?
For understanding here is the creation of an controlhost. it based on the example "photobook"
ItemControl record = new ItemControl(); ControlHost photo = flowChart1.CreateControlHost(10, 10, 54, 37); photo.Control = record; photo.Tag = "Main"; record.Chost = photo; Group group = flowChart1.CreateGroup(photo); group.Tag = photo;
photo.CtrlMouseAction = EHostMouseAction.hmaSelectHost;
photo.AnchorPattern = new AnchorPattern(
new AnchorPoint[] { new AnchorPoint(0, 0, true, true, EMarkStyle.msRect), new AnchorPoint(0, 10, true, true, EMarkStyle.msRect), new AnchorPoint(10, 10, true, true, EMarkStyle.msRect), new AnchorPoint(10, 0, true, true, EMarkStyle.msRect) });
thanks for all help
|