From 2bbf9b5398d8233c9b151c54819d21fa39a30684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 20 Feb 2025 16:54:00 +0100 Subject: [PATCH] =?UTF-8?q?Trackbar=20eingef=C3=BCgt=20f=C3=BCr=20Icongr?= =?UTF-8?q?=C3=B6=C3=9Fe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QR-Code-Generator/Main.Designer.cs | 35 ++++++++++++++++++++++-------- QR-Code-Generator/Main.cs | 5 +++++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/QR-Code-Generator/Main.Designer.cs b/QR-Code-Generator/Main.Designer.cs index e28fa34..b1f96b0 100644 --- a/QR-Code-Generator/Main.Designer.cs +++ b/QR-Code-Generator/Main.Designer.cs @@ -71,6 +71,7 @@ checkBox_isHidden = new CheckBox(); bt_createQR_WIFI = new Button(); tabPage4 = new TabPage(); + ICAL_fullday = new CheckBox(); ICAL_location = new TextBox(); ICAL_summary = new TextBox(); ICAL_description = new TextBox(); @@ -92,7 +93,7 @@ panel_ColorDark = new Panel(); button_ChangeColorLight = new Button(); button_ChangeColorDark = new Button(); - ICAL_fullday = new CheckBox(); + tb_IconSize = new TrackBar(); tabControl1.SuspendLayout(); tabPage1.SuspendLayout(); tabPage2.SuspendLayout(); @@ -100,6 +101,7 @@ tabPage4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pb_QRC).BeginInit(); ((System.ComponentModel.ISupportInitialize)pb_icon).BeginInit(); + ((System.ComponentModel.ISupportInitialize)tb_IconSize).BeginInit(); SuspendLayout(); // // tabControl1 @@ -524,6 +526,16 @@ tabPage4.Text = "Termin"; tabPage4.UseVisualStyleBackColor = true; // + // ICAL_fullday + // + ICAL_fullday.AutoSize = true; + ICAL_fullday.Location = new Point(253, 86); + ICAL_fullday.Name = "ICAL_fullday"; + ICAL_fullday.Size = new Size(78, 19); + ICAL_fullday.TabIndex = 30; + ICAL_fullday.Text = "ganztägig"; + ICAL_fullday.UseVisualStyleBackColor = true; + // // ICAL_location // ICAL_location.Location = new Point(106, 45); @@ -703,21 +715,23 @@ button_ChangeColorDark.UseVisualStyleBackColor = true; button_ChangeColorDark.Click += button_ChangeColorDark_Click; // - // ICAL_fullday + // tb_IconSize // - ICAL_fullday.AutoSize = true; - ICAL_fullday.Location = new Point(253, 86); - ICAL_fullday.Name = "ICAL_fullday"; - ICAL_fullday.Size = new Size(78, 19); - ICAL_fullday.TabIndex = 30; - ICAL_fullday.Text = "ganztägig"; - ICAL_fullday.UseVisualStyleBackColor = true; + tb_IconSize.Location = new Point(517, 186); + tb_IconSize.Maximum = 33; + tb_IconSize.Minimum = 10; + tb_IconSize.Name = "tb_IconSize"; + tb_IconSize.Size = new Size(263, 45); + tb_IconSize.TabIndex = 10; + tb_IconSize.Value = 15; + tb_IconSize.Scroll += tb_IconSize_Scroll; // // Main // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(929, 733); + Controls.Add(tb_IconSize); Controls.Add(button_ChangeColorDark); Controls.Add(button_ChangeColorLight); Controls.Add(panel_ColorDark); @@ -743,7 +757,9 @@ tabPage4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)pb_QRC).EndInit(); ((System.ComponentModel.ISupportInitialize)pb_icon).EndInit(); + ((System.ComponentModel.ISupportInitialize)tb_IconSize).EndInit(); ResumeLayout(false); + PerformLayout(); } #endregion @@ -813,5 +829,6 @@ private TextBox ICAL_summary; private TextBox ICAL_description; private CheckBox ICAL_fullday; + private TrackBar tb_IconSize; } } diff --git a/QR-Code-Generator/Main.cs b/QR-Code-Generator/Main.cs index 8cf7c52..a2d0993 100644 --- a/QR-Code-Generator/Main.cs +++ b/QR-Code-Generator/Main.cs @@ -300,5 +300,10 @@ namespace QR_Code_Generator { ICAL_ende.Value = ICAL_start.Value.AddHours(1); } + + private void tb_IconSize_Scroll(object sender, EventArgs e) + { + iconSizePercent = tb_IconSize.Value; + } } }