Editing Node

Sir

I m displaying some Text in Node. I want this text to be edit on double click only not on single as it is by default.

Regards
Sudhanshu

You should look at the 3.0 GoText.EditableWhenSelected property... it may give you the behavior you want...
if not:
[code]
public override bool OnSingleClick(GoInputEventArgs evt, GoView view) {
return false;
}
public override bool OnDoubleClick(GoInputEventArgs evt, GoView view) {
if (!CanEdit()) return false;
if (!view.CanEditObjects()) return false;
if (evt.Shift || evt.Control) return false;
DoBeginEdit(view);
return true;
}
[/code]

Thanks very much sir… for giving us the hint