private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { Chart tChart1 = (Chart)sender; ColorGrid colorGrid1 = (ColorGrid)tChart1[0]; g.Font.Size = 20; string myStr = ""; Color newColor; ColorList lstColor = new ColorList(); double y, x; for (int i = 0; i < colorGrid1.Count; i++) { myStr = colorGrid1.YValues.Value[i].ToString("0.00"); y = colorGrid1.GetVertAxis.CalcPosValue(colorGrid1.ZValues[i]); x = colorGrid1.GetHorizAxis.CalcPosValue(colorGrid1.XValues[i]); newColor = colorGrid1.ValueColor(i).Luminosity > 0.5f ? Color.Black : Color.White; g.Font.Color = newColor; g.TextOut( x + colorGrid1.GetHorizAxis.CalcSizeValue(0.25), y - colorGrid1.GetVertAxis.CalcSizeValue(1.25), myStr); } }
public void Draw(ColorGrid grid) { var dx = End.X - Start.X; var dy = End.Y - Start.Y; grid[Start.X, Start.Y] = Color; if (Math.Abs(dx) >= Math.Abs(dy)) { int x = Start.X, xinc = dx > 0 ? 1 : -1; float y = Start.Y, yinc = (float)dy / dx * xinc; while (x != End.X) { x += xinc; y += yinc; grid[x, (int)Math.Round(y)] = Color; } } else { int y = Start.Y, yinc = dy > 0 ? 1 : -1; double x = Start.X, xinc = (double)dx / dy * yinc; while (y != End.Y) { x += xinc; y += yinc; grid[(int)Math.Round(x), y] = Color; } } }
private void ColorGrid_MouseLeave(object sender, EventArgs e) { if (!IsColorDialogOpen) { ColorGrid.Hide(); } }
private void SaveAndRefreshPalette() { UpdateColorPaletteFromGrid(); ColorGrid.InvalidateVisual(); ColorGrid.InvalidateMeasure(); // eventhough InvalidateVisual() claims to force a full layout cycle, it doesn't happen without an InvalidateMeasure() MessageBus.Publish(new SaveCurrentColorPaletteCommand()); }
private void GroundLevelForecast(ActualWeather weather) { Chart tChart1 = new Chart(); tChart1.Axes.Bottom.Increment = 1; tChart1.Axes.Bottom.Labels.Font.Color = Color.White; tChart1.Axes.Bottom.Ticks.Length = 10; tChart1.Axes.Bottom.Labels.Font.Size = 15; tChart1.Axes.Bottom.Title.Text = "Days"; tChart1.Axes.Bottom.Title.Font.Color = Color.White; tChart1.Axes.Left.Increment = 1; tChart1.Axes.Left.Labels.Font.Color = Color.White; tChart1.Axes.Left.Labels.Font.Size = 15; tChart1.Axes.Left.Title.Text = "Hours"; tChart1.Axes.Left.MinorTicks.Visible = false; tChart1.Axes.Left.Title.Font.Size = 15; tChart1.Axes.Left.Title.Font.Color = Color.White; tChart1.Axes.Left.Title.Gradient.Visible = false; tChart1.Axes.Left.Ticks.Length = 10; tChart1.Header.Visible = false; tChart1.Panel.Visible = true; tChart1.Panel.Gradient.Visible = false; tChart1.Panel.Transparent = false; tChart1.Panel.MarginBottom = 5; tChart1.Panel.MarginLeft = 5; tChart1.Panel.MarginRight = 5; tChart1.Panel.MarginTop = 5; tChart1.Panel.Color = Color.FromHex("#61493d"); tChart1.Walls.Back.Visible = true; tChart1.Walls.Back.Transparent = false; tChart1.Walls.Back.Gradient.Visible = false; tChart1.Walls.Back.Color = Color.White; tChart1.Aspect.View3D = false; tChart1.Zoom.Direction = ZoomDirections.None; tChart1.Legend.Visible = false; tChart1.Panning.Allow = ScrollModes.None; double min = weather.LstWeather[0].GroundLevel; double max = weather.LstWeather[0].GroundLevel; var groundLevel = new ColorGrid(tChart1.Chart); foreach (var item in weather.LstWeather) { groundLevel.Add(item.Date.Day, item.GroundLevel, item.Date.Hour); } groundLevel.StartColor = Color.White; groundLevel.EndColor = Color.Black; groundLevel.MidColor = Color.FromHex("#49311c"); tChart1.AfterDraw += new PaintChartEventHandler(this.tChart1_AfterDraw); groundLevel.Marks.Visible = false; ShowChart(tChart1); }
/// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.ToolStripDropDown"/> and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources. </param> protected override void Dispose(bool disposing) { if (disposing) { this.Items.Clear(); this.Host.MouseClick -= this.HostMouseClickHandler; this.Host.KeyDown -= this.HostKeyDownHandler; this.Host.Dispose(); this.Host = null; } base.Dispose(disposing); }
public void CreatePatch(Point location, Color color) { if (ColorGrid.GetColorPatchAt(location) != null) { throw new Exception("There already is a colorpatch there."); } var list = ColorGrid.ColorPatches; var gridLocation = ColorGrid.GetGridLocationAt(location); list.Add(new ColorPatch(color, gridLocation)); SaveAndRefreshPalette(); }
public ToolStripColorPickerDropDown() { Host = new ColorGrid { AutoSize = true, Columns = 11, // Palette = ColorPalette.Named, Colors = ColorPalettes.HexagonPalette }; Host.MouseClick += HostMouseClickHandler; Host.KeyDown += HostKeyDownHandler; Items.Add(new ToolStripControlHost(Host)); }
private void ScanFill(ColorGrid grid) { if (!Closed) return; var edgeTable = new Dictionary<int, List<Edge>>(); var xminTable = new Dictionary<Edge, double>(); edges.ForEach(x => xminTable.Add(x, x.XMin)); foreach (var edge in edges.Where(edge => !edge.IsHorizontal)) { if (!edgeTable.ContainsKey(edge.YMax)) { edgeTable.Add(edge.YMax, new List<Edge>()); } edgeTable[edge.YMax].Add(edge); } var activeEdgeTable = new List<Edge>(); for (var y = ymax; y >= ymin; --y) { if (edgeTable.ContainsKey(y)) { activeEdgeTable.AddRange(edgeTable[y]); } activeEdgeTable.Sort((a, b) => xminTable[a].CompareTo(xminTable[b])); Edge temp = null; foreach (var e in activeEdgeTable) { if (temp == null) { temp = e; continue; } for (var x = Convert.ToInt32(xminTable[temp]); x <= xminTable[e]; ++x) grid[x, y] = Color; temp = null; } var toRem = new List<Edge>(); foreach (var e in activeEdgeTable) { if (e.YMin + 2 > y) toRem.Add(e); else if (Math.Abs(e.Slope) > 0.0d) xminTable[e] -= 1 / e.Slope; } activeEdgeTable.RemoveAll(e => toRem.Contains(e)); } }
public ColorGridChart(ChartView BaseChart) { colorGrid = new ColorGrid(); var = new Variables.Variables(); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.AxisPen.Transparency = 0; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 0; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Title.Text = "Color Grid series"; //Themes.AplicarTheme(BaseChart); colorGrid.FillSampleValues(20); colorGrid.UseColorRange = true; colorGrid.UsePalette = true; colorGrid.StartColor = var.GetPaletteBasic[0]; colorGrid.MidColor = var.GetPaletteBasic[1]; colorGrid.EndColor = var.GetPaletteBasic[2]; colorGrid.ColorEach = true; colorGrid.Pen.Color = Color.White; //this.colorGrid.Brush.Color = System.Drawing.Color.Red; colorGrid.Marks.ArrowLength = 0; colorGrid.Marks.Symbol.Shadow.Height = 1; colorGrid.Marks.Symbol.Shadow.Visible = true; colorGrid.Marks.Symbol.Shadow.Width = 1; colorGrid.NumXValues = 25; colorGrid.NumZValues = 25; colorGrid.PaletteMin = 4; colorGrid.PaletteStep = 2; colorGrid.Title = "Color Grid"; colorGrid.XValues.DataMember = "X"; colorGrid.YValues.DataMember = "Y"; colorGrid.ZValues.DataMember = "Z"; BaseChart.Chart.Series.Add(colorGrid); }
/// <summary> /// Shows the Surface Chart from Pressure Ground Level forecast. /// </summary> /// <param name="weather"> Weather info</param> private void GroundLevelForecast(ActualWeather weather) { var tChart1 = new Chart(); tChart1.Axes.Left.Title.Text = "Hours"; tChart1.Axes.Bottom.Title.Text = "Days"; tChart1.Legend.Visible = false; tChart1.Panning.Allow = ScrollModes.None; tChart1.Header.Text = "Ground Level of " + App.Weather.Name; double min = weather.LstWeather[0].GroundLevel; double max = weather.LstWeather[0].GroundLevel; var groundLevel = new ColorGrid(tChart1); groundLevel.FillSampleValues(); groundLevel.IrregularGrid = true; foreach (var item in weather.LstWeather) { Debug.WriteLine(item.Date.Day + ";" + item.GroundLevel + ";" + item.Date.Hour); groundLevel.Add(item.Date.Day, item.GroundLevel, item.Date.Hour); } groundLevel.StartColor = Color.FromHex("#F2B551"); groundLevel.EndColor = Color.FromHex("#ED8256"); groundLevel.MidColor = Color.FromHex("#ED8256"); //tChart1.AfterDraw += new PaintChartEventHandler(this.tChart1_AfterDraw); groundLevel.Marks.Visible = false; AxisSettings(tChart1); TitleSettings(tChart1); SeriesMarksSettings(groundLevel); ShowChart(tChart1); }
public ColorGridDemo() { Text = "Custom Color Control"; AutoSize = true; TableLayoutPanel table = new TableLayoutPanel(); table.Parent = this; table.AutoSize = true; table.ColumnCount = 3; Button btn = new Button(); btn.Parent = table; btn.AutoSize = true; btn.Text = "Button One"; ColorGrid clrgrid = new ColorGrid(); clrgrid.Parent = table; clrgrid.Click += ColorGridOnClick; btn = new Button(); btn.Parent = table; btn.AutoSize = true; btn.Text = "Button Two"; lbl = new Label(); lbl.Parent = table; lbl.AutoSize = true; lbl.Font = new Font("Times New Roman", 24); lbl.Text = "Sample Text"; table.SetColumnSpan(lbl, 3); clrgrid.SelectedColor = lbl.ForeColor; }
public void Draw(ColorGrid grid) { foreach (var e in edges) e.Draw(grid); if (Closed) ScanFill(grid); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ColourPickerDialogLegacy)); this.kpnlBack = new Krypton.Toolkit.KryptonPanel(); this.scpColours = new Krypton.Toolkit.Suite.Extended.Drawing.Suite.ScreenColourPickerControl(); this.ceColour = new Krypton.Toolkit.Suite.Extended.Drawing.Suite.ColourEditorUserControlLegacy(); this.cwSelectedColour = new Krypton.Toolkit.Suite.Extended.Drawing.Suite.ColourWheelControl(); this.cem = new Krypton.Toolkit.Suite.Extended.Drawing.Suite.ColourEditorManager(); this.kryptonButtonExtended1 = new Krypton.Toolkit.Suite.Extended.Standard.Controls.KryptonButtonExtended(); this.kbeCancel = new Krypton.Toolkit.Suite.Extended.Standard.Controls.KryptonButtonExtended(); this.kbeOk = new Krypton.Toolkit.Suite.Extended.Standard.Controls.KryptonButtonExtended(); this.cgColourPalette = new Cyotek.Windows.Forms.ColorGrid(); this.cpbColourPreview = new Krypton.Toolkit.Suite.Extended.Base.CircularPictureBox(); this.kbtneLoadColourPalette = new Krypton.Toolkit.Suite.Extended.Standard.Controls.KryptonButtonExtended(); ((System.ComponentModel.ISupportInitialize)(this.kpnlBack)).BeginInit(); this.kpnlBack.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cpbColourPreview)).BeginInit(); this.SuspendLayout(); // // kpnlBack // this.kpnlBack.Controls.Add(this.cgColourPalette); this.kpnlBack.Controls.Add(this.cpbColourPreview); this.kpnlBack.Controls.Add(this.scpColours); this.kpnlBack.Controls.Add(this.kryptonButtonExtended1); this.kpnlBack.Controls.Add(this.kbtneLoadColourPalette); this.kpnlBack.Controls.Add(this.ceColour); this.kpnlBack.Controls.Add(this.cwSelectedColour); this.kpnlBack.Controls.Add(this.kbeCancel); this.kpnlBack.Controls.Add(this.kbeOk); this.kpnlBack.Dock = System.Windows.Forms.DockStyle.Fill; this.kpnlBack.Location = new System.Drawing.Point(0, 0); this.kpnlBack.Name = "kpnlBack"; this.kpnlBack.Size = new System.Drawing.Size(647, 541); this.kpnlBack.TabIndex = 0; // // scpColours // this.scpColours.Colour = System.Drawing.Color.Empty; this.scpColours.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.eyedropper; this.scpColours.Location = new System.Drawing.Point(501, 144); this.scpColours.Name = "scpColours"; this.scpColours.Size = new System.Drawing.Size(130, 131); // // ceColour // this.ceColour.BackColor = System.Drawing.Color.Transparent; this.ceColour.Location = new System.Drawing.Point(249, 12); this.ceColour.Name = "ceColour"; this.ceColour.Size = new System.Drawing.Size(246, 321); this.ceColour.TabIndex = 1; // // cwSelectedColour // this.cwSelectedColour.BackColor = System.Drawing.Color.Transparent; this.cwSelectedColour.Location = new System.Drawing.Point(12, 12); this.cwSelectedColour.Name = "cwSelectedColour"; this.cwSelectedColour.Size = new System.Drawing.Size(231, 212); this.cwSelectedColour.TabIndex = 1; // // cem // this.cem.Color = System.Drawing.Color.Empty; this.cem.ColourWheel = this.cwSelectedColour; this.cem.ScreenColourPicker = this.scpColours; // // kryptonButtonExtended1 // this.kryptonButtonExtended1.Image = null; this.kryptonButtonExtended1.Location = new System.Drawing.Point(42, 308); this.kryptonButtonExtended1.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.Name = "kryptonButtonExtended1"; this.kryptonButtonExtended1.OverrideDefault.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.OverrideDefaultBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideDefaultShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocus.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.OverrideFocus.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.OverrideFocusBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.OverrideFocusShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.Size = new System.Drawing.Size(23, 23); this.kryptonButtonExtended1.StateCommon.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateCommonBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateCommonShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabled.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateDisabledBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateDisabledShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressed.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StatePressed.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StatePressedBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StatePressedShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonButtonExtended1.StateTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingBorderColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingBorderColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kryptonButtonExtended1.StateTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonButtonExtended1.TabIndex = 0; this.kryptonButtonExtended1.Values.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_save; this.kryptonButtonExtended1.Values.Text = ""; // // kbeCancel // this.kbeCancel.Image = null; this.kbeCancel.Location = new System.Drawing.Point(501, 64); this.kbeCancel.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.Name = "kbeCancel"; this.kbeCancel.OverrideDefault.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.OverrideDefaultBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideDefaultShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocus.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.OverrideFocus.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.OverrideFocusBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.OverrideFocusShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.Size = new System.Drawing.Size(130, 38); this.kbeCancel.StateCommon.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateCommonBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateCommonBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateCommonBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateCommonBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateCommonLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateCommonLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateCommonShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateCommonShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateDisabled.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateDisabledBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateDisabledShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateNormalBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateNormalBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateNormalLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateNormalShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StatePressed.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StatePressed.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StatePressedBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.StatePressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StatePressedBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.StatePressedBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StatePressedLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StatePressedLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StatePressedShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StatePressedShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeCancel.StateTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingBorderColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingBorderColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kbeCancel.StateTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kbeCancel.TabIndex = 2; this.kbeCancel.Values.Text = "Can&cel"; // // kbeOk // this.kbeOk.Image = null; this.kbeOk.Location = new System.Drawing.Point(501, 20); this.kbeOk.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.Name = "kbeOk"; this.kbeOk.OverrideDefault.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.OverrideDefaultBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideDefaultShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideFocus.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.OverrideFocus.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.OverrideFocusBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.OverrideFocusShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.Size = new System.Drawing.Size(130, 38); this.kbeOk.StateCommon.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateCommonBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.StateCommonBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateCommonBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.StateCommonBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateCommonLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateCommonLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateCommonShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateCommonShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateDisabled.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateDisabledBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.StateDisabledBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateDisabledBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.StateDisabledBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateDisabledLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateDisabledLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateDisabledShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateDisabledShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.StateNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateNormalBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.StateNormalBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateNormalLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateNormalShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StatePressed.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StatePressed.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StatePressedBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.StatePressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.StatePressedBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.StatePressedBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.StatePressedLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StatePressedLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StatePressedShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StatePressedShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbeOk.StateTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kbeOk.StateTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateTrackingBorderColourOne = System.Drawing.Color.Empty; this.kbeOk.StateTrackingBorderColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.StateTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kbeOk.StateTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kbeOk.TabIndex = 1; this.kbeOk.Values.Text = "&Ok"; // // cgColourPalette // this.cgColourPalette.BackColor = System.Drawing.Color.Transparent; this.cgColourPalette.Location = new System.Drawing.Point(12, 337); this.cgColourPalette.Name = "cgColourPalette"; this.cgColourPalette.Size = new System.Drawing.Size(247, 180); this.cgColourPalette.TabIndex = 4; // // cpbColourPreview // this.cpbColourPreview.BackColor = System.Drawing.SystemColors.Control; this.cpbColourPreview.Location = new System.Drawing.Point(501, 397); this.cpbColourPreview.Name = "cpbColourPreview"; this.cpbColourPreview.Size = new System.Drawing.Size(130, 120); this.cpbColourPreview.TabIndex = 3; this.cpbColourPreview.TabStop = false; this.cpbColourPreview.ToolTipValues = null; // // kbtneLoadColourPalette // this.kbtneLoadColourPalette.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.Location = new System.Drawing.Point(12, 308); this.kbtneLoadColourPalette.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.Name = "kbtneLoadColourPalette"; this.kbtneLoadColourPalette.OverrideDefault.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.OverrideDefault.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.OverrideDefault.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.OverrideDefaultBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideDefaultShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocus.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.OverrideFocus.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.OverrideFocus.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.OverrideFocus.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.OverrideFocusBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.OverrideFocusShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.Size = new System.Drawing.Size(23, 23); this.kbtneLoadColourPalette.StateCommon.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateCommon.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateCommon.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateCommonBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateCommonShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabled.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateDisabled.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateDisabled.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateDisabledBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateDisabledShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateNormal.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateNormal.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressed.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StatePressed.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StatePressed.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StatePressed.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StatePressedBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StatePressedShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateTracking.Content.LongText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kbtneLoadColourPalette.StateTracking.Content.ShortText.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.StateTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingBorderColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingBorderColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.StateTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kbtneLoadColourPalette.TabIndex = 1; this.kbtneLoadColourPalette.ToolTipValues.Description = "Load a custom palette."; this.kbtneLoadColourPalette.ToolTipValues.Heading = "Custom Palette"; this.kbtneLoadColourPalette.ToolTipValues.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.Values.Image = global::Krypton.Toolkit.Suite.Extended.Dialogs.Properties.Resources.palette_load; this.kbtneLoadColourPalette.Values.Text = ""; // // ColourPickerDialog // this.ClientSize = new System.Drawing.Size(647, 541); this.Controls.Add(this.kpnlBack); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColourPickerDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "Colour Dialog"; ((System.ComponentModel.ISupportInitialize)(this.kpnlBack)).EndInit(); this.kpnlBack.ResumeLayout(false); this.kpnlBack.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.cpbColourPreview)).EndInit(); this.ResumeLayout(false); }
void ColorGridOnClick(object objSrc, EventArgs args) { ColorGrid clrgrid = (ColorGrid)objSrc; lbl.ForeColor = clrgrid.SelectedColor; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.okButton = new System.Windows.Forms.Button(); this.cancelButton = new System.Windows.Forms.Button(); this.previewPanel = new System.Windows.Forms.Panel(); this.loadPaletteButton = new System.Windows.Forms.Button(); this.savePaletteButton = new System.Windows.Forms.Button(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.screenColorPicker = new Cyotek.Windows.Forms.ScreenColorPicker(); this.colorWheel = new Cyotek.Windows.Forms.ColorWheel(); this.colorEditor = new Cyotek.Windows.Forms.ColorEditor(); this.colorGrid = new Cyotek.Windows.Forms.ColorGrid(); this.colorEditorManager = new Cyotek.Windows.Forms.ColorEditorManager(); this.SuspendLayout(); // // okButton // this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.okButton.Location = new System.Drawing.Point(453, 12); this.okButton.Name = "okButton"; this.okButton.Size = new System.Drawing.Size(75, 23); this.okButton.TabIndex = 1; this.okButton.Text = "OK"; this.okButton.UseVisualStyleBackColor = true; this.okButton.Click += new System.EventHandler(this.okButton_Click); // // cancelButton // this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cancelButton.Location = new System.Drawing.Point(453, 41); this.cancelButton.Name = "cancelButton"; this.cancelButton.Size = new System.Drawing.Size(75, 23); this.cancelButton.TabIndex = 2; this.cancelButton.Text = "Cancel"; this.cancelButton.UseVisualStyleBackColor = true; this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); // // previewPanel // this.previewPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.previewPanel.Location = new System.Drawing.Point(453, 203); this.previewPanel.Name = "previewPanel"; this.previewPanel.Size = new System.Drawing.Size(75, 47); this.previewPanel.TabIndex = 3; // // loadPaletteButton // this.loadPaletteButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.loadPaletteButton.Image = global::YnoteThemeGenerator.Properties.Resources.palette_load; this.loadPaletteButton.Location = new System.Drawing.Point(12, 147); this.loadPaletteButton.Name = "loadPaletteButton"; this.loadPaletteButton.Size = new System.Drawing.Size(23, 23); this.loadPaletteButton.TabIndex = 5; this.toolTip.SetToolTip(this.loadPaletteButton, "Load Palette"); this.loadPaletteButton.UseVisualStyleBackColor = false; this.loadPaletteButton.Click += new System.EventHandler(this.loadPaletteButton_Click); // // savePaletteButton // this.savePaletteButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.savePaletteButton.Image = global::YnoteThemeGenerator.Properties.Resources.palette_save; this.savePaletteButton.Location = new System.Drawing.Point(34, 147); this.savePaletteButton.Name = "savePaletteButton"; this.savePaletteButton.Size = new System.Drawing.Size(23, 23); this.savePaletteButton.TabIndex = 6; this.toolTip.SetToolTip(this.savePaletteButton, "Save Palette"); this.savePaletteButton.UseVisualStyleBackColor = false; this.savePaletteButton.Click += new System.EventHandler(this.savePaletteButton_Click); // // screenColorPicker // this.screenColorPicker.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.screenColorPicker.Color = System.Drawing.Color.Black; this.screenColorPicker.Image = global::YnoteThemeGenerator.Properties.Resources.eyedropper1; this.screenColorPicker.Location = new System.Drawing.Point(453, 83); this.screenColorPicker.Name = "screenColorPicker"; this.screenColorPicker.Size = new System.Drawing.Size(73, 85); this.toolTip.SetToolTip(this.screenColorPicker, "Click and drag to select screen color"); this.screenColorPicker.Zoom = 6; // // colorWheel // this.colorWheel.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.colorWheel.Location = new System.Drawing.Point(12, 12); this.colorWheel.Name = "colorWheel"; this.colorWheel.Size = new System.Drawing.Size(192, 147); this.colorWheel.TabIndex = 4; // // colorEditor // this.colorEditor.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.colorEditor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.colorEditor.Location = new System.Drawing.Point(210, 12); this.colorEditor.Name = "colorEditor"; this.colorEditor.Size = new System.Drawing.Size(230, 238); this.colorEditor.TabIndex = 0; // // colorGrid // this.colorGrid.AutoAddColors = false; this.colorGrid.CellBorderStyle = Cyotek.Windows.Forms.ColorCellBorderStyle.None; this.colorGrid.EditMode = Cyotek.Windows.Forms.ColorEditingMode.Both; this.colorGrid.Location = new System.Drawing.Point(12, 176); this.colorGrid.Name = "colorGrid"; this.colorGrid.Padding = new System.Windows.Forms.Padding(0); this.colorGrid.Palette = Cyotek.Windows.Forms.ColorPalette.Paint; this.colorGrid.SelectedCellStyle = Cyotek.Windows.Forms.ColorGridSelectedCellStyle.Standard; this.colorGrid.ShowCustomColors = false; this.colorGrid.Size = new System.Drawing.Size(192, 72); this.colorGrid.Spacing = new System.Drawing.Size(0, 0); this.colorGrid.TabIndex = 7; // // colorEditorManager // this.colorEditorManager.ColorEditor = this.colorEditor; this.colorEditorManager.ColorGrid = this.colorGrid; this.colorEditorManager.ColorWheel = this.colorWheel; this.colorEditorManager.ScreenColorPicker = this.screenColorPicker; this.colorEditorManager.ColorChanged += new System.EventHandler(this.colorEditorManager_ColorChanged); // // ColorPickerDialog // this.AcceptButton = this.okButton; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.cancelButton; this.ClientSize = new System.Drawing.Size(540, 262); this.Controls.Add(this.savePaletteButton); this.Controls.Add(this.loadPaletteButton); this.Controls.Add(this.previewPanel); this.Controls.Add(this.cancelButton); this.Controls.Add(this.okButton); this.Controls.Add(this.screenColorPicker); this.Controls.Add(this.colorWheel); this.Controls.Add(this.colorEditor); this.Controls.Add(this.colorGrid); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorPickerDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Color Picker"; this.ResumeLayout(false); this.PerformLayout(); }
void ColorGridOnColorChanged(object sender, EventArgs args) { ColorGrid clrgrid = sender as ColorGrid; this.Background = new SolidColorBrush(clrgrid.SelectedColor); }
private void InitializeComponent() { this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); this.cgColour = new Cyotek.Windows.Forms.ColorGrid(); this.tspeColourGridActions = new Krypton.Toolkit.Suite.Extended.Floating.Toolbars.ToolStripPanelExtened(); this.ftsColourGridActions = new Krypton.Toolkit.Suite.Extended.Floating.Toolbars.FloatableToolStrip(); this.tsbSavePalette = new System.Windows.Forms.ToolStripButton(); this.tsbLoadPalette = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.tspeColourGridActions.SuspendLayout(); this.ftsColourGridActions.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.cgColour); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 25); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(247, 165); this.kryptonPanel1.TabIndex = 2; // // cgColour // this.cgColour.BackColor = System.Drawing.Color.Transparent; this.cgColour.Dock = System.Windows.Forms.DockStyle.Fill; this.cgColour.Location = new System.Drawing.Point(0, 0); this.cgColour.Name = "cgColour"; this.cgColour.Size = new System.Drawing.Size(247, 165); this.cgColour.TabIndex = 3; // // tspeColourGridActions // this.tspeColourGridActions.Controls.Add(this.ftsColourGridActions); this.tspeColourGridActions.Dock = System.Windows.Forms.DockStyle.Top; this.tspeColourGridActions.Location = new System.Drawing.Point(0, 0); this.tspeColourGridActions.Name = "tspeColourGridActions"; this.tspeColourGridActions.Orientation = System.Windows.Forms.Orientation.Horizontal; this.tspeColourGridActions.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.tspeColourGridActions.Size = new System.Drawing.Size(247, 25); // // ftsColourGridActions // this.ftsColourGridActions.Dock = System.Windows.Forms.DockStyle.None; this.ftsColourGridActions.FloatingToolBarWindowText = "Tool Bar"; this.ftsColourGridActions.Font = new System.Drawing.Font("Segoe UI", 9F); this.ftsColourGridActions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbSavePalette, this.tsbLoadPalette }); this.ftsColourGridActions.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.ftsColourGridActions.Location = new System.Drawing.Point(3, 0); this.ftsColourGridActions.Name = "ftsColourGridActions"; this.ftsColourGridActions.Size = new System.Drawing.Size(58, 25); this.ftsColourGridActions.TabIndex = 0; // // tsbSavePalette // this.tsbSavePalette.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbSavePalette.Image = global::Krypton.Toolkit.Suite.Extended.Drawing.Suite.Properties.Resources.palette_save; this.tsbSavePalette.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbSavePalette.Name = "tsbSavePalette"; this.tsbSavePalette.Size = new System.Drawing.Size(23, 22); this.tsbSavePalette.Text = "Save Palette"; this.tsbSavePalette.Click += new System.EventHandler(this.tsbSavePalette_Click); // // tsbLoadPalette // this.tsbLoadPalette.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbLoadPalette.Image = global::Krypton.Toolkit.Suite.Extended.Drawing.Suite.Properties.Resources.palette_load; this.tsbLoadPalette.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbLoadPalette.Name = "tsbLoadPalette"; this.tsbLoadPalette.Size = new System.Drawing.Size(23, 22); this.tsbLoadPalette.Text = "Load Palette"; this.tsbLoadPalette.Click += new System.EventHandler(this.tsbLoadPalette_Click); // // ColourGridDialog // this.ClientSize = new System.Drawing.Size(247, 190); this.Controls.Add(this.kryptonPanel1); this.Controls.Add(this.tspeColourGridActions); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColourGridDialog"; this.Text = "Colour Grid"; this.Load += new System.EventHandler(this.ColourGridDialog_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.tspeColourGridActions.ResumeLayout(false); this.tspeColourGridActions.PerformLayout(); this.ftsColourGridActions.ResumeLayout(false); this.ftsColourGridActions.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void statusStrip_MouseHover(object sender, EventArgs e) { ColorGrid.Show(); }
private void colourGrid_MouseEnter(object sender, EventArgs e) { ColorGrid.Focus(); }
private void ColorGrid_OnMouseRightButtonDown(object sender, MouseButtonEventArgs e) { _contextMenuMouseLocation = e.GetPosition(ColorGrid); _contextMenuColorPatch = ColorGrid.GetColorPatchAt(e.GetPosition(ColorGrid)); OpenColorPatchContextMenu(); }