本文整理汇总了C#中TreeNodeAdvMouseEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# TreeNodeAdvMouseEventArgs类的具体用法?C# TreeNodeAdvMouseEventArgs怎么用?C# TreeNodeAdvMouseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TreeNodeAdvMouseEventArgs类属于命名空间,在下文中一共展示了TreeNodeAdvMouseEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MouseDoubleClick
public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
{
MessageBox.Show("stop");
object bla = GetValue(args.Node);
args.Handled = true;
}
示例2: MouseUp
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
{
_pstate = false;
Parent.FullUpdate();
xdc.Forms.PropertyDetailsForm df = new xdc.Forms.PropertyDetailsForm(GetValue(args.Node).ToString());
df.Show();
}
示例3: MouseDown
public override void MouseDown(TreeNodeAdvMouseEventArgs args)
{
if (args.Button == MouseButtons.Left)
{
_pstate = true;
Parent.FullUpdate();
}
}
示例4: MouseDown
public override void MouseDown(TreeNodeAdvMouseEventArgs args)
{
if(args.Button==MouseButtons.Left)
{
args.Handled=true;
if(args.Node.CanExpand)
args.Node.IsExpanded=!args.Node.IsExpanded;
}
}
示例5: MouseDoubleClick
public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
{
_timer.Stop();
_editFlag = false;
if (Parent.UseColumns)
{
args.Handled = true;
BeginEdit();
}
}
示例6: DoMouseOperation
protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
{
if(Tree.SelectionMode==TreeSelectionMode.Single)
{
base.DoMouseOperation(args);
}
else if(CanSelect(args.Node))
{
args.Node.IsSelected=!args.Node.IsSelected;
Tree.SelectionStart=args.Node;
}
}
示例7: DoMouseOperation
protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
{
if (Tree.SelectionMode == TreeSelectionMode.Single || Tree.SelectionStart == null)
{
base.DoMouseOperation(args);
}
else if (CanSelect(args.Node))
{
Tree.SuspendSelectionEvent = true;
try
{
SelectAllFromStart(args.Node);
}
finally
{
Tree.SuspendSelectionEvent = false;
}
}
}
示例8: MouseUp
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
{
if (args.Node.IsSelected)
{
if (EditOnClick && args.Button == MouseButtons.Left && args.ModifierKeys == Keys.None)
{
Parent.ItemDragMode = false;
BeginEdit();
args.Handled = true;
}
else if (_editFlag && !args.JustGotFocus)// && args.Node.IsSelected)
_timer.Start();
}
}
示例9: MouseDown
public override void MouseDown(TreeNodeAdvMouseEventArgs args)
{
_editFlag = (!EditOnClick && args.Button == MouseButtons.Left
&& args.ModifierKeys == Keys.None && args.Node.IsSelected);
}
示例10: MouseUp
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
{
FinishResize();
}
示例11: MouseDown
public override void MouseDown(TreeNodeAdvMouseEventArgs args)
{
}
示例12: MouseDoubleClick
public virtual void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
{
}
示例13: MouseUp
public virtual void MouseUp(TreeNodeAdvMouseEventArgs args)
{
}
示例14: MouseUp
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
{
if (this.EditOnClick && args.Button == MouseButtons.Left && args.ModifierKeys == Keys.None)
{
BeginEdit();
args.Handled = true;
}
else if (_editFlag && args.Node.IsSelected)
_timer.Start();
}
示例15: MouseDoubleClick
public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
{
_editFlag = false;
_timer.Stop();
}