diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index 04a8d15ac..da216a282 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -2254,7 +2254,7 @@ namespace MatterHackers.MatterControl var errors = SettingsValidation.SettingsValid(printer); if(errors.Count > 0) { - StyledMessageBox.ShowMessageBox(String.Join("\n\n\n\n", errors.ToArray()), "Slice Error".Localize()); + StyledMessageBox.ShowMessageBox(String.Join("\n__________________\n\n", errors.ToArray()), "Slice Error".Localize()); } else // there are no erros continue printing { diff --git a/MatterControlLib/ControlElements/StyledMessageBoxWindow.cs b/MatterControlLib/ControlElements/StyledMessageBoxWindow.cs index 36f808566..be4386fad 100644 --- a/MatterControlLib/ControlElements/StyledMessageBoxWindow.cs +++ b/MatterControlLib/ControlElements/StyledMessageBoxWindow.cs @@ -79,16 +79,21 @@ namespace MatterHackers.MatterControl responseCallback = callback; unwrappedMessage = message; + var scrollable = new ScrollableWidget(true); + scrollable.AnchorAll(); + scrollable.ScrollArea.HAnchor = HAnchor.Stretch; + contentRow.AddChild(scrollable); + if (useMarkdown) { - contentRow.AddChild(messageContainer = new MarkdownWidget(theme) + scrollable.AddChild(messageContainer = new MarkdownWidget(theme) { Markdown = message, }); } else { - contentRow.AddChild(messageContainer = new TextWidget(message, textColor: theme.TextColor, pointSize: 12 * DeviceScale) + scrollable.AddChild(messageContainer = new TextWidget(message, textColor: theme.TextColor, pointSize: 12 * DeviceScale) { AutoExpandBoundsToText = true, HAnchor = HAnchor.Left @@ -99,7 +104,7 @@ namespace MatterHackers.MatterControl { foreach (GuiWidget widget in extraWidgetsToAdd) { - contentRow.AddChild(widget); + scrollable.AddChild(widget); } } diff --git a/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs b/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs index cd998f15c..653e1b256 100644 --- a/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs +++ b/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs @@ -245,7 +245,7 @@ namespace MatterHackers.MatterControl { UiThread.RunOnIdle(() => { - StyledMessageBox.ShowMessageBox(String.Join("\n\n\n\n", exportErrors.ToArray()), "Export Error".Localize()); + StyledMessageBox.ShowMessageBox(String.Join("\n__________________\n\n", exportErrors.ToArray()), "Export Error".Localize()); }); } }); diff --git a/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs b/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs index 689261d21..231f4f7fc 100644 --- a/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs +++ b/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs @@ -547,7 +547,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow if(errors.Count > 0) { doSlicing = false; - StyledMessageBox.ShowMessageBox(String.Join("\n\n\n\n", errors.ToArray()), "Slicing Error".Localize()); + StyledMessageBox.ShowMessageBox(String.Join("\n__________________\n\n", errors.ToArray()), "Slicing Error".Localize()); } } diff --git a/MatterControlLib/PartPreviewWindow/View3D/PrinterBar/SliceButton.cs b/MatterControlLib/PartPreviewWindow/View3D/PrinterBar/SliceButton.cs index 45eac6ce3..a61e640e0 100644 --- a/MatterControlLib/PartPreviewWindow/View3D/PrinterBar/SliceButton.cs +++ b/MatterControlLib/PartPreviewWindow/View3D/PrinterBar/SliceButton.cs @@ -105,7 +105,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow if (errors.Count > 0) { doSlicing = false; - StyledMessageBox.ShowMessageBox(String.Join("\n\n\n\n", errors.ToArray()), "Slicing Error".Localize()); + StyledMessageBox.ShowMessageBox(String.Join("\n__________________\n\n", errors.ToArray()), "Slicing Error".Localize()); } }