Get rid of default double click action


Author
Message
Bartlomiej Zogala
Bartlomiej Zogala
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
I have generated few shapes in a loop by NBusinessProcessShapesFactory, now I want to add context menu and double click action , which would call another form and load coresponding DB data basing on figure clicked. I have done:

regionElipse.EventSinkService.NodeDoubleClick += new NodeViewEventHandler(EventSinkService_NodeDoubleClick)
and

private void EventSinkService_NodeDoubleClick(NNodeViewEventArgs args)
{
MessageHelper.InfoMessage(this.ParentForm, args.HitNode.ToString())
}

The above does work only for clicking for empty document returns document on when clicking near the end of NStep2Connector returns HVPolylinePath, for all others it's allow in place text editing.
I don't need at all any object modifications such as resizing, editing text I need Diagrams only for representing data, for changing I would like user other methods.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

To disable inplace editing and resizing of a shape just modify its protections:

 

NAbilities protection = shape.Protection;

protection.InplaceEdit = true;

protection.ResizeX = true;

protection.ResizeY = true;

shape.Protection = protection;



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search