Trackbar eingefügt für Icongröße

This commit is contained in:
2025-02-20 16:54:00 +01:00
parent 448ea011dc
commit 2bbf9b5398
2 changed files with 31 additions and 9 deletions
+26 -9
View File
@@ -71,6 +71,7 @@
checkBox_isHidden = new CheckBox(); checkBox_isHidden = new CheckBox();
bt_createQR_WIFI = new Button(); bt_createQR_WIFI = new Button();
tabPage4 = new TabPage(); tabPage4 = new TabPage();
ICAL_fullday = new CheckBox();
ICAL_location = new TextBox(); ICAL_location = new TextBox();
ICAL_summary = new TextBox(); ICAL_summary = new TextBox();
ICAL_description = new TextBox(); ICAL_description = new TextBox();
@@ -92,7 +93,7 @@
panel_ColorDark = new Panel(); panel_ColorDark = new Panel();
button_ChangeColorLight = new Button(); button_ChangeColorLight = new Button();
button_ChangeColorDark = new Button(); button_ChangeColorDark = new Button();
ICAL_fullday = new CheckBox(); tb_IconSize = new TrackBar();
tabControl1.SuspendLayout(); tabControl1.SuspendLayout();
tabPage1.SuspendLayout(); tabPage1.SuspendLayout();
tabPage2.SuspendLayout(); tabPage2.SuspendLayout();
@@ -100,6 +101,7 @@
tabPage4.SuspendLayout(); tabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pb_QRC).BeginInit(); ((System.ComponentModel.ISupportInitialize)pb_QRC).BeginInit();
((System.ComponentModel.ISupportInitialize)pb_icon).BeginInit(); ((System.ComponentModel.ISupportInitialize)pb_icon).BeginInit();
((System.ComponentModel.ISupportInitialize)tb_IconSize).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// tabControl1 // tabControl1
@@ -524,6 +526,16 @@
tabPage4.Text = "Termin"; tabPage4.Text = "Termin";
tabPage4.UseVisualStyleBackColor = true; 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
// //
ICAL_location.Location = new Point(106, 45); ICAL_location.Location = new Point(106, 45);
@@ -703,21 +715,23 @@
button_ChangeColorDark.UseVisualStyleBackColor = true; button_ChangeColorDark.UseVisualStyleBackColor = true;
button_ChangeColorDark.Click += button_ChangeColorDark_Click; button_ChangeColorDark.Click += button_ChangeColorDark_Click;
// //
// ICAL_fullday // tb_IconSize
// //
ICAL_fullday.AutoSize = true; tb_IconSize.Location = new Point(517, 186);
ICAL_fullday.Location = new Point(253, 86); tb_IconSize.Maximum = 33;
ICAL_fullday.Name = "ICAL_fullday"; tb_IconSize.Minimum = 10;
ICAL_fullday.Size = new Size(78, 19); tb_IconSize.Name = "tb_IconSize";
ICAL_fullday.TabIndex = 30; tb_IconSize.Size = new Size(263, 45);
ICAL_fullday.Text = "ganztägig"; tb_IconSize.TabIndex = 10;
ICAL_fullday.UseVisualStyleBackColor = true; tb_IconSize.Value = 15;
tb_IconSize.Scroll += tb_IconSize_Scroll;
// //
// Main // Main
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(929, 733); ClientSize = new Size(929, 733);
Controls.Add(tb_IconSize);
Controls.Add(button_ChangeColorDark); Controls.Add(button_ChangeColorDark);
Controls.Add(button_ChangeColorLight); Controls.Add(button_ChangeColorLight);
Controls.Add(panel_ColorDark); Controls.Add(panel_ColorDark);
@@ -743,7 +757,9 @@
tabPage4.PerformLayout(); tabPage4.PerformLayout();
((System.ComponentModel.ISupportInitialize)pb_QRC).EndInit(); ((System.ComponentModel.ISupportInitialize)pb_QRC).EndInit();
((System.ComponentModel.ISupportInitialize)pb_icon).EndInit(); ((System.ComponentModel.ISupportInitialize)pb_icon).EndInit();
((System.ComponentModel.ISupportInitialize)tb_IconSize).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion
@@ -813,5 +829,6 @@
private TextBox ICAL_summary; private TextBox ICAL_summary;
private TextBox ICAL_description; private TextBox ICAL_description;
private CheckBox ICAL_fullday; private CheckBox ICAL_fullday;
private TrackBar tb_IconSize;
} }
} }
+5
View File
@@ -300,5 +300,10 @@ namespace QR_Code_Generator
{ {
ICAL_ende.Value = ICAL_start.Value.AddHours(1); ICAL_ende.Value = ICAL_start.Value.AddHours(1);
} }
private void tb_IconSize_Scroll(object sender, EventArgs e)
{
iconSizePercent = tb_IconSize.Value;
}
} }
} }