private void KryptonColourChooser2_Load(object sender, EventArgs e) { // Turn on double-buffering, so the form looks better. this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); // These properties are set in design view, as well, but they // have to be set to false in order for the Paint // event to be able to display their contents. // Never hurts to make sure they're invisible. pnlSelectedColour.Visible = false; pnlBrightness.Visible = false; pnlColour.Visible = false; // Calculate the coordinates of the three // required regions on the form. Rectangle SelectedColourRectangle = new Rectangle(pnlSelectedColour.Location, pnlSelectedColour.Size); Rectangle BrightnessRectangle = new Rectangle(pnlBrightness.Location, pnlBrightness.Size); Rectangle ColourRectangle = new Rectangle(pnlColour.Location, pnlColour.Size); // Create the new ColorWheel class, indicating // the locations of the color wheel itself, the // brightness area, and the position of the selected color. _colourWheel = new ColourWheel(ColourRectangle, BrightnessRectangle, SelectedColourRectangle); _colourWheel.ColourChanged += new ColourWheel.ColourChangedEventHandler(this.ColourWheel_ColourChanged); // Set the RGB and HSV values // of the NumericUpDown controls. SetRGB(_RGB); SetHSV(_HSV); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.m_wheel = new Rylogic.Gui.WinForms.ColourWheel(); this.m_btn_dlg = new System.Windows.Forms.Button(); this.SuspendLayout(); // // m_wheel // this.m_wheel.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_wheel.Dock = System.Windows.Forms.DockStyle.Fill; this.m_wheel.Location = new System.Drawing.Point(0, 0); this.m_wheel.Name = "m_wheel"; this.m_wheel.Parts = ((Rylogic.Gui.WinForms.ColourWheel.EParts)((((((Rylogic.Gui.WinForms.ColourWheel.EParts.Wheel | Rylogic.Gui.WinForms.ColourWheel.EParts.VSlider) | Rylogic.Gui.WinForms.ColourWheel.EParts.ASlider) | Rylogic.Gui.WinForms.ColourWheel.EParts.ColourSelection) | Rylogic.Gui.WinForms.ColourWheel.EParts.VSelection) | Rylogic.Gui.WinForms.ColourWheel.EParts.ASelection))); this.m_wheel.Size = new System.Drawing.Size(182, 188); this.m_wheel.SliderWidth = 20; this.m_wheel.TabIndex = 0; this.m_wheel.VerticalLayout = false; // // m_btn_dlg // this.m_btn_dlg.Location = new System.Drawing.Point(25, 153); this.m_btn_dlg.Name = "m_btn_dlg"; this.m_btn_dlg.Size = new System.Drawing.Size(127, 23); this.m_btn_dlg.TabIndex = 1; this.m_btn_dlg.Text = "Colour Picker Dialog"; this.m_btn_dlg.UseVisualStyleBackColor = true; // // FormColourWheel // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(182, 188); this.Controls.Add(this.m_btn_dlg); this.Controls.Add(this.m_wheel); this.Name = "FormColourWheel"; this.Text = "FormColourWheel"; this.ResumeLayout(false); }
private void InitializeComponent() { this.kpnlMain = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnSaveColourPalette = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnLoadColourPalette = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.scpPicker = new ScreenColourPicker(); this.ceColour = new ColourEditor(); this.ceEditor = new Cyotek.Windows.Forms.ColorEditor(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnOk = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.cbColourPreview = new KryptonToolkitSuiteExtendedCore.CircularPictureBox(); this.cwColourPicker = new ColourWheel(); this.cgColourPalette = new Cyotek.Windows.Forms.ColorGrid(); this.cem = new ColourEditorManager(); ((System.ComponentModel.ISupportInitialize)(this.kpnlMain)).BeginInit(); this.kpnlMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbColourPreview)).BeginInit(); this.SuspendLayout(); // // kpnlMain // this.kpnlMain.Controls.Add(this.kbtnSaveColourPalette); this.kpnlMain.Controls.Add(this.kbtnLoadColourPalette); this.kpnlMain.Controls.Add(this.scpPicker); this.kpnlMain.Controls.Add(this.ceColour); this.kpnlMain.Controls.Add(this.ceEditor); this.kpnlMain.Controls.Add(this.kbtnCancel); this.kpnlMain.Controls.Add(this.kbtnOk); this.kpnlMain.Controls.Add(this.cbColourPreview); this.kpnlMain.Controls.Add(this.cwColourPicker); this.kpnlMain.Controls.Add(this.cgColourPalette); this.kpnlMain.Dock = System.Windows.Forms.DockStyle.Fill; this.kpnlMain.Location = new System.Drawing.Point(0, 0); this.kpnlMain.Name = "kpnlMain"; this.kpnlMain.Size = new System.Drawing.Size(643, 483); this.kpnlMain.TabIndex = 0; // // kbtnSaveColourPalette // this.kbtnSaveColourPalette.Location = new System.Drawing.Point(41, 300); this.kbtnSaveColourPalette.Name = "kbtnSaveColourPalette"; this.kbtnSaveColourPalette.Size = new System.Drawing.Size(23, 23); this.kbtnSaveColourPalette.TabIndex = 5; this.kbtnSaveColourPalette.Values.Image = global::ExtendedDialogs.Properties.Resources.palette_save; this.kbtnSaveColourPalette.Values.Text = ""; this.kbtnSaveColourPalette.Click += new System.EventHandler(this.KbtnSaveColourPalette_Click); // // kbtnLoadColourPalette // this.kbtnLoadColourPalette.Location = new System.Drawing.Point(12, 300); this.kbtnLoadColourPalette.Name = "kbtnLoadColourPalette"; this.kbtnLoadColourPalette.Size = new System.Drawing.Size(23, 23); this.kbtnLoadColourPalette.TabIndex = 1; this.kbtnLoadColourPalette.Values.Image = global::ExtendedDialogs.Properties.Resources.palette_load; this.kbtnLoadColourPalette.Values.Text = ""; this.kbtnLoadColourPalette.Click += new System.EventHandler(this.KbtnLoadColourPalette_Click); // // scpPicker // this.scpPicker.Colour = System.Drawing.Color.Empty; this.scpPicker.Image = global::ExtendedDialogs.Properties.Resources.eyedropper; this.scpPicker.Location = new System.Drawing.Point(501, 164); this.scpPicker.Name = "scpPicker"; this.scpPicker.Size = new System.Drawing.Size(130, 129); // // ceColour // this.ceColour.BackColor = System.Drawing.Color.Transparent; this.ceColour.Location = new System.Drawing.Point(249, 20); this.ceColour.Name = "ceColour"; this.ceColour.Size = new System.Drawing.Size(246, 371); this.ceColour.TabIndex = 1; // // ceEditor // this.ceEditor.BackColor = System.Drawing.Color.Transparent; this.ceEditor.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ceEditor.Location = new System.Drawing.Point(249, 20); this.ceEditor.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.ceEditor.Name = "ceEditor"; this.ceEditor.Size = new System.Drawing.Size(246, 371); this.ceEditor.TabIndex = 1; this.ceEditor.Visible = false; // // kbtnCancel // this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.kbtnCancel.Location = new System.Drawing.Point(501, 64); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(130, 38); this.kbtnCancel.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 4; this.kbtnCancel.Values.Text = "C&ancel"; this.kbtnCancel.Click += new System.EventHandler(this.KbtnCancel_Click); // // kbtnOk // this.kbtnOk.Location = new System.Drawing.Point(501, 20); this.kbtnOk.Name = "kbtnOk"; this.kbtnOk.Size = new System.Drawing.Size(130, 38); this.kbtnOk.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnOk.TabIndex = 3; this.kbtnOk.Values.Text = "&Ok"; this.kbtnOk.Click += new System.EventHandler(this.KbtnOk_Click); // // cbColourPreview // this.cbColourPreview.BackColor = System.Drawing.SystemColors.Control; this.cbColourPreview.Location = new System.Drawing.Point(501, 341); this.cbColourPreview.Name = "cbColourPreview"; this.cbColourPreview.Size = new System.Drawing.Size(130, 130); this.cbColourPreview.TabIndex = 2; this.cbColourPreview.TabStop = false; this.cbColourPreview.Paint += new System.Windows.Forms.PaintEventHandler(this.CbColourPreview_Paint); // // cwColourPicker // this.cwColourPicker.BackColor = System.Drawing.Color.Transparent; this.cwColourPicker.Location = new System.Drawing.Point(12, 20); this.cwColourPicker.Name = "cwColourPicker"; this.cwColourPicker.Size = new System.Drawing.Size(231, 212); this.cwColourPicker.TabIndex = 1; // // cgColourPalette // this.cgColourPalette.AutoAddColors = false; this.cgColourPalette.BackColor = System.Drawing.Color.Transparent; this.cgColourPalette.CellSize = new System.Drawing.Size(11, 12); this.cgColourPalette.EditMode = Cyotek.Windows.Forms.ColorEditingMode.Both; this.cgColourPalette.Location = new System.Drawing.Point(12, 329); this.cgColourPalette.Name = "cgColourPalette"; this.cgColourPalette.SelectedCellStyle = Cyotek.Windows.Forms.ColorGridSelectedCellStyle.Standard; this.cgColourPalette.ShowCustomColors = false; this.cgColourPalette.Size = new System.Drawing.Size(231, 142); this.cgColourPalette.TabIndex = 1; this.cgColourPalette.EditingColor += new System.EventHandler <Cyotek.Windows.Forms.EditColorCancelEventArgs>(this.CgColourPalette_EditingColor); // // cem // this.cem.Color = System.Drawing.Color.Empty; this.cem.ColourEditor = this.ceColour; this.cem.ColourGrid = this.cgColourPalette; this.cem.ColourWheel = this.cwColourPicker; this.cem.ScreenColourPicker = this.scpPicker; this.cem.ColorChanged += new System.EventHandler(this.Cem_ColorChanged); this.cem.ColourChanged += new System.EventHandler(this.Cem_ColourChanged); // // ColourPickerDialog // this.AcceptButton = this.kbtnOk; this.CancelButton = this.kbtnCancel; this.ClientSize = new System.Drawing.Size(643, 483); this.Controls.Add(this.kpnlMain); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColourPickerDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Colour Picker"; this.Load += new System.EventHandler(this.ColourPickerDialog_Load); ((System.ComponentModel.ISupportInitialize)(this.kpnlMain)).EndInit(); this.kpnlMain.ResumeLayout(false); this.kpnlMain.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbColourPreview)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.m_btn_delete = new System.Windows.Forms.Button(); this.m_btn_ok = new System.Windows.Forms.Button(); this.m_lbl_price = new System.Windows.Forms.Label(); this.m_spinner_region_size = new System.Windows.Forms.NumericUpDown(); this.m_spinner_price_level = new System.Windows.Forms.NumericUpDown(); this.m_lbl_region_height = new System.Windows.Forms.Label(); this.m_colour_line = new pr.gui.ColourWheel(); this.m_lbl_line_colour = new System.Windows.Forms.Label(); this.m_lbl_line_width = new System.Windows.Forms.Label(); this.m_spinner_line_width = new System.Windows.Forms.NumericUpDown(); this.m_colour_region = new pr.gui.ColourWheel(); this.m_lbl_region_colour = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_region_size)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_price_level)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_line_width)).BeginInit(); this.SuspendLayout(); // // m_btn_delete // this.m_btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_btn_delete.Location = new System.Drawing.Point(12, 228); this.m_btn_delete.Name = "m_btn_delete"; this.m_btn_delete.Size = new System.Drawing.Size(75, 23); this.m_btn_delete.TabIndex = 16; this.m_btn_delete.Text = "Delete"; this.m_btn_delete.UseVisualStyleBackColor = true; // // 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(144, 228); this.m_btn_ok.Name = "m_btn_ok"; this.m_btn_ok.Size = new System.Drawing.Size(75, 23); this.m_btn_ok.TabIndex = 15; this.m_btn_ok.Text = "OK"; this.m_btn_ok.UseVisualStyleBackColor = true; // // m_lbl_price // this.m_lbl_price.AutoSize = true; this.m_lbl_price.Location = new System.Drawing.Point(50, 15); this.m_lbl_price.Name = "m_lbl_price"; this.m_lbl_price.Size = new System.Drawing.Size(63, 13); this.m_lbl_price.TabIndex = 18; this.m_lbl_price.Text = "Price Level:"; // // m_spinner_region_size // this.m_spinner_region_size.Location = new System.Drawing.Point(119, 37); this.m_spinner_region_size.Name = "m_spinner_region_size"; this.m_spinner_region_size.Size = new System.Drawing.Size(100, 20); this.m_spinner_region_size.TabIndex = 19; // // m_spinner_price_level // this.m_spinner_price_level.Location = new System.Drawing.Point(119, 13); this.m_spinner_price_level.Name = "m_spinner_price_level"; this.m_spinner_price_level.Size = new System.Drawing.Size(100, 20); this.m_spinner_price_level.TabIndex = 20; // // m_lbl_region_height // this.m_lbl_region_height.AutoSize = true; this.m_lbl_region_height.Location = new System.Drawing.Point(7, 39); this.m_lbl_region_height.Name = "m_lbl_region_height"; this.m_lbl_region_height.Size = new System.Drawing.Size(106, 13); this.m_lbl_region_height.TabIndex = 21; this.m_lbl_region_height.Text = "Region Size (in pips):"; // // m_colour_line // this.m_colour_line.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_line.Location = new System.Drawing.Point(99, 89); this.m_colour_line.Name = "m_colour_line"; this.m_colour_line.Parts = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider) | pr.gui.ColourWheel.EParts.ASlider) | pr.gui.ColourWheel.EParts.ColourSelection) | pr.gui.ColourWheel.EParts.VSelection) | pr.gui.ColourWheel.EParts.ASelection))); this.m_colour_line.Size = new System.Drawing.Size(120, 63); this.m_colour_line.SliderWidth = 20; this.m_colour_line.TabIndex = 22; this.m_colour_line.VerticalLayout = false; // // m_lbl_line_colour // this.m_lbl_line_colour.AutoSize = true; this.m_lbl_line_colour.Location = new System.Drawing.Point(24, 89); this.m_lbl_line_colour.Name = "m_lbl_line_colour"; this.m_lbl_line_colour.Size = new System.Drawing.Size(63, 13); this.m_lbl_line_colour.TabIndex = 23; this.m_lbl_line_colour.Text = "Line Colour:"; // // m_lbl_line_width // this.m_lbl_line_width.AutoSize = true; this.m_lbl_line_width.Location = new System.Drawing.Point(52, 65); this.m_lbl_line_width.Name = "m_lbl_line_width"; this.m_lbl_line_width.Size = new System.Drawing.Size(61, 13); this.m_lbl_line_width.TabIndex = 24; this.m_lbl_line_width.Text = "Line Width:"; // // m_spinner_line_width // this.m_spinner_line_width.Location = new System.Drawing.Point(119, 63); this.m_spinner_line_width.Name = "m_spinner_line_width"; this.m_spinner_line_width.Size = new System.Drawing.Size(100, 20); this.m_spinner_line_width.TabIndex = 25; // // m_colour_region // this.m_colour_region.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_region.Location = new System.Drawing.Point(99, 158); this.m_colour_region.Name = "m_colour_region"; this.m_colour_region.Parts = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider) | pr.gui.ColourWheel.EParts.ASlider) | pr.gui.ColourWheel.EParts.ColourSelection) | pr.gui.ColourWheel.EParts.VSelection) | pr.gui.ColourWheel.EParts.ASelection))); this.m_colour_region.Size = new System.Drawing.Size(120, 63); this.m_colour_region.SliderWidth = 20; this.m_colour_region.TabIndex = 26; this.m_colour_region.VerticalLayout = false; // // m_lbl_region_colour // this.m_lbl_region_colour.AutoSize = true; this.m_lbl_region_colour.Location = new System.Drawing.Point(10, 158); this.m_lbl_region_colour.Name = "m_lbl_region_colour"; this.m_lbl_region_colour.Size = new System.Drawing.Size(77, 13); this.m_lbl_region_colour.TabIndex = 27; this.m_lbl_region_colour.Text = "Region Colour:"; // // EditSnrLevelUI // this.AcceptButton = this.m_btn_ok; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(231, 263); this.Controls.Add(this.m_lbl_region_colour); this.Controls.Add(this.m_colour_region); this.Controls.Add(this.m_spinner_line_width); this.Controls.Add(this.m_lbl_line_width); this.Controls.Add(this.m_lbl_line_colour); this.Controls.Add(this.m_colour_line); this.Controls.Add(this.m_lbl_region_height); this.Controls.Add(this.m_spinner_price_level); this.Controls.Add(this.m_spinner_region_size); this.Controls.Add(this.m_lbl_price); this.Controls.Add(this.m_btn_delete); this.Controls.Add(this.m_btn_ok); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "EditSnrLevelUI"; this.PinOffset = new System.Drawing.Point(-300, 0); this.Text = "Support/Resistance Level"; ((System.ComponentModel.ISupportInitialize)(this.m_spinner_region_size)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_price_level)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_line_width)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.m_lbl_example = 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_colour_fore = new Rylogic.Gui.WinForms.ColourWheel(); this.m_colour_back = new Rylogic.Gui.WinForms.ColourWheel(); this.m_lbl_foreground = new System.Windows.Forms.Label(); this.m_lbl_background = new System.Windows.Forms.Label(); this.SuspendLayout(); // // m_lbl_example // this.m_lbl_example.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.m_lbl_example.Location = new System.Drawing.Point(12, 140); this.m_lbl_example.Name = "m_lbl_example"; this.m_lbl_example.Size = new System.Drawing.Size(282, 25); this.m_lbl_example.TabIndex = 2; this.m_lbl_example.Text = "Preview of selected colours"; this.m_lbl_example.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // m_btn_ok // this.m_btn_ok.DialogResult = System.Windows.Forms.DialogResult.OK; this.m_btn_ok.Location = new System.Drawing.Point(138, 177); this.m_btn_ok.Name = "m_btn_ok"; this.m_btn_ok.Size = new System.Drawing.Size(75, 23); this.m_btn_ok.TabIndex = 3; this.m_btn_ok.Text = "OK"; this.m_btn_ok.UseVisualStyleBackColor = true; // // m_btn_cancel // this.m_btn_cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_btn_cancel.Location = new System.Drawing.Point(219, 177); this.m_btn_cancel.Name = "m_btn_cancel"; this.m_btn_cancel.Size = new System.Drawing.Size(75, 23); this.m_btn_cancel.TabIndex = 4; this.m_btn_cancel.Text = "Cancel"; this.m_btn_cancel.UseVisualStyleBackColor = true; // // m_colour_fore // this.m_colour_fore.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_fore.Location = new System.Drawing.Point(12, 33); this.m_colour_fore.Name = "m_colour_fore"; this.m_colour_fore.Parts = ((Rylogic.Gui.WinForms.ColourWheel.EParts)((((Rylogic.Gui.WinForms.ColourWheel.EParts.Wheel | Rylogic.Gui.WinForms.ColourWheel.EParts.VSlider) | Rylogic.Gui.WinForms.ColourWheel.EParts.ColourSelection) | Rylogic.Gui.WinForms.ColourWheel.EParts.VSelection))); this.m_colour_fore.Size = new System.Drawing.Size(128, 94); this.m_colour_fore.SliderWidth = 20; this.m_colour_fore.TabIndex = 0; this.m_colour_fore.VerticalLayout = false; // // m_colour_back // this.m_colour_back.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_back.Location = new System.Drawing.Point(138, 33); this.m_colour_back.Name = "m_colour_back"; this.m_colour_back.Parts = ((Rylogic.Gui.WinForms.ColourWheel.EParts)((((((Rylogic.Gui.WinForms.ColourWheel.EParts.Wheel | Rylogic.Gui.WinForms.ColourWheel.EParts.VSlider) | Rylogic.Gui.WinForms.ColourWheel.EParts.ASlider) | Rylogic.Gui.WinForms.ColourWheel.EParts.ColourSelection) | Rylogic.Gui.WinForms.ColourWheel.EParts.VSelection) | Rylogic.Gui.WinForms.ColourWheel.EParts.ASelection))); this.m_colour_back.Size = new System.Drawing.Size(156, 94); this.m_colour_back.SliderWidth = 20; this.m_colour_back.TabIndex = 1; this.m_colour_back.VerticalLayout = false; // // m_lbl_foreground // this.m_lbl_foreground.AutoSize = true; this.m_lbl_foreground.Location = new System.Drawing.Point(33, 9); this.m_lbl_foreground.Name = "m_lbl_foreground"; this.m_lbl_foreground.Size = new System.Drawing.Size(64, 13); this.m_lbl_foreground.TabIndex = 5; this.m_lbl_foreground.Text = "Font Colour:"; // // m_lbl_background // this.m_lbl_background.AutoSize = true; this.m_lbl_background.Location = new System.Drawing.Point(174, 9); this.m_lbl_background.Name = "m_lbl_background"; this.m_lbl_background.Size = new System.Drawing.Size(101, 13); this.m_lbl_background.TabIndex = 6; this.m_lbl_background.Text = "Background Colour:"; // // ColourPickerUI // this.AcceptButton = this.m_btn_ok; this.BackColor = System.Drawing.SystemColors.Control; this.CancelButton = this.m_btn_cancel; this.ClientSize = new System.Drawing.Size(306, 210); this.Controls.Add(this.m_lbl_background); this.Controls.Add(this.m_lbl_foreground); this.Controls.Add(this.m_colour_back); this.Controls.Add(this.m_colour_fore); this.Controls.Add(this.m_lbl_example); this.Controls.Add(this.m_btn_ok); this.Controls.Add(this.m_btn_cancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColourPickerUI"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditEmaUI)); this.m_spinner_window_size = new System.Windows.Forms.NumericUpDown(); this.m_lbl_window_size = new System.Windows.Forms.Label(); this.m_lbl_width = new System.Windows.Forms.Label(); this.m_spinner_width = new System.Windows.Forms.NumericUpDown(); this.m_colour_ema = new pr.gui.ColourWheel(); this.m_btn_ok = new System.Windows.Forms.Button(); this.m_lbl_bollinger_bands = new System.Windows.Forms.Label(); this.m_spinner_bollinger_band_stddev = new System.Windows.Forms.NumericUpDown(); this.m_colour_bollinger = new pr.gui.ColourWheel(); this.m_lbl_main_colour = new System.Windows.Forms.Label(); this.m_lbl_bollinger_bands_colour = new System.Windows.Forms.Label(); this.m_btn_delete = new System.Windows.Forms.Button(); this.m_spinner_bollinger_bands = new pr.gui.ValueBox(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_width)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_bollinger_band_stddev)).BeginInit(); this.SuspendLayout(); // // m_spinner_window_size // this.m_spinner_window_size.Location = new System.Drawing.Point(27, 30); this.m_spinner_window_size.Name = "m_spinner_window_size"; this.m_spinner_window_size.Size = new System.Drawing.Size(75, 20); this.m_spinner_window_size.TabIndex = 0; // // m_lbl_window_size // this.m_lbl_window_size.AutoSize = true; this.m_lbl_window_size.Location = new System.Drawing.Point(12, 14); this.m_lbl_window_size.Name = "m_lbl_window_size"; this.m_lbl_window_size.Size = new System.Drawing.Size(69, 13); this.m_lbl_window_size.TabIndex = 1; this.m_lbl_window_size.Text = "Window Size"; // // m_lbl_width // this.m_lbl_width.AutoSize = true; this.m_lbl_width.Location = new System.Drawing.Point(116, 14); this.m_lbl_width.Name = "m_lbl_width"; this.m_lbl_width.Size = new System.Drawing.Size(35, 13); this.m_lbl_width.TabIndex = 2; this.m_lbl_width.Text = "Width"; // // m_spinner_width // this.m_spinner_width.Location = new System.Drawing.Point(130, 30); this.m_spinner_width.Name = "m_spinner_width"; this.m_spinner_width.Size = new System.Drawing.Size(79, 20); this.m_spinner_width.TabIndex = 4; // // m_colour_ema // this.m_colour_ema.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_ema.Location = new System.Drawing.Point(89, 56); this.m_colour_ema.Name = "m_colour_ema"; this.m_colour_ema.Parts = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider) | pr.gui.ColourWheel.EParts.ASlider) | pr.gui.ColourWheel.EParts.ColourSelection) | pr.gui.ColourWheel.EParts.VSelection) | pr.gui.ColourWheel.EParts.ASelection))); this.m_colour_ema.Size = new System.Drawing.Size(120, 63); this.m_colour_ema.SliderWidth = 20; this.m_colour_ema.TabIndex = 5; this.m_colour_ema.VerticalLayout = false; // // 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(146, 238); this.m_btn_ok.Name = "m_btn_ok"; this.m_btn_ok.Size = new System.Drawing.Size(75, 23); this.m_btn_ok.TabIndex = 6; this.m_btn_ok.Text = "OK"; this.m_btn_ok.UseVisualStyleBackColor = true; // // m_lbl_bollinger_bands // this.m_lbl_bollinger_bands.AutoSize = true; this.m_lbl_bollinger_bands.Location = new System.Drawing.Point(12, 140); this.m_lbl_bollinger_bands.Name = "m_lbl_bollinger_bands"; this.m_lbl_bollinger_bands.Size = new System.Drawing.Size(117, 13); this.m_lbl_bollinger_bands.TabIndex = 7; this.m_lbl_bollinger_bands.Text = "Bollinger Band StdDev:"; // // m_spinner_bollinger_band_stddev // this.m_spinner_bollinger_band_stddev.DecimalPlaces = 1; this.m_spinner_bollinger_band_stddev.Increment = new decimal(new int[] { 1, 0, 0, 65536 }); this.m_spinner_bollinger_band_stddev.Location = new System.Drawing.Point(146, 138); this.m_spinner_bollinger_band_stddev.Name = "m_spinner_bollinger_band_stddev"; this.m_spinner_bollinger_band_stddev.Size = new System.Drawing.Size(63, 20); this.m_spinner_bollinger_band_stddev.TabIndex = 8; // // m_colour_bollinger // this.m_colour_bollinger.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour_bollinger.Location = new System.Drawing.Point(89, 164); this.m_colour_bollinger.Name = "m_colour_bollinger"; this.m_colour_bollinger.Parts = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider) | pr.gui.ColourWheel.EParts.ASlider) | pr.gui.ColourWheel.EParts.ColourSelection) | pr.gui.ColourWheel.EParts.VSelection) | pr.gui.ColourWheel.EParts.ASelection))); this.m_colour_bollinger.Size = new System.Drawing.Size(120, 63); this.m_colour_bollinger.SliderWidth = 20; this.m_colour_bollinger.TabIndex = 9; this.m_colour_bollinger.VerticalLayout = false; // // m_lbl_main_colour // this.m_lbl_main_colour.AutoSize = true; this.m_lbl_main_colour.Location = new System.Drawing.Point(12, 56); this.m_lbl_main_colour.Name = "m_lbl_main_colour"; this.m_lbl_main_colour.Size = new System.Drawing.Size(63, 13); this.m_lbl_main_colour.TabIndex = 10; this.m_lbl_main_colour.Text = "EMA Colour"; // // m_lbl_bollinger_bands_colour // this.m_lbl_bollinger_bands_colour.AutoSize = true; this.m_lbl_bollinger_bands_colour.Location = new System.Drawing.Point(11, 164); this.m_lbl_bollinger_bands_colour.Name = "m_lbl_bollinger_bands_colour"; this.m_lbl_bollinger_bands_colour.Size = new System.Drawing.Size(70, 26); this.m_lbl_bollinger_bands_colour.TabIndex = 11; this.m_lbl_bollinger_bands_colour.Text = "Bollinger\r\nBands Colour"; // // m_btn_delete // this.m_btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_btn_delete.Location = new System.Drawing.Point(12, 236); this.m_btn_delete.Name = "m_btn_delete"; this.m_btn_delete.Size = new System.Drawing.Size(75, 23); this.m_btn_delete.TabIndex = 12; this.m_btn_delete.Text = "Delete"; this.m_btn_delete.UseVisualStyleBackColor = true; // // m_spinner_bollinger_bands // this.m_spinner_bollinger_bands.Location = new System.Drawing.Point(0, 0); this.m_spinner_bollinger_bands.Name = "m_spinner_bollinger_bands"; this.m_spinner_bollinger_bands.Size = new System.Drawing.Size(100, 20); this.m_spinner_bollinger_bands.TabIndex = 0; this.m_spinner_bollinger_bands.Value = null; // // EditEmaUI // this.AcceptButton = this.m_btn_ok; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(231, 271); this.Controls.Add(this.m_btn_delete); this.Controls.Add(this.m_lbl_bollinger_bands_colour); this.Controls.Add(this.m_lbl_main_colour); this.Controls.Add(this.m_colour_bollinger); this.Controls.Add(this.m_spinner_bollinger_band_stddev); this.Controls.Add(this.m_lbl_bollinger_bands); this.Controls.Add(this.m_btn_ok); this.Controls.Add(this.m_colour_ema); this.Controls.Add(this.m_spinner_width); this.Controls.Add(this.m_lbl_width); this.Controls.Add(this.m_lbl_window_size); this.Controls.Add(this.m_spinner_window_size); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "EditEmaUI"; this.PinOffset = new System.Drawing.Point(-300, 0); this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Exponential Moving Average"; ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_width)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_bollinger_band_stddev)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.m_btn_delete = new System.Windows.Forms.Button(); this.m_btn_ok = new System.Windows.Forms.Button(); this.m_lbl_src_time_frame = new System.Windows.Forms.Label(); this.m_cb_src_time_frame = new pr.gui.ComboBox(); this.m_lbl_history_length = new System.Windows.Forms.Label(); this.m_spinner_history_length = new System.Windows.Forms.NumericUpDown(); this.m_colour = new pr.gui.ColourWheel(); this.m_lbl_colour = new System.Windows.Forms.Label(); this.m_cb_attribute = new pr.gui.ComboBox(); this.m_lbl_attribute = new System.Windows.Forms.Label(); this.m_lbl_gfx_width = new System.Windows.Forms.Label(); this.m_spinner_gfx_width = new System.Windows.Forms.NumericUpDown(); this.m_spinner_power = new System.Windows.Forms.NumericUpDown(); this.m_lbl_power = new System.Windows.Forms.Label(); this.m_spinner_window_size = new System.Windows.Forms.NumericUpDown(); this.m_lbl_window_size = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_history_length)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_gfx_width)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_power)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).BeginInit(); this.SuspendLayout(); // // m_btn_delete // this.m_btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_btn_delete.Location = new System.Drawing.Point(12, 240); this.m_btn_delete.Name = "m_btn_delete"; this.m_btn_delete.Size = new System.Drawing.Size(75, 23); this.m_btn_delete.TabIndex = 14; this.m_btn_delete.Text = "Delete"; this.m_btn_delete.UseVisualStyleBackColor = true; // // 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(144, 240); this.m_btn_ok.Name = "m_btn_ok"; this.m_btn_ok.Size = new System.Drawing.Size(75, 23); this.m_btn_ok.TabIndex = 13; this.m_btn_ok.Text = "OK"; this.m_btn_ok.UseVisualStyleBackColor = true; // // m_lbl_src_time_frame // this.m_lbl_src_time_frame.AutoSize = true; this.m_lbl_src_time_frame.Location = new System.Drawing.Point(9, 12); this.m_lbl_src_time_frame.Name = "m_lbl_src_time_frame"; this.m_lbl_src_time_frame.Size = new System.Drawing.Size(102, 13); this.m_lbl_src_time_frame.TabIndex = 15; this.m_lbl_src_time_frame.Text = "Source Time Frame:"; // // m_cb_src_time_frame // this.m_cb_src_time_frame.DisplayProperty = null; this.m_cb_src_time_frame.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cb_src_time_frame.FormattingEnabled = true; this.m_cb_src_time_frame.Location = new System.Drawing.Point(117, 9); this.m_cb_src_time_frame.Name = "m_cb_src_time_frame"; this.m_cb_src_time_frame.PreserveSelectionThruFocusChange = false; this.m_cb_src_time_frame.Size = new System.Drawing.Size(102, 21); this.m_cb_src_time_frame.TabIndex = 16; // // m_lbl_history_length // this.m_lbl_history_length.AutoSize = true; this.m_lbl_history_length.Location = new System.Drawing.Point(33, 65); this.m_lbl_history_length.Name = "m_lbl_history_length"; this.m_lbl_history_length.Size = new System.Drawing.Size(78, 13); this.m_lbl_history_length.TabIndex = 17; this.m_lbl_history_length.Text = "History Length:"; // // m_spinner_history_length // this.m_spinner_history_length.Location = new System.Drawing.Point(117, 63); this.m_spinner_history_length.Name = "m_spinner_history_length"; this.m_spinner_history_length.Size = new System.Drawing.Size(102, 20); this.m_spinner_history_length.TabIndex = 18; // // m_colour // this.m_colour.Colour = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.m_colour.Location = new System.Drawing.Point(99, 119); this.m_colour.Name = "m_colour"; this.m_colour.Parts = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider) | pr.gui.ColourWheel.EParts.ASlider) | pr.gui.ColourWheel.EParts.ColourSelection) | pr.gui.ColourWheel.EParts.VSelection) | pr.gui.ColourWheel.EParts.ASelection))); this.m_colour.Size = new System.Drawing.Size(120, 63); this.m_colour.SliderWidth = 20; this.m_colour.TabIndex = 19; this.m_colour.VerticalLayout = false; // // m_lbl_colour // this.m_lbl_colour.AutoSize = true; this.m_lbl_colour.Location = new System.Drawing.Point(47, 119); this.m_lbl_colour.Name = "m_lbl_colour"; this.m_lbl_colour.Size = new System.Drawing.Size(40, 13); this.m_lbl_colour.TabIndex = 20; this.m_lbl_colour.Text = "Colour:"; // // m_cb_attribute // this.m_cb_attribute.DisplayProperty = null; this.m_cb_attribute.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cb_attribute.FormattingEnabled = true; this.m_cb_attribute.Location = new System.Drawing.Point(117, 36); this.m_cb_attribute.Name = "m_cb_attribute"; this.m_cb_attribute.PreserveSelectionThruFocusChange = false; this.m_cb_attribute.Size = new System.Drawing.Size(102, 21); this.m_cb_attribute.TabIndex = 21; // // m_lbl_attribute // this.m_lbl_attribute.AutoSize = true; this.m_lbl_attribute.Location = new System.Drawing.Point(62, 39); this.m_lbl_attribute.Name = "m_lbl_attribute"; this.m_lbl_attribute.Size = new System.Drawing.Size(49, 13); this.m_lbl_attribute.TabIndex = 22; this.m_lbl_attribute.Text = "Attribute:"; // // m_lbl_gfx_width // this.m_lbl_gfx_width.AutoSize = true; this.m_lbl_gfx_width.Location = new System.Drawing.Point(73, 190); this.m_lbl_gfx_width.Name = "m_lbl_gfx_width"; this.m_lbl_gfx_width.Size = new System.Drawing.Size(38, 13); this.m_lbl_gfx_width.TabIndex = 23; this.m_lbl_gfx_width.Text = "Width:"; // // m_spinner_gfx_width // this.m_spinner_gfx_width.DecimalPlaces = 2; this.m_spinner_gfx_width.Increment = new decimal(new int[] { 1, 0, 0, 65536 }); this.m_spinner_gfx_width.Location = new System.Drawing.Point(117, 188); this.m_spinner_gfx_width.Maximum = new decimal(new int[] { 1, 0, 0, 0 }); this.m_spinner_gfx_width.Name = "m_spinner_gfx_width"; this.m_spinner_gfx_width.Size = new System.Drawing.Size(102, 20); this.m_spinner_gfx_width.TabIndex = 24; this.m_spinner_gfx_width.Value = new decimal(new int[] { 2, 0, 0, 65536 }); // // m_spinner_power // this.m_spinner_power.DecimalPlaces = 1; this.m_spinner_power.Location = new System.Drawing.Point(117, 214); this.m_spinner_power.Maximum = new decimal(new int[] { 1, 0, 0, 0 }); this.m_spinner_power.Name = "m_spinner_power"; this.m_spinner_power.Size = new System.Drawing.Size(102, 20); this.m_spinner_power.TabIndex = 26; this.m_spinner_power.Value = new decimal(new int[] { 2, 0, 0, 65536 }); // // m_lbl_power // this.m_lbl_power.AutoSize = true; this.m_lbl_power.Location = new System.Drawing.Point(71, 216); this.m_lbl_power.Name = "m_lbl_power"; this.m_lbl_power.Size = new System.Drawing.Size(40, 13); this.m_lbl_power.TabIndex = 25; this.m_lbl_power.Text = "Power:"; // // m_spinner_window_size // this.m_spinner_window_size.Location = new System.Drawing.Point(117, 89); this.m_spinner_window_size.Name = "m_spinner_window_size"; this.m_spinner_window_size.Size = new System.Drawing.Size(102, 20); this.m_spinner_window_size.TabIndex = 27; // // m_lbl_window_size // this.m_lbl_window_size.AutoSize = true; this.m_lbl_window_size.Location = new System.Drawing.Point(33, 91); this.m_lbl_window_size.Name = "m_lbl_window_size"; this.m_lbl_window_size.Size = new System.Drawing.Size(72, 13); this.m_lbl_window_size.TabIndex = 28; this.m_lbl_window_size.Text = "Window Size:"; // // EditSnrUI // this.AcceptButton = this.m_btn_ok; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(231, 275); this.Controls.Add(this.m_lbl_window_size); this.Controls.Add(this.m_spinner_window_size); this.Controls.Add(this.m_spinner_power); this.Controls.Add(this.m_lbl_power); this.Controls.Add(this.m_spinner_gfx_width); this.Controls.Add(this.m_lbl_gfx_width); this.Controls.Add(this.m_lbl_attribute); this.Controls.Add(this.m_cb_attribute); this.Controls.Add(this.m_lbl_colour); this.Controls.Add(this.m_colour); this.Controls.Add(this.m_spinner_history_length); this.Controls.Add(this.m_lbl_history_length); this.Controls.Add(this.m_cb_src_time_frame); this.Controls.Add(this.m_lbl_src_time_frame); this.Controls.Add(this.m_btn_delete); this.Controls.Add(this.m_btn_ok); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "EditSnrUI"; this.PinOffset = new System.Drawing.Point(-300, 0); this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Support & Resistance"; ((System.ComponentModel.ISupportInitialize)(this.m_spinner_history_length)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_gfx_width)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_power)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }