Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
How to set diagram read only?
How to set diagram read only?
Post Reply
How to set diagram read only?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
You have several options:
1. Loop all elements and set the respective protections
2. Disable the respective tools - for example the following code disables the Move tool:
NTool tool = drawingView.Controller.Tools.GetToolByName(NDWFR.ToolMove);
tool.Enabled = false;
3. One dirty trick to disable modifcations is to set an invalid id to the ActiveLayerUniqueId property:
m_View.document.ActiveLayerUniqueId = Guid.NewGuid()
Tools that modify the document always take the active layer into account. If you do not have an active layer, user cannot modify or select anything.
Best Regards,
Nevron Support Team
Reply
Like
0
Boon Kean Chin
Boon Kean Chin
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 3,
Visits: 14
How to set diagram read only, not allowing user to make any changes to the document? Have to loop all the elements in the diagram?
Tags
Diagram Document
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search