Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Readonly Diagram View. (Read 3129 times)
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Readonly Diagram View.
Mar 4th, 2009 at 1:42pm
Print Post  
hi,
Can we populate a Diagram view readonly, something
like user is not allowed to delete task,delete links but allow only select.

regards
sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Readonly Diagram View.
Reply #1 - Mar 4th, 2009 at 2:04pm
Print Post  
Hi,

Set Behavior = Modify and DelKeyActyon = None.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SandeepGowda
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Jan 6th, 2009
Re: Readonly Diagram View.
Reply #2 - Mar 4th, 2009 at 2:38pm
Print Post  
hi,
can you please tell me which method is this DelKeyActyon = None.

regards
sandeep
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Readonly Diagram View.
Reply #3 - Mar 4th, 2009 at 2:57pm
Print Post  
It's a property of DiagramView.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Re: Readonly Diagram View.
Reply #4 - Mar 7th, 2009 at 12:05pm
Print Post  
It is not a complete solution because user can still SELECT a node using mouse and resize it.

Can we really make the view READONLY? I tried to make Enabled=False but it will disable the scroll bars as well.

my current temporary solution is
Enabled=False
ResizeToFit()

Please post a complete solution
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Readonly Diagram View.
Reply #5 - Mar 8th, 2009 at 10:48am
Print Post  
You could use the DoNothing behavior. It will disable selection, but you could select nodes in response to the NodeClicked event. Another possibility is to use Modify, but call e.CancelDrag from the LinkModifying and NodeModifying handlers.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Re: Readonly Diagram View.
Reply #6 - Mar 17th, 2009 at 10:31am
Print Post  
This solution will have one problem.

The user will not be able to modify any link or nodes but still he will see the anchors (i.e. he can select it) This will not look like a perfect readonly view. I have done one more thing. I have set all the items (links or nodes) to be locked.

  For Each item As DiagramItem In myDiagram.Items
         item.Locked = True
  Next

This will create a perfect read only view...
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Readonly Diagram View.
Reply #7 - Mar 17th, 2009 at 12:34pm
Print Post  
If you want to disable even selection of items, just set DiagramView.Behavior = DoNothing.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint