Click here to Skip to main content
15,897,090 members
Articles / Programming Languages / C++

What can be simpler than graphical primitives? Part 1

Rate me:
Please Sign up or sign in to vote.
4.96/5 (8 votes)
5 Mar 2013CPOL24 min read 24.8K   503   27  
This article is about the moving and resizing of different graphical primitives.
namespace GraphicalPrimitives
{
    partial class Form_Main
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System .ComponentModel .IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose (bool disposing)
        {
            if (disposing && (components != null))
            {
                components .Dispose ();
            }
            base .Dispose (disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent ()
        {
            this .menuMain = new System .Windows .Forms .MenuStrip ();
            this .miSpots = new System .Windows .Forms .ToolStripMenuItem ();
            this .miStraightSegment = new System .Windows .Forms .ToolStripMenuItem ();
            this .miSegment_ArbitraryAngle = new System .Windows .Forms .ToolStripMenuItem ();
            this .miSegment_OnLine = new System .Windows .Forms .ToolStripMenuItem ();
            this .miTriangles = new System .Windows .Forms .ToolStripMenuItem ();
            this .miChatPoly = new System .Windows .Forms .ToolStripMenuItem ();
            this .miAbout = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuMain .SuspendLayout ();
            this .SuspendLayout ();
            // 
            // menuMain
            // 
            this .menuMain .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miSpots,
            this.miStraightSegment,
            this.miTriangles,
            this.miChatPoly,
            this.miAbout});
            this .menuMain .Location = new System .Drawing .Point (0, 0);
            this .menuMain .Name = "menuMain";
            this .menuMain .Size = new System .Drawing .Size (873, 26);
            this .menuMain .TabIndex = 0;
            this .menuMain .Text = "menuStrip1";
            // 
            // miSpots
            // 
            this .miSpots .Name = "miSpots";
            this .miSpots .Size = new System .Drawing .Size (56, 22);
            this .miSpots .Text = "Spots";
            this .miSpots .Click += new System .EventHandler (this .Click_miSpots);
            // 
            // miStraightSegment
            // 
            this .miStraightSegment .DropDownItems .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miSegment_ArbitraryAngle,
            this.miSegment_OnLine});
            this .miStraightSegment .Name = "miStraightSegment";
            this .miStraightSegment .Size = new System .Drawing .Size (138, 22);
            this .miStraightSegment .Text = "Straight segments";
            // 
            // miSegment_ArbitraryAngle
            // 
            this .miSegment_ArbitraryAngle .Name = "miSegment_ArbitraryAngle";
            this .miSegment_ArbitraryAngle .Size = new System .Drawing .Size (200, 22);
            this .miSegment_ArbitraryAngle .Text = "Arbitrary angle...";
            this .miSegment_ArbitraryAngle .Click += new System .EventHandler (this .Click_miSegment_ArbitraryAngle);
            // 
            // miSegment_OnLine
            // 
            this .miSegment_OnLine .Name = "miSegment_OnLine";
            this .miSegment_OnLine .Size = new System .Drawing .Size (200, 22);
            this .miSegment_OnLine .Text = "On the line...";
            this .miSegment_OnLine .Click += new System .EventHandler (this .Click_miSegment_OnLine);
            // 
            // miTriangles
            // 
            this .miTriangles .Name = "miTriangles";
            this .miTriangles .Size = new System .Drawing .Size (78, 22);
            this .miTriangles .Text = "&Triangles";
            this .miTriangles .Click += new System .EventHandler (this .Click_miTriangles);
            // 
            // miChatPoly
            // 
            this .miChatPoly .Name = "miChatPoly";
            this .miChatPoly .Size = new System .Drawing .Size (77, 22);
            this .miChatPoly .Text = "&Polygons";
            this .miChatPoly .Click += new System .EventHandler (this .Click_miChatPoly);
            // 
            // miAbout
            // 
            this .miAbout .Name = "miAbout";
            this .miAbout .Size = new System .Drawing .Size (58, 22);
            this .miAbout .Text = "&About";
            this .miAbout .Click += new System .EventHandler (this .Click_miAbout);
            // 
            // Form_Main
            // 
            this .AutoScaleDimensions = new System .Drawing .SizeF (8F, 16F);
            this .AutoScaleMode = System .Windows .Forms .AutoScaleMode .Font;
            this .ClientSize = new System .Drawing .Size (873, 517);
            this .Controls .Add (this .menuMain);
            this .DoubleBuffered = true;
            this .MainMenuStrip = this .menuMain;
            this .MaximizeBox = false;
            this .MinimizeBox = false;
            this .Name = "Form_Main";
            this .ShowIcon = false;
            this .Text = "Graphical primitives";
            this .menuMain .ResumeLayout (false);
            this .menuMain .PerformLayout ();
            this .ResumeLayout (false);
            this .PerformLayout ();

        }

        #endregion

        private System .Windows .Forms .MenuStrip menuMain;
        private System .Windows .Forms .ToolStripMenuItem miSpots;
        private System .Windows .Forms .ToolStripMenuItem miStraightSegment;
        private System .Windows .Forms .ToolStripMenuItem miSegment_ArbitraryAngle;
        private System .Windows .Forms .ToolStripMenuItem miSegment_OnLine;
        private System .Windows .Forms .ToolStripMenuItem miTriangles;
        private System .Windows .Forms .ToolStripMenuItem miChatPoly;
        private System .Windows .Forms .ToolStripMenuItem miAbout;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions