IconSize kann geändert werden

This commit is contained in:
2024-12-14 11:17:13 +01:00
parent 03d9425755
commit 5420292a6d
2 changed files with 266 additions and 231 deletions
+253 -224
View File
@@ -34,6 +34,31 @@
label1 = new Label();
textBox_URL = new TextBox();
tabPage2 = new TabPage();
textBox_country = new TextBox();
label12 = new Label();
label13 = new Label();
label14 = new Label();
label15 = new Label();
label8 = new Label();
label9 = new Label();
label10 = new Label();
label11 = new Label();
label6 = new Label();
label7 = new Label();
label5 = new Label();
label4 = new Label();
textBox_zipCode = new TextBox();
textBox_city = new TextBox();
textBox_houseNumber = new TextBox();
textBox_street = new TextBox();
textBox_website = new TextBox();
textBox_email = new TextBox();
textBox_workPhone = new TextBox();
textBox_mobilePhone = new TextBox();
textBox_phone = new TextBox();
textBox_nickname = new TextBox();
textBox_lastname = new TextBox();
textBox_firstname = new TextBox();
bt_createQRAdress = new Button();
tabPage3 = new TabPage();
radioButton_NoPass = new RadioButton();
@@ -55,37 +80,15 @@
panel_ColorDark = new Panel();
button_ChangeColorLight = new Button();
button_ChangeColorDark = new Button();
textBox_firstname = new TextBox();
textBox_lastname = new TextBox();
textBox_nickname = new TextBox();
textBox_workPhone = new TextBox();
textBox_mobilePhone = new TextBox();
textBox_phone = new TextBox();
textBox_zipCode = new TextBox();
textBox_city = new TextBox();
textBox_houseNumber = new TextBox();
textBox_street = new TextBox();
textBox_website = new TextBox();
textBox_email = new TextBox();
label4 = new Label();
label5 = new Label();
label6 = new Label();
label7 = new Label();
label8 = new Label();
label9 = new Label();
label10 = new Label();
label11 = new Label();
label12 = new Label();
label13 = new Label();
label14 = new Label();
label15 = new Label();
textBox_country = new TextBox();
trackBar_IconSize = new TrackBar();
label16 = new Label();
tabControl1.SuspendLayout();
tabPage1.SuspendLayout();
tabPage2.SuspendLayout();
tabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pb_QRC).BeginInit();
((System.ComponentModel.ISupportInitialize)pb_icon).BeginInit();
((System.ComponentModel.ISupportInitialize)trackBar_IconSize).BeginInit();
SuspendLayout();
//
// tabControl1
@@ -175,6 +178,205 @@
tabPage2.Text = "Adresse";
tabPage2.UseVisualStyleBackColor = true;
//
// textBox_country
//
textBox_country.Location = new Point(155, 366);
textBox_country.Name = "textBox_country";
textBox_country.Size = new Size(251, 23);
textBox_country.TabIndex = 25;
//
// label12
//
label12.AutoSize = true;
label12.Location = new Point(6, 366);
label12.Name = "label12";
label12.Size = new Size(44, 15);
label12.TabIndex = 24;
label12.Text = "label12";
//
// label13
//
label13.AutoSize = true;
label13.Location = new Point(6, 337);
label13.Name = "label13";
label13.Size = new Size(44, 15);
label13.TabIndex = 23;
label13.Text = "label13";
//
// label14
//
label14.AutoSize = true;
label14.Location = new Point(6, 308);
label14.Name = "label14";
label14.Size = new Size(44, 15);
label14.TabIndex = 22;
label14.Text = "label14";
//
// label15
//
label15.AutoSize = true;
label15.Location = new Point(6, 279);
label15.Name = "label15";
label15.Size = new Size(44, 15);
label15.TabIndex = 21;
label15.Text = "label15";
//
// label8
//
label8.AutoSize = true;
label8.Location = new Point(6, 250);
label8.Name = "label8";
label8.Size = new Size(38, 15);
label8.TabIndex = 20;
label8.Text = "label8";
//
// label9
//
label9.AutoSize = true;
label9.Location = new Point(6, 221);
label9.Name = "label9";
label9.Size = new Size(38, 15);
label9.TabIndex = 19;
label9.Text = "label9";
//
// label10
//
label10.AutoSize = true;
label10.Location = new Point(6, 192);
label10.Name = "label10";
label10.Size = new Size(44, 15);
label10.TabIndex = 18;
label10.Text = "label10";
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(6, 163);
label11.Name = "label11";
label11.Size = new Size(44, 15);
label11.TabIndex = 17;
label11.Text = "label11";
//
// label6
//
label6.AutoSize = true;
label6.Location = new Point(6, 134);
label6.Name = "label6";
label6.Size = new Size(38, 15);
label6.TabIndex = 16;
label6.Text = "label6";
//
// label7
//
label7.AutoSize = true;
label7.Location = new Point(6, 105);
label7.Name = "label7";
label7.Size = new Size(61, 15);
label7.TabIndex = 15;
label7.Text = "Nickname";
//
// label5
//
label5.AutoSize = true;
label5.Location = new Point(6, 76);
label5.Name = "label5";
label5.Size = new Size(65, 15);
label5.TabIndex = 14;
label5.Text = "Nachname";
//
// label4
//
label4.AutoSize = true;
label4.Location = new Point(6, 47);
label4.Name = "label4";
label4.Size = new Size(54, 15);
label4.TabIndex = 13;
label4.Text = "Vorname";
//
// textBox_zipCode
//
textBox_zipCode.Location = new Point(155, 337);
textBox_zipCode.Name = "textBox_zipCode";
textBox_zipCode.Size = new Size(251, 23);
textBox_zipCode.TabIndex = 12;
//
// textBox_city
//
textBox_city.Location = new Point(155, 308);
textBox_city.Name = "textBox_city";
textBox_city.Size = new Size(251, 23);
textBox_city.TabIndex = 11;
//
// textBox_houseNumber
//
textBox_houseNumber.Location = new Point(341, 279);
textBox_houseNumber.Name = "textBox_houseNumber";
textBox_houseNumber.Size = new Size(65, 23);
textBox_houseNumber.TabIndex = 10;
//
// textBox_street
//
textBox_street.Location = new Point(155, 279);
textBox_street.Name = "textBox_street";
textBox_street.Size = new Size(180, 23);
textBox_street.TabIndex = 9;
//
// textBox_website
//
textBox_website.Location = new Point(155, 247);
textBox_website.Name = "textBox_website";
textBox_website.Size = new Size(251, 23);
textBox_website.TabIndex = 8;
//
// textBox_email
//
textBox_email.Location = new Point(155, 218);
textBox_email.Name = "textBox_email";
textBox_email.Size = new Size(251, 23);
textBox_email.TabIndex = 7;
//
// textBox_workPhone
//
textBox_workPhone.Location = new Point(155, 189);
textBox_workPhone.Name = "textBox_workPhone";
textBox_workPhone.Size = new Size(251, 23);
textBox_workPhone.TabIndex = 6;
//
// textBox_mobilePhone
//
textBox_mobilePhone.Location = new Point(155, 160);
textBox_mobilePhone.Name = "textBox_mobilePhone";
textBox_mobilePhone.Size = new Size(251, 23);
textBox_mobilePhone.TabIndex = 5;
//
// textBox_phone
//
textBox_phone.Location = new Point(155, 131);
textBox_phone.Name = "textBox_phone";
textBox_phone.Size = new Size(251, 23);
textBox_phone.TabIndex = 4;
//
// textBox_nickname
//
textBox_nickname.Location = new Point(155, 102);
textBox_nickname.Name = "textBox_nickname";
textBox_nickname.Size = new Size(251, 23);
textBox_nickname.TabIndex = 3;
//
// textBox_lastname
//
textBox_lastname.Location = new Point(155, 73);
textBox_lastname.Name = "textBox_lastname";
textBox_lastname.Size = new Size(251, 23);
textBox_lastname.TabIndex = 2;
//
// textBox_firstname
//
textBox_firstname.Location = new Point(155, 44);
textBox_firstname.Name = "textBox_firstname";
textBox_firstname.Size = new Size(251, 23);
textBox_firstname.TabIndex = 1;
//
// bt_createQRAdress
//
bt_createQRAdress.Location = new Point(6, 552);
@@ -339,21 +541,21 @@
//
// panel_ColorLight
//
panel_ColorLight.Location = new Point(480, 47);
panel_ColorLight.Location = new Point(436, 91);
panel_ColorLight.Name = "panel_ColorLight";
panel_ColorLight.Size = new Size(23, 23);
panel_ColorLight.TabIndex = 6;
//
// panel_ColorDark
//
panel_ColorDark.Location = new Point(480, 73);
panel_ColorDark.Location = new Point(436, 117);
panel_ColorDark.Name = "panel_ColorDark";
panel_ColorDark.Size = new Size(23, 23);
panel_ColorDark.TabIndex = 7;
//
// button_ChangeColorLight
//
button_ChangeColorLight.Location = new Point(509, 47);
button_ChangeColorLight.Location = new Point(465, 91);
button_ChangeColorLight.Name = "button_ChangeColorLight";
button_ChangeColorLight.Size = new Size(75, 23);
button_ChangeColorLight.TabIndex = 8;
@@ -363,7 +565,7 @@
//
// button_ChangeColorDark
//
button_ChangeColorDark.Location = new Point(509, 73);
button_ChangeColorDark.Location = new Point(465, 117);
button_ChangeColorDark.Name = "button_ChangeColorDark";
button_ChangeColorDark.Size = new Size(75, 23);
button_ChangeColorDark.TabIndex = 9;
@@ -371,210 +573,33 @@
button_ChangeColorDark.UseVisualStyleBackColor = true;
button_ChangeColorDark.Click += button_ChangeColorDark_Click;
//
// textBox_firstname
// trackBar_IconSize
//
textBox_firstname.Location = new Point(155, 44);
textBox_firstname.Name = "textBox_firstname";
textBox_firstname.Size = new Size(251, 23);
textBox_firstname.TabIndex = 1;
trackBar_IconSize.Location = new Point(500, 12);
trackBar_IconSize.Maximum = 50;
trackBar_IconSize.Minimum = 10;
trackBar_IconSize.Name = "trackBar_IconSize";
trackBar_IconSize.Size = new Size(227, 45);
trackBar_IconSize.TabIndex = 10;
trackBar_IconSize.Value = 10;
trackBar_IconSize.Scroll += trackBar_IconSize_Scroll;
//
// textBox_lastname
// label16
//
textBox_lastname.Location = new Point(155, 73);
textBox_lastname.Name = "textBox_lastname";
textBox_lastname.Size = new Size(251, 23);
textBox_lastname.TabIndex = 2;
//
// textBox_nickname
//
textBox_nickname.Location = new Point(155, 102);
textBox_nickname.Name = "textBox_nickname";
textBox_nickname.Size = new Size(251, 23);
textBox_nickname.TabIndex = 3;
//
// textBox_workPhone
//
textBox_workPhone.Location = new Point(155, 189);
textBox_workPhone.Name = "textBox_workPhone";
textBox_workPhone.Size = new Size(251, 23);
textBox_workPhone.TabIndex = 6;
//
// textBox_mobilePhone
//
textBox_mobilePhone.Location = new Point(155, 160);
textBox_mobilePhone.Name = "textBox_mobilePhone";
textBox_mobilePhone.Size = new Size(251, 23);
textBox_mobilePhone.TabIndex = 5;
//
// textBox_phone
//
textBox_phone.Location = new Point(155, 131);
textBox_phone.Name = "textBox_phone";
textBox_phone.Size = new Size(251, 23);
textBox_phone.TabIndex = 4;
//
// textBox_zipCode
//
textBox_zipCode.Location = new Point(155, 337);
textBox_zipCode.Name = "textBox_zipCode";
textBox_zipCode.Size = new Size(251, 23);
textBox_zipCode.TabIndex = 12;
//
// textBox_city
//
textBox_city.Location = new Point(155, 308);
textBox_city.Name = "textBox_city";
textBox_city.Size = new Size(251, 23);
textBox_city.TabIndex = 11;
//
// textBox_houseNumber
//
textBox_houseNumber.Location = new Point(341, 279);
textBox_houseNumber.Name = "textBox_houseNumber";
textBox_houseNumber.Size = new Size(65, 23);
textBox_houseNumber.TabIndex = 10;
//
// textBox_street
//
textBox_street.Location = new Point(155, 279);
textBox_street.Name = "textBox_street";
textBox_street.Size = new Size(180, 23);
textBox_street.TabIndex = 9;
//
// textBox_website
//
textBox_website.Location = new Point(155, 247);
textBox_website.Name = "textBox_website";
textBox_website.Size = new Size(251, 23);
textBox_website.TabIndex = 8;
//
// textBox_email
//
textBox_email.Location = new Point(155, 218);
textBox_email.Name = "textBox_email";
textBox_email.Size = new Size(251, 23);
textBox_email.TabIndex = 7;
//
// label4
//
label4.AutoSize = true;
label4.Location = new Point(6, 47);
label4.Name = "label4";
label4.Size = new Size(54, 15);
label4.TabIndex = 13;
label4.Text = "Vorname";
//
// label5
//
label5.AutoSize = true;
label5.Location = new Point(6, 76);
label5.Name = "label5";
label5.Size = new Size(65, 15);
label5.TabIndex = 14;
label5.Text = "Nachname";
//
// label6
//
label6.AutoSize = true;
label6.Location = new Point(6, 134);
label6.Name = "label6";
label6.Size = new Size(38, 15);
label6.TabIndex = 16;
label6.Text = "label6";
//
// label7
//
label7.AutoSize = true;
label7.Location = new Point(6, 105);
label7.Name = "label7";
label7.Size = new Size(61, 15);
label7.TabIndex = 15;
label7.Text = "Nickname";
//
// label8
//
label8.AutoSize = true;
label8.Location = new Point(6, 250);
label8.Name = "label8";
label8.Size = new Size(38, 15);
label8.TabIndex = 20;
label8.Text = "label8";
//
// label9
//
label9.AutoSize = true;
label9.Location = new Point(6, 221);
label9.Name = "label9";
label9.Size = new Size(38, 15);
label9.TabIndex = 19;
label9.Text = "label9";
//
// label10
//
label10.AutoSize = true;
label10.Location = new Point(6, 192);
label10.Name = "label10";
label10.Size = new Size(44, 15);
label10.TabIndex = 18;
label10.Text = "label10";
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(6, 163);
label11.Name = "label11";
label11.Size = new Size(44, 15);
label11.TabIndex = 17;
label11.Text = "label11";
//
// label12
//
label12.AutoSize = true;
label12.Location = new Point(6, 366);
label12.Name = "label12";
label12.Size = new Size(44, 15);
label12.TabIndex = 24;
label12.Text = "label12";
//
// label13
//
label13.AutoSize = true;
label13.Location = new Point(6, 337);
label13.Name = "label13";
label13.Size = new Size(44, 15);
label13.TabIndex = 23;
label13.Text = "label13";
//
// label14
//
label14.AutoSize = true;
label14.Location = new Point(6, 308);
label14.Name = "label14";
label14.Size = new Size(44, 15);
label14.TabIndex = 22;
label14.Text = "label14";
//
// label15
//
label15.AutoSize = true;
label15.Location = new Point(6, 279);
label15.Name = "label15";
label15.Size = new Size(44, 15);
label15.TabIndex = 21;
label15.Text = "label15";
//
// textBox_country
//
textBox_country.Location = new Point(155, 366);
textBox_country.Name = "textBox_country";
textBox_country.Size = new Size(251, 23);
textBox_country.TabIndex = 25;
label16.AutoSize = true;
label16.Location = new Point(566, 42);
label16.Name = "label16";
label16.Size = new Size(101, 15);
label16.TabIndex = 11;
label16.Text = "Icon Größe: XX % ";
//
// Main
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(929, 733);
Controls.Add(label16);
Controls.Add(trackBar_IconSize);
Controls.Add(button_ChangeColorDark);
Controls.Add(button_ChangeColorLight);
Controls.Add(panel_ColorDark);
@@ -598,7 +623,9 @@
tabPage3.PerformLayout();
((System.ComponentModel.ISupportInitialize)pb_QRC).EndInit();
((System.ComponentModel.ISupportInitialize)pb_icon).EndInit();
((System.ComponentModel.ISupportInitialize)trackBar_IconSize).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
@@ -655,5 +682,7 @@
private TextBox textBox_lastname;
private TextBox textBox_firstname;
private TextBox textBox_country;
private TrackBar trackBar_IconSize;
private Label label16;
}
}
+6
View File
@@ -34,6 +34,7 @@ namespace QR_Code_Generator
InitializeComponent();
panel_ColorDark.BackColor = darkColor;
panel_ColorLight.BackColor = lightColor;
trackBar_IconSize.Value= iconSizePercent;
}
#endregion
@@ -269,5 +270,10 @@ namespace QR_Code_Generator
#endregion
private void trackBar_IconSize_Scroll(object sender, EventArgs e)
{
iconSizePercent = trackBar_IconSize.Value;
label16.Text = $"Icon Größe: {iconSizePercent} % ";
}
}
}