Put icon is the tree view
This commit is contained in:
parent
28b6b3f011
commit
030b97a558
3 changed files with 19 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
private bool mouseDownInBounds = false;
|
||||
private Vector2 mouseDownAt;
|
||||
|
||||
protected ImageWidget imageWidget;
|
||||
public ImageWidget imageWidget;
|
||||
protected int thumbWidth;
|
||||
protected int thumbHeight;
|
||||
|
||||
|
|
@ -222,6 +222,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
}
|
||||
}
|
||||
|
||||
public event EventHandler ImageSet;
|
||||
|
||||
protected void SetItemThumbnail(ImageBuffer thumbnail, bool colorize = false)
|
||||
{
|
||||
if (thumbnail != null)
|
||||
|
|
@ -247,6 +249,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
this.imageWidget.Image = thumbnail;
|
||||
|
||||
this.ImageSet?.Invoke(this, null);
|
||||
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue