Add a tooltip

This commit is contained in:
Tim Young 2017-09-18 07:32:17 -05:00
parent 71cf7c19c1
commit caf7f8cbd2

View File

@ -32,6 +32,8 @@ namespace SpriteLibrary
Point DragStart = new Point(-1, -1); Point DragStart = new Point(-1, -1);
Rectangle ChosenArea = new Rectangle(1,1,100,100); Rectangle ChosenArea = new Rectangle(1,1,100,100);
ToolTip myToolTip = new ToolTip();
internal SpriteEntryForm(SpriteDatabase theDatabase, List<SpriteInfo> ListToWorkOn, Size GridSize) internal SpriteEntryForm(SpriteDatabase theDatabase, List<SpriteInfo> ListToWorkOn, Size GridSize)
{ {
InitializeComponent(); InitializeComponent();
@ -47,10 +49,16 @@ namespace SpriteLibrary
pbImageField.BackgroundImageLayout = ImageLayout.Stretch; pbImageField.BackgroundImageLayout = ImageLayout.Stretch;
pbImageField.BackgroundImage = new Bitmap(600, 800); pbImageField.BackgroundImage = new Bitmap(600, 800);
MyController = new SpriteController(pbImageField); MyController = new SpriteController(pbImageField);
myToolTip.AutoPopDelay = 5000;
myToolTip.AutomaticDelay = 500;
PopulateMenu(); PopulateMenu();
UpdateMenu(); UpdateMenu();
SpriteInformationToForm(); SpriteInformationToForm();
UpdateMenu(); UpdateMenu();
myToolTip.SetToolTip(btnNewAnimation, "Create another animation for the current sprite.");
} }
internal List<SpriteInfo> GetUpdatedList() internal List<SpriteInfo> GetUpdatedList()