public UserControl1() { InitializeComponent(); textBox1 = new System.Windows.Forms.TextBox(); textBox1.Location = new System.Drawing.Point(0, 0); this.Controls.Add(this.textBox1); selectablePanel = new SelectablePanel(); selectablePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; selectablePanel.Location = new System.Drawing.Point(0, 25); selectablePanel.Size = new System.Drawing.Size(300, 150); selectablePanel.KeyDown += panel1_KeyDown; this.Controls.Add(this.selectablePanel); this.Size = new System.Drawing.Size(300, 200); }
public FormEditor() { InitializeComponent(); World_ = new World(); var drawPanel = new SelectablePanel(); drawPanel.BackgroundImage = Resources.Tile2; drawPanel.Location = new Point(0, 0); drawPanel.Name = "drawPanel"; drawPanel.TabIndex = 2; drawPanel.Paint += drawPanel_Paint; drawPanel.MouseClick += drawPanel_MouseClick; drawPanel.ClientSize = new Size(World_.Width, World_.Height); splitContainer1.Panel1.Controls.Add(drawPanel); propertyGrid1.SelectedObject = World_; }
/// <summary> /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas /// le contenu de cette méthode avec l'éditeur de code. /// </summary> private void InitializeComponent() { this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.panel1 = new FormWithUnity.SelectablePanel(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.button1 = new System.Windows.Forms.Button(); this.unityHWNDLabel = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.SuspendLayout(); // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(0, 0); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.panel1); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.richTextBox1); this.splitContainer1.Panel2.Controls.Add(this.button1); this.splitContainer1.Panel2.Controls.Add(this.unityHWNDLabel); this.splitContainer1.Size = new System.Drawing.Size(908, 478); this.splitContainer1.SplitterDistance = 529; this.splitContainer1.TabIndex = 1; // // panel1 // this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(529, 478); this.panel1.TabIndex = 1; this.panel1.TabStop = true; this.panel1.Resize += new System.EventHandler(this.panel1_Resize); // // richTextBox1 // this.richTextBox1.Location = new System.Drawing.Point(38, 44); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(282, 364); this.richTextBox1.TabIndex = 3; this.richTextBox1.Text = ""; this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); // // button1 // this.button1.Location = new System.Drawing.Point(38, 414); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(282, 52); this.button1.TabIndex = 2; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // unityHWNDLabel // this.unityHWNDLabel.AutoSize = true; this.unityHWNDLabel.Location = new System.Drawing.Point(3, 9); this.unityHWNDLabel.Name = "unityHWNDLabel"; this.unityHWNDLabel.Size = new System.Drawing.Size(35, 13); this.unityHWNDLabel.TabIndex = 1; this.unityHWNDLabel.Text = "label2"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(908, 478); this.Controls.Add(this.splitContainer1); this.Name = "Form1"; this.Text = "Form1"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.ResumeLayout(false); }