コード例 #1
0
        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);
        }
コード例 #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;
            }
        }
コード例 #3
0
ファイル: SceneManager.cs プロジェクト: gdlprj/duscusys
 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;
     }
 }