public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); } }
public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); // remove node's label so that it doesn't get rendered behind the label editing textbox // (if the user deletes some characters so that the text box shrinks) labelEditOldLabel = node.Text; node.Text = ""; } }
//string labelEditOldLabel; public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); // Workaround disabled due to http://community.sharpdevelop.net/forums/t/14354.aspx // "Rename fails if filename in Project Explorer is too long for the treeview viewport" //// remove node's label so that it doesn't get rendered behind the label editing textbox //// (if the user deletes some characters so that the text box shrinks) //labelEditOldLabel = node.Text; //node.Text = ""; } }
public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); // remove node's label so that it doesn't get rendered behind the label editing textbox // (if the user deletes some characters so that the text box shrinks) labelEditOldLabel = node.Text; node.Text = ""; } }
//string labelEditOldLabel; public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); // Workaround disabled due to http://community.sharpdevelop.net/forums/t/14354.aspx // "Rename fails if filename in Project Explorer is too long for the treeview viewport" //// remove node's label so that it doesn't get rendered behind the label editing textbox //// (if the user deletes some characters so that the text box shrinks) //labelEditOldLabel = node.Text; //node.Text = ""; } }
public void StartLabelEdit(ExtTreeNode node) { if (node == null) { return; } if (node.CanLabelEdit) { node.EnsureVisible(); SelectedNode = node; LabelEdit = true; node.BeforeLabelEdit(); node.BeginEdit(); } }