Adding overflow text

Adding tool bar quick buttons
This commit is contained in:
LarsBrubaker 2022-06-19 15:02:05 -07:00
parent e7f22f1895
commit e91decdc12
11 changed files with 243 additions and 125 deletions

View file

@ -58,14 +58,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
/// </summary>
public class SimpleTabs : FlowLayoutWidget
{
public SimpleTabs(ThemeConfig theme, GuiWidget rightAnchorItem = null)
public SimpleTabs(ThemeConfig theme, string overflowText, GuiWidget rightAnchorItem = null)
: base(FlowDirection.TopToBottom)
{
this.TabContainer = this;
if (rightAnchorItem == null)
{
TabBar = new OverflowBar(theme)
TabBar = new OverflowBar(null, theme, overflowText)
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit
@ -252,7 +252,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public event EventHandler PlusClicked;
public ChromeTabs(GuiWidget rightAnchorItem, ThemeConfig theme)
: base(theme, rightAnchorItem)
: base(theme, null, rightAnchorItem)
{
leadingTabAdornment = new GuiWidget()
{