private void InitializeComponent() { this.m_tb_snap_distance = new Rylogic.Gui.WinForms.ValueBox(); this.m_lbl_snap_distance = new System.Windows.Forms.Label(); this.m_chk_verts = new System.Windows.Forms.CheckBox(); this.m_chk_edges = new System.Windows.Forms.CheckBox(); this.m_chk_faces = new System.Windows.Forms.CheckBox(); this.m_chk_point0 = new System.Windows.Forms.CheckBox(); this.m_chk_point1 = new System.Windows.Forms.CheckBox(); this.m_table0 = new System.Windows.Forms.TableLayoutPanel(); this.m_panel0 = new System.Windows.Forms.Panel(); this.m_panel_spot_colour = new System.Windows.Forms.Panel(); this.m_lbl_spot_colour = new System.Windows.Forms.Label(); this.m_panel1 = new System.Windows.Forms.Panel(); this.m_cb_space = new Rylogic.Gui.WinForms.ComboBox(); this.m_grid_measurement = new Rylogic.Gui.WinForms.DataGridView(); this.m_lbl_measurements = new System.Windows.Forms.Label(); this.m_table0.SuspendLayout(); this.m_panel0.SuspendLayout(); this.m_panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_grid_measurement)).BeginInit(); this.SuspendLayout(); // // m_tb_snap_distance // this.m_tb_snap_distance.BackColor = System.Drawing.Color.White; this.m_tb_snap_distance.BackColorInvalid = System.Drawing.Color.White; this.m_tb_snap_distance.BackColorValid = System.Drawing.Color.White; this.m_tb_snap_distance.CommitValueOnFocusLost = true; this.m_tb_snap_distance.ForeColor = System.Drawing.Color.Gray; this.m_tb_snap_distance.ForeColorInvalid = System.Drawing.Color.Gray; this.m_tb_snap_distance.ForeColorValid = System.Drawing.Color.Black; this.m_tb_snap_distance.Location = new System.Drawing.Point(13, 19); this.m_tb_snap_distance.Name = "m_tb_snap_distance"; this.m_tb_snap_distance.Size = new System.Drawing.Size(107, 20); this.m_tb_snap_distance.TabIndex = 0; this.m_tb_snap_distance.UseValidityColours = true; this.m_tb_snap_distance.Value = null; // // m_lbl_snap_distance // this.m_lbl_snap_distance.AutoSize = true; this.m_lbl_snap_distance.Location = new System.Drawing.Point(2, 3); this.m_lbl_snap_distance.Name = "m_lbl_snap_distance"; this.m_lbl_snap_distance.Size = new System.Drawing.Size(80, 13); this.m_lbl_snap_distance.TabIndex = 1; this.m_lbl_snap_distance.Text = "Snap Distance:"; // // m_chk_verts // this.m_chk_verts.AutoSize = true; this.m_chk_verts.Location = new System.Drawing.Point(139, 3); this.m_chk_verts.Name = "m_chk_verts"; this.m_chk_verts.Size = new System.Drawing.Size(64, 17); this.m_chk_verts.TabIndex = 1; this.m_chk_verts.Text = "Vertices"; this.m_chk_verts.UseVisualStyleBackColor = true; // // m_chk_edges // this.m_chk_edges.AutoSize = true; this.m_chk_edges.Location = new System.Drawing.Point(139, 22); this.m_chk_edges.Name = "m_chk_edges"; this.m_chk_edges.Size = new System.Drawing.Size(56, 17); this.m_chk_edges.TabIndex = 2; this.m_chk_edges.Text = "Edges"; this.m_chk_edges.UseVisualStyleBackColor = true; // // m_chk_faces // this.m_chk_faces.AutoSize = true; this.m_chk_faces.Location = new System.Drawing.Point(139, 41); this.m_chk_faces.Name = "m_chk_faces"; this.m_chk_faces.Size = new System.Drawing.Size(55, 17); this.m_chk_faces.TabIndex = 3; this.m_chk_faces.Text = "Faces"; this.m_chk_faces.UseVisualStyleBackColor = true; // // m_chk_point0 // this.m_chk_point0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_chk_point0.Appearance = System.Windows.Forms.Appearance.Button; this.m_chk_point0.Location = new System.Drawing.Point(3, 66); this.m_chk_point0.Name = "m_chk_point0"; this.m_chk_point0.Size = new System.Drawing.Size(115, 40); this.m_chk_point0.TabIndex = 0; this.m_chk_point0.Text = "Start Point"; this.m_chk_point0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.m_chk_point0.UseVisualStyleBackColor = true; // // m_chk_point1 // this.m_chk_point1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_chk_point1.Appearance = System.Windows.Forms.Appearance.Button; this.m_chk_point1.Location = new System.Drawing.Point(124, 66); this.m_chk_point1.Name = "m_chk_point1"; this.m_chk_point1.Size = new System.Drawing.Size(116, 40); this.m_chk_point1.TabIndex = 1; this.m_chk_point1.Text = "End Point"; this.m_chk_point1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.m_chk_point1.UseVisualStyleBackColor = true; // // m_table0 // this.m_table0.ColumnCount = 2; this.m_table0.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.m_table0.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.m_table0.Controls.Add(this.m_chk_point1, 1, 1); this.m_table0.Controls.Add(this.m_chk_point0, 0, 1); this.m_table0.Controls.Add(this.m_panel0, 0, 0); this.m_table0.Controls.Add(this.m_panel1, 0, 2); this.m_table0.Dock = System.Windows.Forms.DockStyle.Fill; this.m_table0.Location = new System.Drawing.Point(0, 0); this.m_table0.Margin = new System.Windows.Forms.Padding(0); this.m_table0.Name = "m_table0"; this.m_table0.RowCount = 3; this.m_table0.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_table0.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_table0.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.m_table0.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.m_table0.Size = new System.Drawing.Size(243, 330); this.m_table0.TabIndex = 8; // // m_panel0 // this.m_panel0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_table0.SetColumnSpan(this.m_panel0, 2); this.m_panel0.Controls.Add(this.m_panel_spot_colour); this.m_panel0.Controls.Add(this.m_lbl_spot_colour); this.m_panel0.Controls.Add(this.m_lbl_snap_distance); this.m_panel0.Controls.Add(this.m_chk_faces); this.m_panel0.Controls.Add(this.m_tb_snap_distance); this.m_panel0.Controls.Add(this.m_chk_edges); this.m_panel0.Controls.Add(this.m_chk_verts); this.m_panel0.Location = new System.Drawing.Point(0, 0); this.m_panel0.Margin = new System.Windows.Forms.Padding(0); this.m_panel0.Name = "m_panel0"; this.m_panel0.Size = new System.Drawing.Size(243, 63); this.m_panel0.TabIndex = 8; // // m_panel_spot_colour // this.m_panel_spot_colour.BackColor = System.Drawing.Color.Aqua; this.m_panel_spot_colour.Location = new System.Drawing.Point(74, 43); this.m_panel_spot_colour.Name = "m_panel_spot_colour"; this.m_panel_spot_colour.Size = new System.Drawing.Size(46, 17); this.m_panel_spot_colour.TabIndex = 5; // // m_lbl_spot_colour // this.m_lbl_spot_colour.AutoSize = true; this.m_lbl_spot_colour.Location = new System.Drawing.Point(3, 44); this.m_lbl_spot_colour.Name = "m_lbl_spot_colour"; this.m_lbl_spot_colour.Size = new System.Drawing.Size(65, 13); this.m_lbl_spot_colour.TabIndex = 4; this.m_lbl_spot_colour.Text = "Spot Colour:"; // // m_panel1 // this.m_panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_table0.SetColumnSpan(this.m_panel1, 2); this.m_panel1.Controls.Add(this.m_cb_space); this.m_panel1.Controls.Add(this.m_grid_measurement); this.m_panel1.Controls.Add(this.m_lbl_measurements); this.m_panel1.Location = new System.Drawing.Point(0, 109); this.m_panel1.Margin = new System.Windows.Forms.Padding(0); this.m_panel1.Name = "m_panel1"; this.m_panel1.Size = new System.Drawing.Size(243, 221); this.m_panel1.TabIndex = 9; // // m_cb_space // this.m_cb_space.BackColorInvalid = System.Drawing.Color.White; this.m_cb_space.BackColorValid = System.Drawing.Color.White; this.m_cb_space.CommitValueOnFocusLost = true; this.m_cb_space.DisplayProperty = null; this.m_cb_space.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cb_space.ForeColorInvalid = System.Drawing.Color.Gray; this.m_cb_space.ForeColorValid = System.Drawing.Color.Black; this.m_cb_space.FormattingEnabled = true; this.m_cb_space.Location = new System.Drawing.Point(85, 3); this.m_cb_space.Name = "m_cb_space"; this.m_cb_space.PreserveSelectionThruFocusChange = false; this.m_cb_space.Size = new System.Drawing.Size(117, 21); this.m_cb_space.TabIndex = 0; this.m_cb_space.UseValidityColours = true; this.m_cb_space.Value = null; // // m_grid_measurement // this.m_grid_measurement.AllowUserToAddRows = false; this.m_grid_measurement.AllowUserToDeleteRows = false; this.m_grid_measurement.AllowUserToResizeRows = false; this.m_grid_measurement.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_grid_measurement.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.m_grid_measurement.BackgroundColor = System.Drawing.SystemColors.Window; this.m_grid_measurement.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.m_grid_measurement.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.m_grid_measurement.ColumnHeadersVisible = false; this.m_grid_measurement.Location = new System.Drawing.Point(0, 27); this.m_grid_measurement.Margin = new System.Windows.Forms.Padding(0); this.m_grid_measurement.Name = "m_grid_measurement"; this.m_grid_measurement.ReadOnly = true; this.m_grid_measurement.RowHeadersVisible = false; this.m_grid_measurement.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.m_grid_measurement.Size = new System.Drawing.Size(243, 194); this.m_grid_measurement.TabIndex = 1; // // m_lbl_measurements // this.m_lbl_measurements.AutoSize = true; this.m_lbl_measurements.Location = new System.Drawing.Point(0, 6); this.m_lbl_measurements.Name = "m_lbl_measurements"; this.m_lbl_measurements.Size = new System.Drawing.Size(79, 13); this.m_lbl_measurements.TabIndex = 2; this.m_lbl_measurements.Text = "Measurements:"; // // MeasurementUI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.m_table0); this.MinimumSize = new System.Drawing.Size(205, 180); this.Name = "MeasurementUI"; this.Size = new System.Drawing.Size(243, 330); this.m_table0.ResumeLayout(false); this.m_panel0.ResumeLayout(false); this.m_panel0.PerformLayout(); this.m_panel1.ResumeLayout(false); this.m_panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_grid_measurement)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.m_lbl_info = new System.Windows.Forms.Label(); this.m_btn_ok = new System.Windows.Forms.Button(); this.m_btn_cancel = new System.Windows.Forms.Button(); this.m_tt = new System.Windows.Forms.ToolTip(this.components); this.m_cb_value = new Rylogic.Gui.WinForms.ComboBox(); this.m_tb_value = new Rylogic.Gui.WinForms.ValueBox(); this.SuspendLayout(); // // m_lbl_info // this.m_lbl_info.AutoSize = true; this.m_lbl_info.Location = new System.Drawing.Point(12, 10); this.m_lbl_info.Name = "m_lbl_info"; this.m_lbl_info.Size = new System.Drawing.Size(118, 13); this.m_lbl_info.TabIndex = 1; this.m_lbl_info.Text = "Please choose a name:"; // // m_btn_ok // this.m_btn_ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.m_btn_ok.DialogResult = System.Windows.Forms.DialogResult.OK; this.m_btn_ok.Location = new System.Drawing.Point(127, 52); this.m_btn_ok.Name = "m_btn_ok"; this.m_btn_ok.Size = new System.Drawing.Size(75, 23); this.m_btn_ok.TabIndex = 2; this.m_btn_ok.Text = "OK"; this.m_btn_ok.UseVisualStyleBackColor = true; // // m_btn_cancel // this.m_btn_cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.m_btn_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_btn_cancel.Location = new System.Drawing.Point(208, 52); this.m_btn_cancel.Name = "m_btn_cancel"; this.m_btn_cancel.Size = new System.Drawing.Size(75, 23); this.m_btn_cancel.TabIndex = 3; this.m_btn_cancel.Text = "Cancel"; this.m_btn_cancel.UseVisualStyleBackColor = true; // // m_tt // this.m_tt.ShowAlways = true; // // m_cb_options // this.m_cb_value.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_cb_value.BackColor = System.Drawing.Color.White; this.m_cb_value.BackColorInvalid = System.Drawing.Color.White; this.m_cb_value.BackColorValid = System.Drawing.Color.White; this.m_cb_value.CommitValueOnFocusLost = true; this.m_cb_value.DisplayProperty = null; this.m_cb_value.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cb_value.ForeColor = System.Drawing.Color.Gray; this.m_cb_value.ForeColorInvalid = System.Drawing.Color.Gray; this.m_cb_value.ForeColorValid = System.Drawing.Color.Black; this.m_cb_value.FormattingEnabled = true; this.m_cb_value.Location = new System.Drawing.Point(12, 26); this.m_cb_value.Name = "m_cb_options"; this.m_cb_value.PreserveSelectionThruFocusChange = false; this.m_cb_value.Size = new System.Drawing.Size(271, 21); this.m_cb_value.TabIndex = 4; this.m_cb_value.UseValidityColours = true; this.m_cb_value.Value = null; // // m_tb_value // this.m_tb_value.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_tb_value.BackColor = System.Drawing.Color.White; this.m_tb_value.BackColorInvalid = System.Drawing.Color.White; this.m_tb_value.BackColorValid = System.Drawing.Color.White; this.m_tb_value.CommitValueOnFocusLost = true; this.m_tb_value.ForeColor = System.Drawing.Color.Gray; this.m_tb_value.ForeColorInvalid = System.Drawing.Color.Gray; this.m_tb_value.ForeColorValid = System.Drawing.Color.Black; this.m_tb_value.Location = new System.Drawing.Point(12, 26); this.m_tb_value.Name = "m_tb_value"; this.m_tb_value.Size = new System.Drawing.Size(271, 20); this.m_tb_value.TabIndex = 5; this.m_tb_value.UseValidityColours = true; this.m_tb_value.Value = null; // // PromptForm // this.AcceptButton = this.m_btn_ok; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.m_btn_cancel; this.ClientSize = new System.Drawing.Size(295, 82); this.Controls.Add(this.m_tb_value); this.Controls.Add(this.m_btn_cancel); this.Controls.Add(this.m_btn_ok); this.Controls.Add(this.m_lbl_info); this.Controls.Add(this.m_cb_value); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "PromptForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Choose a Name"; this.ResumeLayout(false); this.PerformLayout(); }