Пример #1
0
        // -------------------------------------------------
        public Form_RegPolyWithComments ()
        {
            InitializeComponent ();
            mover = new Mover (this);
            //Font = new Font ("Times New Roman", 14);

            string strTitle = "New comment";
            spaces = new Spaces (Convert .ToInt32 (Auxi_Geometry .MeasureString (this, strTitle) .Height));
            clrComment = Color .Blue;
            fontComment = Font;
            textNewComment .ForeColor = clrComment;
            textNewComment .Font = fontComment;

            polygon = new RegPolyWithComments (Auxi_Geometry .Middle (ClientRectangle), 140, 7, 0, Color .Yellow);

            btnCommentFont .Location = new Point (btnCommentClr .Right, btnCommentClr .Top);
            btnAdd .Location = new Point (btnCommentFont .Right + spaces .HorMin, btnCommentClr .Top);
            int minH_textNewComment = 60;
            textNewComment .Bounds = new Rectangle (btnCommentClr .Left, btnCommentClr .Top - (spaces .VerMin + minH_textNewComment),
                                                    btnAdd .Right - btnCommentClr .Left, minH_textNewComment);
            Rectangle rcFrame = Auxi_Geometry .FrameAroundControls (new Control [] { textNewComment, btnCommentClr, btnCommentFont, btnAdd }, spaces);
            groupNewCmnt = new Group (this, rcFrame, 
                                      new RectRange (rcFrame .Width, 4 * rcFrame .Width, rcFrame .Height, 3 * rcFrame .Height), 
                                      strTitle, MoveNewGroup);
            string [] cmnts = new string [] {"Comments ", "- add, move, rotate", 
                                             "Polygon ",  "- move, rotate, resize", 
                                             "Group ",    "- move, resize, use", 
                                            };
            info = new TwoColumnInfo (this, new Point (300, 350), cmnts);
            RenewMover ();
        }
Пример #2
0
 // -------------------------------------------------        CreateInfo
 private void CreateInfo (int cx, int cy)
 {
     info = new TwoColumnInfo (this, new Point (cx, cy), cmnts);
     info .BackColor = Color .FromArgb (225, 255, 255);
 }
Пример #3
0
 // -------------------------------------------------        CreateInfo
 private void CreateInfo (int cx, int cy)
 {
     info = new TwoColumnInfo (this, new Point (cx, cy), cmnts);
     info .BackColor = Color .LightYellow;
 }