public void SetBounds()
        {
            var clustOrg = cluster.boundsProvider().TopLeft;

            if (text != null)
            {
                text.SetPosForCluster(clustOrg.X + textX,
                                      clustOrg.Y + textY);
            }

            if (_freeDraw != null)
            {
                _freeDraw.SetPosForCluster(clustOrg.X + freeDrawX,
                                           clustOrg.Y + freeDrawY);
            }

            //btn draw
            Canvas.SetLeft(btnDraw, clustOrg.X + 180);
            Canvas.SetTop(btnDraw, clustOrg.Y - 50);

            //btn type
            Canvas.SetLeft(btnType, clustOrg.X + 270);
            Canvas.SetTop(btnType, clustOrg.Y - 50);
        }
Beispiel #2
0
        void CaptionCreationRequested(CaptionType type, VdCluster cluster)
        {
            BeginClusterCaption(cluster, type);
            switch (type)
            {
            case CaptionType.FreeDraw:
                EnterShapeCreationMode(VdShapeType.FreeForm);
                break;

            case CaptionType.Text:
                //emulate text creation
                _palette.shapeType = VdShapeType.Text;
                EnterShapeCreationMode(VdShapeType.Text);
                var clustBounds = cluster.boundsProvider();
                InpDeviceDown(new Point(clustBounds.X + 140, clustBounds.Y - 160), null);
                break;
            }
        }
Beispiel #3
0
 void CaptionCreationRequested(CaptionType type, VdCluster cluster)
 {
     BeginClusterCaption(cluster, type);
     switch (type)
     {
         case CaptionType.FreeDraw:
             EnterShapeCreationMode(VdShapeType.FreeForm);
             break;
         case CaptionType.Text:
             //emulate text creation              
             _palette.shapeType = VdShapeType.Text;
             EnterShapeCreationMode(VdShapeType.Text);                    
             var clustBounds = cluster.boundsProvider();
             InpDeviceDown(new Point(clustBounds.X + 140, clustBounds.Y- 160), null);                   
             break;
     }
 }