Added logic to eliminate mouse_up response on a tree after a node is expanded
Added Mouse_down event handler to reset ExpandingTree variable.
This commit is contained in:
@@ -879,8 +879,17 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tv_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
_ExpandingTree = false;
|
||||
}
|
||||
void tv_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
if (_ExpandingTree)
|
||||
{
|
||||
_ExpandingTree = false;
|
||||
return;
|
||||
}
|
||||
if (e.Button != MouseButtons.Right)
|
||||
{
|
||||
Point newPoint = new Point(e.X, e.Y);
|
||||
@@ -925,8 +934,11 @@ namespace VEPROMS
|
||||
tmrAutomatic.Enabled = false; // Timer has now fired
|
||||
RunAutomatic();
|
||||
}
|
||||
private bool _ExpandingTree=false;
|
||||
private void tv_BeforeExpand(object sender, TreeViewCancelEventArgs e)
|
||||
{
|
||||
_ExpandingTree = true;
|
||||
Volian.Base.Library.vlnStackTrace.ShowStackLocal("tv_BeforeExpand", 3);
|
||||
VETreeNode tn = ((VETreeNode)e.Node);
|
||||
tn.LoadingChildrenDone += new VETreeNodeEvent(tn_LoadingChildrenDone);
|
||||
tn.LoadingChildrenMax += new VETreeNodeEvent(tn_LoadingChildrenMax);
|
||||
|
Reference in New Issue
Block a user