Use the TreeView timer to select the newly created step when a step is added from the TreeView. This assures that it will get focus.
Changed OnChange to be called for a specific instance Don't select newly created Step if it was created from the TreeView Adjust the locations of steps properly if a caution or note is deleted Reduce repeated setup of the RTF data in a step Add an event that fires after the Step is added from the TreeView so that the newly created step can get focus
This commit is contained in:
1 parent
d01b27c80d
commit
5b70652cb4
8 files changed
+80
-34
No files matched your search
@@ -307,6 +307,14 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (NodeNew != null) NodeNew(sender, args);
|
||||
}
|
||||
/// <summary>
|
||||
/// Raised after a new step is added.
|
||||
/// </summary>
|
||||
public event vlnTreeViewEvent NodeInsert;
|
||||
private void OnNodeInsert(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
if (NodeInsert != null) NodeInsert(sender, args);
|
||||
}
|
||||
public event vlnTreeViewEvent NodeSelectionChange;
|
||||
private void OnNodeSelectionChange(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
@@ -969,6 +977,7 @@ namespace Volian.Controls.Library
|
||||
SelectedNode = tn;
|
||||
OnNodeNew(this, new vlnTreeEventArgs(SelectedNode));
|
||||
Refresh();
|
||||
OnNodeInsert(this, new vlnTreeEventArgs(SelectedNode));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user