Add nice tooltip for importing students
This commit is contained in:
parent
8907ba1597
commit
b674c521ba
@ -23,6 +23,9 @@ namespace EduNetworkBuilder
|
||||
PersonClass ViewedUser = null;
|
||||
SchoolworkClass ViewedSchoolwork = null;
|
||||
|
||||
ToolTip myTooltip = new ToolTip();
|
||||
|
||||
|
||||
class StudentHolder
|
||||
{
|
||||
public string Name = "";
|
||||
@ -76,6 +79,14 @@ namespace EduNetworkBuilder
|
||||
Icon = Properties.Resources.NBIco;
|
||||
LanguagifyComponents();
|
||||
|
||||
myTooltip.AutoPopDelay = 5000;
|
||||
myTooltip.InitialDelay = 1000;
|
||||
myTooltip.ReshowDelay = 500;
|
||||
// Force the ToolTip text to be displayed whether or not the form is active.
|
||||
myTooltip.ShowAlways = true;
|
||||
|
||||
myTooltip.SetToolTip(btnImportStudents, NB.Translate("PPF_ImportToolTip"));
|
||||
|
||||
if (CurrentUser == null && FileName == "")
|
||||
{
|
||||
//Prompt for a username
|
||||
|
@ -1777,6 +1777,10 @@
|
||||
<value>Import Students</value>
|
||||
<comment>PPF_ImportStudents = Import Students</comment>
|
||||
</data>
|
||||
<data name="PPF_ImportToolTip" xml:space="preserve">
|
||||
<value>Import from comma-deliminated file. User, Full Name, password. With full name and password being optional.</value>
|
||||
<comment>PPF_ImportToolTip = Import from comma-deliminated file. User, Full Name, password. With full name and password being optional.</comment>
|
||||
</data>
|
||||
<data name="PPF_Launch" xml:space="preserve">
|
||||
<value>Launch</value>
|
||||
<comment>PPF_Launch = Launch</comment>
|
||||
|
Loading…
Reference in New Issue
Block a user