From e55452de1924a4776198452afd98e3703a881328 Mon Sep 17 00:00:00 2001 From: Peter Wagner Date: Sat, 24 Dec 2022 10:25:09 +0000 Subject: [PATCH] * Fix KryptonMessageBox fallout --- .gitignore | 1 + Source/Krypton Explorer/Form1.Designer.cs | 30 +++-- Source/Krypton Explorer/Form1.cs | 16 +-- ...n Toolkit Examples 2022 (Debug) - Dev.sln | 2 +- .../KryptonLabel Examples/Form1.Designer.cs | 101 ++------------- .../KryptonLabel Examples/Form1.resx | 12 +- .../Form1.Designer.cs | 39 ++++++ .../KryptonLinkWrapLabel Example/Form1.cs | 12 ++ .../KryptonLinkWrapLabel Example/Form1.resx | 120 ++++++++++++++++++ .../KryptonLinkWrapLabel Example/Krypton.ico | Bin 0 -> 18718 bytes .../KryptonLinkWrapLabel Example 2022.csproj | 41 ++++++ .../KryptonLinkWrapLabel Example/Program.cs | 17 +++ .../Form1.Designer.cs | 112 ++++++++++++++-- .../KryptonWrapLabel Examples/Form1.cs | 7 + .../KryptonWrapLabel Examples/Form1.resx | 4 + 15 files changed, 388 insertions(+), 126 deletions(-) create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.Designer.cs create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.cs create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.resx create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Krypton.ico create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/KryptonLinkWrapLabel Example 2022.csproj create mode 100644 Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Program.cs diff --git a/.gitignore b/.gitignore index 67db63af..2a80524e 100644 --- a/.gitignore +++ b/.gitignore @@ -352,3 +352,4 @@ MigrationBackup/ /Source/WixInstaller/WixInstaller.net50/BasePath50.wxs /Source/WixInstaller/WixInstaller.net48/BasePath48.wxs /Source/WixInstaller/WixInstaller.net60/BasePath60.wxs +Source/Krypton Toolkit Examples/Temp.txt diff --git a/Source/Krypton Explorer/Form1.Designer.cs b/Source/Krypton Explorer/Form1.Designer.cs index ec44f348..fd5b0458 100644 --- a/Source/Krypton Explorer/Form1.Designer.cs +++ b/Source/Krypton Explorer/Form1.Designer.cs @@ -192,6 +192,7 @@ private void InitializeComponent() this.tslVersion = new System.Windows.Forms.ToolStripStatusLabel(); this.kryptonManager1 = new Krypton.Toolkit.KryptonManager(this.components); this.bgwDownloadDocumentation = new System.ComponentModel.BackgroundWorker(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelFill)).BeginInit(); this.kryptonPanelFill.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator)).BeginInit(); @@ -285,7 +286,7 @@ private void InitializeComponent() this.kryptonPageReleases, this.kpChangeLog}); this.kryptonNavigator.Panel.PanelBackStyle = Krypton.Toolkit.PaletteBackStyle.PanelAlternate; - this.kryptonNavigator.SelectedIndex = 9; + this.kryptonNavigator.SelectedIndex = 0; this.kryptonNavigator.Size = new System.Drawing.Size(683, 405); this.kryptonNavigator.StateCommon.Bar.BarPaddingInside = new System.Windows.Forms.Padding(-1); this.kryptonNavigator.StateCommon.Bar.BarPaddingOnly = new System.Windows.Forms.Padding(-1); @@ -308,7 +309,7 @@ private void InitializeComponent() this.kryptonPageToolkit.LastVisibleSet = true; this.kryptonPageToolkit.MinimumSize = new System.Drawing.Size(50, 50); this.kryptonPageToolkit.Name = "kryptonPageToolkit"; - this.kryptonPageToolkit.Size = new System.Drawing.Size(568, 403); + this.kryptonPageToolkit.Size = new System.Drawing.Size(566, 403); this.kryptonPageToolkit.Text = "Toolkit"; this.kryptonPageToolkit.TextTitle = ""; this.kryptonPageToolkit.ToolTipTitle = "Page ToolTip"; @@ -338,7 +339,7 @@ private void InitializeComponent() this.kryptonPage1, this.kryptonPage2}); this.kryptonNavigatorToolkit.SelectedIndex = 0; - this.kryptonNavigatorToolkit.Size = new System.Drawing.Size(532, 336); + this.kryptonNavigatorToolkit.Size = new System.Drawing.Size(530, 336); this.kryptonNavigatorToolkit.StateCommon.HeaderGroup.Border.DrawBorders = Krypton.Toolkit.PaletteDrawBorders.None; this.kryptonNavigatorToolkit.TabIndex = 0; this.kryptonNavigatorToolkit.Text = "kryptonNavigator1"; @@ -346,6 +347,7 @@ private void InitializeComponent() // kryptonPage1 // this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(150, 150); + this.kryptonPage1.Controls.Add(this.linkLabel1); this.kryptonPage1.Controls.Add(this.kllKryptonScrollBars); this.kryptonPage1.Controls.Add(this.kllKryptonHelpIcon); this.kryptonPage1.Controls.Add(this.kllKryptonWebBrowser); @@ -392,7 +394,7 @@ private void InitializeComponent() this.kryptonPage1.LastVisibleSet = true; this.kryptonPage1.MinimumSize = new System.Drawing.Size(50, 50); this.kryptonPage1.Name = "kryptonPage1"; - this.kryptonPage1.Size = new System.Drawing.Size(532, 311); + this.kryptonPage1.Size = new System.Drawing.Size(530, 309); this.kryptonPage1.Text = "Component Examples"; this.kryptonPage1.ToolTipTitle = "Page ToolTip"; this.kryptonPage1.UniqueName = "11B6F5673ADC4D0611B6F5673ADC4D06"; @@ -1811,7 +1813,6 @@ private void InitializeComponent() // this.kcmbTheme.CornerRoundingRadius = -1F; this.kcmbTheme.CueHint.Padding = new System.Windows.Forms.Padding(0); - this.kcmbTheme.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.kcmbTheme.DropDownWidth = 363; this.kcmbTheme.IntegralHeight = false; this.kcmbTheme.Location = new System.Drawing.Point(118, 50); @@ -1907,7 +1908,7 @@ private void InitializeComponent() this.kbtnDownloadLatestDocumentation.CornerRoundingRadius = -1F; this.kbtnDownloadLatestDocumentation.Location = new System.Drawing.Point(31, 106); this.kbtnDownloadLatestDocumentation.Name = "kbtnDownloadLatestDocumentation"; - this.kbtnDownloadLatestDocumentation.Size = new System.Drawing.Size(279, 33); + this.kbtnDownloadLatestDocumentation.Size = new System.Drawing.Size(281, 33); this.kbtnDownloadLatestDocumentation.StateCommon.Content.LongText.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnDownloadLatestDocumentation.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnDownloadLatestDocumentation.TabIndex = 7; @@ -1952,7 +1953,7 @@ private void InitializeComponent() this.kpChangeLog.LastVisibleSet = true; this.kpChangeLog.MinimumSize = new System.Drawing.Size(150, 50); this.kpChangeLog.Name = "kpChangeLog"; - this.kpChangeLog.Size = new System.Drawing.Size(568, 403); + this.kpChangeLog.Size = new System.Drawing.Size(566, 403); this.kpChangeLog.Text = "Changelog"; this.kpChangeLog.TextTitle = ""; this.kpChangeLog.ToolTipTitle = "Page ToolTip"; @@ -1990,7 +1991,7 @@ private void InitializeComponent() this.kbtnViewLatestReleaseNotes.CornerRoundingRadius = -1F; this.kbtnViewLatestReleaseNotes.Location = new System.Drawing.Point(31, 48); this.kbtnViewLatestReleaseNotes.Name = "kbtnViewLatestReleaseNotes"; - this.kbtnViewLatestReleaseNotes.Size = new System.Drawing.Size(350, 33); + this.kbtnViewLatestReleaseNotes.Size = new System.Drawing.Size(352, 33); this.kbtnViewLatestReleaseNotes.StateCommon.Content.LongText.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnViewLatestReleaseNotes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnViewLatestReleaseNotes.TabIndex = 13; @@ -2118,7 +2119,7 @@ private void InitializeComponent() // // kryptonManager1 // - this.kryptonManager1.GlobalPaletteMode = Krypton.Toolkit.PaletteModeManager.Microsoft365Black; + this.kryptonManager1.GlobalPaletteMode = Krypton.Toolkit.PaletteModeManager.SparkleBlueDarkMode; // // bgwDownloadDocumentation // @@ -2128,6 +2129,16 @@ private void InitializeComponent() this.bgwDownloadDocumentation.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwDownloadDocumentation_ProgressChanged); this.bgwDownloadDocumentation.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwDownloadDocumentation_RunWorkerCompleted); // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(167, 270); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(53, 13); + this.linkLabel1.TabIndex = 43; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "linkLabel1"; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -2366,6 +2377,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripProgressBar tspbDownloadStatus; private System.ComponentModel.BackgroundWorker bgwDownloadDocumentation; private Krypton.Toolkit.KryptonButton kbtnLaunchHelp; + private System.Windows.Forms.LinkLabel linkLabel1; } } diff --git a/Source/Krypton Explorer/Form1.cs b/Source/Krypton Explorer/Form1.cs index 0ed979ec..174110e0 100644 --- a/Source/Krypton Explorer/Form1.cs +++ b/Source/Krypton Explorer/Form1.cs @@ -425,7 +425,7 @@ private void LaunchApplication(string exampleName) } catch (Exception ex) { - KryptonMessageBox.Show(this, ex.Message, @"Explorer", MessageBoxButtons.OK, + KryptonMessageBox.Show(this, ex.Message, @"Explorer", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error); } finally @@ -448,12 +448,12 @@ private void LaunchPaletteDesignerApplication() { KryptonMessageBox.Show( "The Palette Designer is not currently installed. Please download the latest installation package from:\nhttps://github.com/Krypton-Suite/Theme-Palettes/releases", - @"Application Not Installed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information); + @"Application Not Installed", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information); } } catch (Exception e) { - KryptonMessageBox.Show(this, e.Message, @"Explorer", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error); + KryptonMessageBox.Show(this, e.Message, @"Explorer", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error); } finally { @@ -475,12 +475,12 @@ private void LaunchPaletteUpgradeToolApplication() { KryptonMessageBox.Show( "The Palette Upgrade Tool is not currently installed. Please download the latest installation package from:\nhttps://github.com/Krypton-Suite/Theme-Palettes/releases", - @"Application Not Installed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information); + @"Application Not Installed", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information); } } catch (Exception e) { - KryptonMessageBox.Show(this, e.Message, @"Explorer", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error); + KryptonMessageBox.Show(this, e.Message, @"Explorer", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error); } finally { @@ -556,7 +556,7 @@ private void DownloadFileCompleted(object sender, AsyncCompletedEventArgs e) { DialogResult result = KryptonMessageBox.Show(@"Download completed. Install now?", @"Download Successful", - MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information); + KryptonMessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information); if (result == DialogResult.Yes) { @@ -603,7 +603,7 @@ private void bgwDownloadDocumentation_ProgressChanged(object sender, ProgressCha private void bgwDownloadDocumentation_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { DialogResult result = KryptonMessageBox.Show(@"Download completed. Install now?", @"Download Successful", - MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information); + KryptonMessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information); if (result == DialogResult.Yes) { @@ -637,7 +637,7 @@ private void kbtnLaunchHelp_Click(object sender, EventArgs e) } catch (Exception exc) { - KryptonMessageBox.Show($@"Error: {exc}", @"Unexpected Error", MessageBoxButtons.OK, + KryptonMessageBox.Show($@"Error: {exc}", @"Unexpected Error", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error); } } diff --git a/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln b/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln index 3be904e7..ef7b9908 100644 --- a/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln +++ b/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln @@ -145,7 +145,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KryptonListView Examples 20 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Krypton Theme Selector 2022", "Krypton Theme Selector\Krypton Theme Selector 2022.csproj", "{D0610E53-93C4-41AE-9787-E537ECC86307}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KryptonStringCollectionEditor Examples 2022", "KryptonStringCollectionEditor Examples 2022\KryptonStringCollectionEditor Examples 2022.csproj", "{6D13D844-0181-44BB-B9E7-1FD1D175F574}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KryptonStringCollectionEditor Examples 2022", "KryptonStringCollectionEditor Examples 2022\KryptonStringCollectionEditor Examples 2022.csproj", "{6D13D844-0181-44BB-B9E7-1FD1D175F574}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.Designer.cs index 4cd34ee6..974f01d7 100644 --- a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.Designer.cs @@ -110,7 +110,7 @@ private void InitializeComponent() this.kryptonLabel1.Location = new System.Drawing.Point(168, 45); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Orientation = Krypton.Toolkit.VisualOrientation.Left; - this.kryptonLabel1.Size = new System.Drawing.Size(24, 138); + this.kryptonLabel1.Size = new System.Drawing.Size(20, 115); this.kryptonLabel1.TabIndex = 4; this.kryptonLabel1.Values.ExtraText = "Left"; this.kryptonLabel1.Values.Image = ((System.Drawing.Image)(resources.GetObject("kryptonLabel1.Values.Image"))); @@ -122,7 +122,7 @@ private void InitializeComponent() this.label4Professional.Location = new System.Drawing.Point(15, 145); this.label4Professional.Name = "label4Professional"; this.label4Professional.Orientation = Krypton.Toolkit.VisualOrientation.Bottom; - this.label4Professional.Size = new System.Drawing.Size(161, 24); + this.label4Professional.Size = new System.Drawing.Size(133, 20); this.label4Professional.TabIndex = 3; this.label4Professional.Values.Image = ((System.Drawing.Image)(resources.GetObject("label4Professional.Values.Image"))); this.label4Professional.Values.Text = "Orientation Bottom"; @@ -132,7 +132,7 @@ private void InitializeComponent() // this.label3Professional.Location = new System.Drawing.Point(14, 118); this.label3Professional.Name = "label3Professional"; - this.label3Professional.Size = new System.Drawing.Size(136, 24); + this.label3Professional.Size = new System.Drawing.Size(114, 20); this.label3Professional.TabIndex = 2; this.label3Professional.Values.Image = ((System.Drawing.Image)(resources.GetObject("label3Professional.Values.Image"))); this.label3Professional.Values.Text = "Orientation Top"; @@ -143,7 +143,7 @@ private void InitializeComponent() this.label5Professional.Location = new System.Drawing.Point(195, 45); this.label5Professional.Name = "label5Professional"; this.label5Professional.Orientation = Krypton.Toolkit.VisualOrientation.Right; - this.label5Professional.Size = new System.Drawing.Size(24, 149); + this.label5Professional.Size = new System.Drawing.Size(20, 123); this.label5Professional.TabIndex = 5; this.label5Professional.Values.ExtraText = "Right"; this.label5Professional.Values.Image = ((System.Drawing.Image)(resources.GetObject("label5Professional.Values.Image"))); @@ -154,7 +154,7 @@ private void InitializeComponent() // this.label2Professional.Location = new System.Drawing.Point(14, 61); this.label2Professional.Name = "label2Professional"; - this.label2Professional.Size = new System.Drawing.Size(104, 24); + this.label2Professional.Size = new System.Drawing.Size(85, 20); this.label2Professional.TabIndex = 1; this.label2Professional.Values.Text = "Text (Normal)"; this.label2Professional.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonLabel_MouseDown); @@ -164,7 +164,7 @@ private void InitializeComponent() this.label1Professional.LabelStyle = Krypton.Toolkit.LabelStyle.TitleControl; this.label1Professional.Location = new System.Drawing.Point(14, 29); this.label1Professional.Name = "label1Professional"; - this.label1Professional.Size = new System.Drawing.Size(134, 35); + this.label1Professional.Size = new System.Drawing.Size(108, 29); this.label1Professional.TabIndex = 0; this.label1Professional.Values.Text = "Text (Title)"; this.label1Professional.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonLabel_MouseDown); @@ -186,43 +186,21 @@ private void InitializeComponent() this.label3Custom.Location = new System.Drawing.Point(14, 125); this.label3Custom.Name = "label3Custom"; this.label3Custom.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalSystem; - this.label3Custom.Size = new System.Drawing.Size(202, 65); - this.label3Custom.StateNormal.Draw = Krypton.Toolkit.InheritBool.Inherit; - this.label3Custom.StateNormal.DrawFocus = Krypton.Toolkit.InheritBool.Inherit; - this.label3Custom.StateNormal.Image.Effect = Krypton.Toolkit.PaletteImageEffect.Inherit; + this.label3Custom.Size = new System.Drawing.Size(168, 53); this.label3Custom.StateNormal.Image.ImageH = Krypton.Toolkit.PaletteRelativeAlign.Far; - this.label3Custom.StateNormal.Image.ImageV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.label3Custom.StateNormal.LongText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.label3Custom.StateNormal.LongText.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.label3Custom.StateNormal.LongText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.label3Custom.StateNormal.LongText.ColorAngle = 45F; this.label3Custom.StateNormal.LongText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.Sigma; this.label3Custom.StateNormal.LongText.Font = new System.Drawing.Font("Verdana", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3Custom.StateNormal.LongText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label3Custom.StateNormal.LongText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label3Custom.StateNormal.LongText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; this.label3Custom.StateNormal.LongText.MultiLine = Krypton.Toolkit.InheritBool.True; - this.label3Custom.StateNormal.LongText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label3Custom.StateNormal.LongText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; this.label3Custom.StateNormal.LongText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Center; - this.label3Custom.StateNormal.LongText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label3Custom.StateNormal.LongText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; - this.label3Custom.StateNormal.Padding = new System.Windows.Forms.Padding(-1); this.label3Custom.StateNormal.ShortText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.label3Custom.StateNormal.ShortText.Color2 = System.Drawing.Color.Blue; - this.label3Custom.StateNormal.ShortText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.label3Custom.StateNormal.ShortText.ColorAngle = 45F; this.label3Custom.StateNormal.ShortText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.Sigma; this.label3Custom.StateNormal.ShortText.Font = new System.Drawing.Font("Verdana", 14.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3Custom.StateNormal.ShortText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label3Custom.StateNormal.ShortText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label3Custom.StateNormal.ShortText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; - this.label3Custom.StateNormal.ShortText.MultiLine = Krypton.Toolkit.InheritBool.Inherit; - this.label3Custom.StateNormal.ShortText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label3Custom.StateNormal.ShortText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; this.label3Custom.StateNormal.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Near; - this.label3Custom.StateNormal.ShortText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label3Custom.StateNormal.ShortText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; this.label3Custom.TabIndex = 2; this.label3Custom.Values.ExtraText = "Extra Text\r\nOver Multi\r\nLines"; this.label3Custom.Values.Image = global::KryptonLabelExamples.Properties.Resources.sidebar_icon; @@ -234,36 +212,12 @@ private void InitializeComponent() this.label2Custom.Location = new System.Drawing.Point(14, 76); this.label2Custom.Name = "label2Custom"; this.label2Custom.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalSystem; - this.label2Custom.Size = new System.Drawing.Size(215, 40); - this.label2Custom.StateNormal.Draw = Krypton.Toolkit.InheritBool.Inherit; - this.label2Custom.StateNormal.DrawFocus = Krypton.Toolkit.InheritBool.Inherit; + this.label2Custom.Size = new System.Drawing.Size(178, 33); this.label2Custom.StateNormal.LongText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); this.label2Custom.StateNormal.LongText.Color2 = System.Drawing.Color.White; - this.label2Custom.StateNormal.LongText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.label2Custom.StateNormal.LongText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; this.label2Custom.StateNormal.LongText.Font = new System.Drawing.Font("Verdana", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2Custom.StateNormal.LongText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label2Custom.StateNormal.LongText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label2Custom.StateNormal.LongText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; - this.label2Custom.StateNormal.LongText.MultiLine = Krypton.Toolkit.InheritBool.Inherit; - this.label2Custom.StateNormal.LongText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.LongText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; - this.label2Custom.StateNormal.LongText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.LongText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.LongText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; - this.label2Custom.StateNormal.Padding = new System.Windows.Forms.Padding(-1); - this.label2Custom.StateNormal.ShortText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label2Custom.StateNormal.ShortText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.Inherit; this.label2Custom.StateNormal.ShortText.Font = new System.Drawing.Font("Verdana", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2Custom.StateNormal.ShortText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label2Custom.StateNormal.ShortText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label2Custom.StateNormal.ShortText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; - this.label2Custom.StateNormal.ShortText.MultiLine = Krypton.Toolkit.InheritBool.Inherit; - this.label2Custom.StateNormal.ShortText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.ShortText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; - this.label2Custom.StateNormal.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.ShortText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label2Custom.StateNormal.ShortText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; this.label2Custom.TabIndex = 1; this.label2Custom.Values.Image = ((System.Drawing.Image)(resources.GetObject("label2Custom.Values.Image"))); this.label2Custom.Values.Text = "Image Text"; @@ -274,38 +228,15 @@ private void InitializeComponent() this.label1Custom.Location = new System.Drawing.Point(14, 27); this.label1Custom.Name = "label1Custom"; this.label1Custom.PaletteMode = Krypton.Toolkit.PaletteMode.ProfessionalSystem; - this.label1Custom.Size = new System.Drawing.Size(203, 40); - this.label1Custom.StateNormal.Draw = Krypton.Toolkit.InheritBool.Inherit; - this.label1Custom.StateNormal.DrawFocus = Krypton.Toolkit.InheritBool.Inherit; + this.label1Custom.Size = new System.Drawing.Size(169, 33); this.label1Custom.StateNormal.LongText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); this.label1Custom.StateNormal.LongText.Color2 = System.Drawing.Color.White; - this.label1Custom.StateNormal.LongText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.label1Custom.StateNormal.LongText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; this.label1Custom.StateNormal.LongText.Font = new System.Drawing.Font("Verdana", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1Custom.StateNormal.LongText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label1Custom.StateNormal.LongText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label1Custom.StateNormal.LongText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; - this.label1Custom.StateNormal.LongText.MultiLine = Krypton.Toolkit.InheritBool.Inherit; - this.label1Custom.StateNormal.LongText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.LongText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; - this.label1Custom.StateNormal.LongText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.LongText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.LongText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; - this.label1Custom.StateNormal.Padding = new System.Windows.Forms.Padding(-1); this.label1Custom.StateNormal.ShortText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.label1Custom.StateNormal.ShortText.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); - this.label1Custom.StateNormal.ShortText.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.label1Custom.StateNormal.ShortText.ColorStyle = Krypton.Toolkit.PaletteColorStyle.Rounded; this.label1Custom.StateNormal.ShortText.Font = new System.Drawing.Font("Verdana", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1Custom.StateNormal.ShortText.Hint = Krypton.Toolkit.PaletteTextHint.Inherit; - this.label1Custom.StateNormal.ShortText.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.label1Custom.StateNormal.ShortText.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; - this.label1Custom.StateNormal.ShortText.MultiLine = Krypton.Toolkit.InheritBool.Inherit; - this.label1Custom.StateNormal.ShortText.MultiLineH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.ShortText.Prefix = Krypton.Toolkit.PaletteTextHotkeyPrefix.Inherit; - this.label1Custom.StateNormal.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.ShortText.TextV = Krypton.Toolkit.PaletteRelativeAlign.Inherit; - this.label1Custom.StateNormal.ShortText.Trim = Krypton.Toolkit.PaletteTextTrim.Inherit; this.label1Custom.TabIndex = 0; this.label1Custom.Values.ExtraText = "Extra Text"; this.label1Custom.Values.Image = ((System.Drawing.Image)(resources.GetObject("label1Custom.Values.Image"))); @@ -330,7 +261,7 @@ private void InitializeComponent() this.kryptonWrapLabel1.Location = new System.Drawing.Point(15, 52); this.kryptonWrapLabel1.Name = "kryptonWrapLabel1"; this.kryptonWrapLabel1.PaletteMode = Krypton.Toolkit.PaletteMode.Office2007Black; - this.kryptonWrapLabel1.Size = new System.Drawing.Size(420, 40); + this.kryptonWrapLabel1.Size = new System.Drawing.Size(338, 30); this.kryptonWrapLabel1.Text = "Fix bug \r\nhttps://github.com/Krypton-Suite/Standard-Toolkit/issues/150"; // // kryptonLabel2 @@ -338,7 +269,7 @@ private void InitializeComponent() this.kryptonLabel2.Location = new System.Drawing.Point(15, 21); this.kryptonLabel2.Name = "kryptonLabel2"; this.kryptonLabel2.PaletteMode = Krypton.Toolkit.PaletteMode.Office2007Black; - this.kryptonLabel2.Size = new System.Drawing.Size(109, 24); + this.kryptonLabel2.Size = new System.Drawing.Size(88, 20); this.kryptonLabel2.TabIndex = 0; this.kryptonLabel2.Values.Text = "kryptonLabel2"; // @@ -355,26 +286,20 @@ private void InitializeComponent() this.kryptonPanel2.Size = new System.Drawing.Size(125, 45); this.kryptonPanel2.StateCommon.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.kryptonPanel2.StateCommon.Color2 = System.Drawing.Color.Teal; - this.kryptonPanel2.StateCommon.ColorAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; this.kryptonPanel2.StateCommon.ColorAngle = 45F; - this.kryptonPanel2.StateCommon.ColorStyle = Krypton.Toolkit.PaletteColorStyle.Inherit; - this.kryptonPanel2.StateCommon.Draw = Krypton.Toolkit.InheritBool.Inherit; - this.kryptonPanel2.StateCommon.GraphicsHint = Krypton.Toolkit.PaletteGraphicsHint.Inherit; - this.kryptonPanel2.StateCommon.ImageAlign = Krypton.Toolkit.PaletteRectangleAlign.Inherit; - this.kryptonPanel2.StateCommon.ImageStyle = Krypton.Toolkit.PaletteImageStyle.Inherit; this.kryptonPanel2.TabIndex = 6; // // kryptonLabel3 // this.kryptonLabel3.Location = new System.Drawing.Point(10, 14); this.kryptonLabel3.Name = "kryptonLabel3"; - this.kryptonLabel3.Size = new System.Drawing.Size(109, 24); + this.kryptonLabel3.Size = new System.Drawing.Size(88, 20); this.kryptonLabel3.TabIndex = 6; this.kryptonLabel3.Values.Text = "kryptonLabel3"; // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(591, 532); this.Controls.Add(this.kryptonPanel2); diff --git a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.resx b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.resx index 86e63f7b..5863f8df 100644 --- a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.resx +++ b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Form1.resx @@ -121,7 +121,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 - JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6m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myCwyB5SC UI62gvTAQrlKQbkPGSgwrAxEvOWYjuHwWafvn2joPskv75u83+f5vUfyWrzL7j2brWj7dmSE8lzHTgoP IDLAfZa8w7Zts91XbGLk/xEIBG4UKrXLz9tzRidPQWdFFlrLL6LNtFTi4/BysYG7k3UEMW4eLpe7ITo6 @@ -225,7 +225,7 @@ iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 - JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsQAAALEAGtI711AAAFH0lE + JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsPAAALDwGS+QOlAAAFH0lE QVRIS52UaVBTVxxHo0kkUAK1VmUVVJZEpBgUlCUGSNgiJgPRUMRAQmIgYAARBFkENICUIBaJrMUFqSAI RFxYCoI62tJBsLaOUu3Y6VSLTukyY6c61l8jvg/9Ukx7Pr6559w3//vuIxnLWpYH1U+kzHZgR9+he4me 2QZKMI/JHyYzuAISaRmNWPb/cBckLhUk5j44duEG/HY1QKcfA0NaAVeZFlQ/JSguHGdi6X9nJVexmBmR diff --git a/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.Designer.cs new file mode 100644 index 00000000..bbd6865b --- /dev/null +++ b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace KryptonLinkWrapLabelExample +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.cs b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.cs new file mode 100644 index 00000000..27841dfd --- /dev/null +++ b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.cs @@ -0,0 +1,12 @@ +using Krypton.Toolkit; + +namespace KryptonLinkWrapLabelExample +{ + public partial class Form1 : KryptonForm + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.resx b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Krypton.ico b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Krypton.ico new file mode 100644 index 0000000000000000000000000000000000000000..f34ff6d68762919a11323ae6cdd66b85c2f708f4 GIT binary patch literal 18718 zcmeHPYfw~27QPHKz7taxu1U76HAP9KNK&!Njhix?G7l~HM>hE}yQxiWZ7Q4E-EvbY zNyT1`nf-oZD7)WQl;^n*?o#=P6WWR2pX{0b@5G4{h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Ri+C)+PkMPx2>y#Es?=~$xLBCz;4*m z2%CXzgeH#PY074MAcs>P`|%FY?&f2(+o|gxr`)zP1ph1acAPmJ?7 + + + net48;net6.0-windows;net7.0-windows + WinExe + KryptonLinkWrapLabelExample + Krypton Link Wrap Label Examples + Krypton.ico + false + false + true + AnyCPU + en + preview + + + + + + + + + + + + + + + + + + + + + + + + ..\..\..\Binaries\Krypton Demos\$(Configuration)\ + > + + \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Program.cs b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Program.cs new file mode 100644 index 00000000..8d612b65 --- /dev/null +++ b/Source/Krypton Toolkit Examples/KryptonLinkWrapLabel Example/Program.cs @@ -0,0 +1,17 @@ +namespace KryptonLinkWrapLabel_Example +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.Designer.cs index f71d6dab..b43537ea 100644 --- a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.Designer.cs @@ -33,13 +33,25 @@ private void InitializeComponent() this.propertyGrid = new System.Windows.Forms.PropertyGrid(); this.buttonClose = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.kryptonWrapLabel = new Krypton.Toolkit.KryptonWrapLabel(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.buttonTitle = new System.Windows.Forms.Button(); this.buttonNormal = new System.Windows.Forms.Button(); + this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.kpgLinkWrappedLabel = new Krypton.Toolkit.KryptonPropertyGrid(); + this.klwlblTest = new Krypton.Toolkit.KryptonLinkWrapLabel(); + this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); + this.kryptonWrapLabel = new Krypton.Toolkit.KryptonWrapLabel(); this.groupBox3.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit(); + this.kryptonGroupBox2.Panel.SuspendLayout(); + this.kryptonGroupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit(); + this.kryptonGroupBox1.Panel.SuspendLayout(); + this.kryptonGroupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox3 @@ -66,7 +78,7 @@ private void InitializeComponent() // // buttonClose // - this.buttonClose.Location = new System.Drawing.Point(506, 325); + this.buttonClose.Location = new System.Drawing.Point(500, 627); this.buttonClose.Name = "buttonClose"; this.buttonClose.Size = new System.Drawing.Size(75, 23); this.buttonClose.TabIndex = 3; @@ -84,17 +96,6 @@ private void InitializeComponent() this.groupBox1.TabStop = false; this.groupBox1.Text = "KryptonWrapLabel"; // - // kryptonWrapLabel - // - this.kryptonWrapLabel.AutoSize = false; - this.kryptonWrapLabel.Font = new System.Drawing.Font("Segoe UI", 9F); - this.kryptonWrapLabel.ForeColor = System.Drawing.Color.White; - this.kryptonWrapLabel.LabelStyle = Krypton.Toolkit.LabelStyle.NormalControl; - this.kryptonWrapLabel.Location = new System.Drawing.Point(14, 24); - this.kryptonWrapLabel.Name = "kryptonWrapLabel"; - this.kryptonWrapLabel.Size = new System.Drawing.Size(213, 186); - this.kryptonWrapLabel.Text = resources.GetString("kryptonWrapLabel.Text"); - // // groupBox2 // this.groupBox2.Controls.Add(this.buttonTitle); @@ -126,11 +127,82 @@ private void InitializeComponent() this.buttonNormal.UseVisualStyleBackColor = true; this.buttonNormal.Click += new System.EventHandler(this.buttonNormal_Click); // + // kryptonGroupBox2 + // + this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.GroupBoxCaption; + this.kryptonGroupBox2.GroupBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlGroupBox; + this.kryptonGroupBox2.GroupBorderStyle = Krypton.Toolkit.PaletteBorderStyle.ControlGroupBox; + this.kryptonGroupBox2.Location = new System.Drawing.Point(269, 325); + this.kryptonGroupBox2.Name = "kryptonGroupBox2"; + // + // kryptonGroupBox2.Panel + // + this.kryptonGroupBox2.Panel.Controls.Add(this.kpgLinkWrappedLabel); + this.kryptonGroupBox2.Size = new System.Drawing.Size(306, 296); + this.kryptonGroupBox2.TabIndex = 5; + this.kryptonGroupBox2.Values.Heading = "Properties for KryptonLinkWrapLabel"; + // + // kpgLinkWrappedLabel + // + this.kpgLinkWrappedLabel.CategoryForeColor = System.Drawing.Color.White; + this.kpgLinkWrappedLabel.Dock = System.Windows.Forms.DockStyle.Fill; + this.kpgLinkWrappedLabel.Font = new System.Drawing.Font("Segoe UI", 9F); + this.kpgLinkWrappedLabel.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(108)))), ((int)(((byte)(135))))); + this.kpgLinkWrappedLabel.HelpForeColor = System.Drawing.Color.White; + this.kpgLinkWrappedLabel.HelpVisible = false; + this.kpgLinkWrappedLabel.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(108)))), ((int)(((byte)(135))))); + this.kpgLinkWrappedLabel.Location = new System.Drawing.Point(0, 0); + this.kpgLinkWrappedLabel.Name = "kpgLinkWrappedLabel"; + this.kpgLinkWrappedLabel.SelectedObject = this.klwlblTest; + this.kpgLinkWrappedLabel.Size = new System.Drawing.Size(302, 272); + this.kpgLinkWrappedLabel.TabIndex = 0; + this.kpgLinkWrappedLabel.ToolbarVisible = false; + // + // klwlblTest + // + this.klwlblTest.AutoSize = false; + this.klwlblTest.Font = new System.Drawing.Font("Segoe UI", 9F); + this.klwlblTest.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); + this.klwlblTest.LabelStyle = Krypton.Toolkit.LabelStyle.NormalControl; + this.klwlblTest.Location = new System.Drawing.Point(11, 4); + this.klwlblTest.Name = "klwlblTest"; + this.klwlblTest.Size = new System.Drawing.Size(213, 192); + this.klwlblTest.Text = resources.GetString("klwlblTest.Text"); + this.klwlblTest.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.klwlblTest_LinkClicked); + // + // kryptonGroupBox1 + // + this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.GroupBoxCaption; + this.kryptonGroupBox1.GroupBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlGroupBox; + this.kryptonGroupBox1.GroupBorderStyle = Krypton.Toolkit.PaletteBorderStyle.ControlGroupBox; + this.kryptonGroupBox1.Location = new System.Drawing.Point(13, 326); + this.kryptonGroupBox1.Name = "kryptonGroupBox1"; + // + // kryptonGroupBox1.Panel + // + this.kryptonGroupBox1.Panel.Controls.Add(this.klwlblTest); + this.kryptonGroupBox1.Size = new System.Drawing.Size(240, 240); + this.kryptonGroupBox1.TabIndex = 4; + this.kryptonGroupBox1.Values.Heading = "KryptonLinkWrapLabel"; + // + // kryptonWrapLabel + // + this.kryptonWrapLabel.AutoSize = false; + this.kryptonWrapLabel.Font = new System.Drawing.Font("Segoe UI", 9F); + this.kryptonWrapLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); + this.kryptonWrapLabel.LabelStyle = Krypton.Toolkit.LabelStyle.NormalControl; + this.kryptonWrapLabel.Location = new System.Drawing.Point(14, 24); + this.kryptonWrapLabel.Name = "kryptonWrapLabel"; + this.kryptonWrapLabel.Size = new System.Drawing.Size(213, 186); + this.kryptonWrapLabel.Text = resources.GetString("kryptonWrapLabel.Text"); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(592, 359); + this.ClientSize = new System.Drawing.Size(592, 662); + this.Controls.Add(this.kryptonGroupBox2); + this.Controls.Add(this.kryptonGroupBox1); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.buttonClose); @@ -146,6 +218,14 @@ private void InitializeComponent() this.groupBox3.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit(); + this.kryptonGroupBox2.Panel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit(); + this.kryptonGroupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit(); + this.kryptonGroupBox1.Panel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit(); + this.kryptonGroupBox1.ResumeLayout(false); this.ResumeLayout(false); } @@ -160,6 +240,10 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonWrapLabel kryptonWrapLabel; private System.Windows.Forms.Button buttonNormal; private System.Windows.Forms.Button buttonTitle; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1; + private Krypton.Toolkit.KryptonLinkWrapLabel klwlblTest; + private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; + private Krypton.Toolkit.KryptonPropertyGrid kpgLinkWrappedLabel; } } diff --git a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.cs index 92c3c95b..5a0f346b 100644 --- a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.cs @@ -12,6 +12,7 @@ using System; using System.Windows.Forms; + using Krypton.Toolkit; namespace KryptonWrapLabelExamples @@ -35,5 +36,11 @@ private void buttonTitle_Click(object sender, EventArgs e) } private void buttonClose_Click(object sender, EventArgs e) => Close(); + + private void klwlblTest_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + KryptonMessageBox.Show(@"Hello world!", @"Test", KryptonMessageBoxButtons.OK, + KryptonMessageBoxIcon.Information); + } } } diff --git a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.resx b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.resx index c8b09fe8..a1b02c09 100644 --- a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.resx +++ b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Form1.resx @@ -117,6 +117,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.