Fixed word wrap kinda

This commit is contained in:
Janco Kock
2015-11-02 13:28:45 +01:00
parent baf1171f4e
commit afaeeda67f
3 changed files with 3 additions and 1 deletions
@@ -49,6 +49,7 @@ namespace ErgometerApplication
this.UitlegText.Location = new System.Drawing.Point(12, 35); this.UitlegText.Location = new System.Drawing.Point(12, 35);
this.UitlegText.Name = "UitlegText"; this.UitlegText.Name = "UitlegText";
this.UitlegText.Size = new System.Drawing.Size(800, 32); this.UitlegText.Size = new System.Drawing.Size(800, 32);
this.UitlegText.MaximumSize = new System.Drawing.Size(400, 0);
this.UitlegText.TabIndex = 2; this.UitlegText.TabIndex = 2;
this.UitlegText.Text = text; this.UitlegText.Text = text;
} }
@@ -55,7 +55,7 @@ namespace ErgometerDoctorApplication
window.panelClientChat.Invoke(window.panelClientChat.passChatMessage, new Object[] { chat }); window.panelClientChat.Invoke(window.panelClientChat.passChatMessage, new Object[] { chat });
break; break;
case NetCommand.CommandType.UITLEG: case NetCommand.CommandType.UITLEG:
window.updateStepsText(command.UitlegText); window.steps.UitlegText.Invoke((MethodInvoker)(() => window.steps.UitlegText.Text = command.UitlegText));
break; break;
} }
} }
@@ -48,6 +48,7 @@ namespace ErgometerApplication
this.UitlegText.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.UitlegText.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.UitlegText.Location = new System.Drawing.Point(12, 35); this.UitlegText.Location = new System.Drawing.Point(12, 35);
this.UitlegText.Name = "UitlegText"; this.UitlegText.Name = "UitlegText";
this.UitlegText.MaximumSize = new System.Drawing.Size(400, 0);
this.UitlegText.Size = new System.Drawing.Size(800, 32); this.UitlegText.Size = new System.Drawing.Size(800, 32);
this.UitlegText.TabIndex = 2; this.UitlegText.TabIndex = 2;
this.UitlegText.Text = text; this.UitlegText.Text = text;