diff --git a/ErgometerIPR/ErgometerApplication/PanelClientSteps.cs b/ErgometerIPR/ErgometerApplication/PanelClientSteps.cs index d3bc772..f1ba7db 100644 --- a/ErgometerIPR/ErgometerApplication/PanelClientSteps.cs +++ b/ErgometerIPR/ErgometerApplication/PanelClientSteps.cs @@ -49,6 +49,7 @@ namespace ErgometerApplication this.UitlegText.Location = new System.Drawing.Point(12, 35); this.UitlegText.Name = "UitlegText"; this.UitlegText.Size = new System.Drawing.Size(800, 32); + this.UitlegText.MaximumSize = new System.Drawing.Size(400, 0); this.UitlegText.TabIndex = 2; this.UitlegText.Text = text; } diff --git a/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs b/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs index 5c013fb..64cb819 100644 --- a/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs +++ b/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs @@ -55,7 +55,7 @@ namespace ErgometerDoctorApplication window.panelClientChat.Invoke(window.panelClientChat.passChatMessage, new Object[] { chat }); break; case NetCommand.CommandType.UITLEG: - window.updateStepsText(command.UitlegText); + window.steps.UitlegText.Invoke((MethodInvoker)(() => window.steps.UitlegText.Text = command.UitlegText)); break; } } diff --git a/ErgometerIPR/ErgometerDoctorApplication/Client/PanelClientSteps.cs b/ErgometerIPR/ErgometerDoctorApplication/Client/PanelClientSteps.cs index d3bc772..abf5892 100644 --- a/ErgometerIPR/ErgometerDoctorApplication/Client/PanelClientSteps.cs +++ b/ErgometerIPR/ErgometerDoctorApplication/Client/PanelClientSteps.cs @@ -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.Location = new System.Drawing.Point(12, 35); this.UitlegText.Name = "UitlegText"; + this.UitlegText.MaximumSize = new System.Drawing.Size(400, 0); this.UitlegText.Size = new System.Drawing.Size(800, 32); this.UitlegText.TabIndex = 2; this.UitlegText.Text = text;