Make PrinterTabPage derive from TabPage

This commit is contained in:
John Lewin 2017-08-14 20:11:31 -07:00
parent 3d26180284
commit 70fe9123a1
3 changed files with 7 additions and 4 deletions

View file

@ -67,7 +67,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
// Add a tab for the current printer
var printerTab = new TextTab(
new TabPage(new PrinterTabPage(ActiveSliceSettings.Instance, printItem), tabTitle.ToUpper()),
new PrinterTabPage(ActiveSliceSettings.Instance, printItem, tabTitle.ToUpper()),
"3D View Tab",
tabControl.TextPointSize,
selectedTabColor,
@ -75,7 +75,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
ActiveTheme.Instance.TabLabelUnselected,
new RGBA_Bytes(),
useUnderlineStyling: true);
printerTab.ToolTipText = "Preview 3D Design".Localize();
tabControl.AddTab(printerTab);
// TODO: add in the printers and designs that are currently open (or were open last run).