Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change and set Properties of nodes/controls (Read 2798 times)
padmavathi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 29th, 2010
Change and set Properties of nodes/controls
Jun 30th, 2010 at 1:22pm
Print Post  
Hi
I am evaluating DiagramLite. I have a question here. If i want to change/set propeties of a node , for eg. say I have a connector line,now I want to change the color of that node. So, to do this, is it possible to have a properties dialogue box coming up when I select node on a side of the diagram (similar to properties window of controls in Visual studio)? If this is possible, give me some insight into how can i achieve this?

Thanks & Regards
Padma
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change and set Properties of nodes/controls
Reply #1 - Jun 30th, 2010 at 1:35pm
Print Post  
Hi,

There's no built-in properties window. You can show your own in response to the NodeClicked or NodeSelected events.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
padmavathi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 29th, 2010
Re: Change and set Properties of nodes/controls
Reply #2 - Jul 1st, 2010 at 3:40am
Print Post  
Yes I agree that we need to build our own window kind of node for this.
I want to have this to be done in LinkNode selection event rather than any other Node clicked/node selected. Why because when I had this events implemented, while clicking a link node these are not fired. Can you tell me event handler for selecting a link node?
Link node here I mean.... the connection/link between anytwo nodes in the diagram.

Thanks & Regards
Padma.
  
Back to top
 
IP Logged
 
padmavathi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 29th, 2010
Re: Change and set Properties of nodes/controls
Reply #3 - Jul 1st, 2010 at 3:55am
Print Post  
I have tried this for Link events:

public event LinkEventHandler LinkSelected;


public MainPage()
{
InitializeComponent();
LinkSelected += new LinkEventHandler(MainPage_LinkSelected);
}

void MainPage_LinkSelected(object sender, LinkEventArgs e)
       {
            DiagramLink selectedLink = e.Link;
       }

But this is not getting fired when I select a link in the diagram.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change and set Properties of nodes/controls
Reply #4 - Jul 1st, 2010 at 6:09am
Print Post  
LinkSelected is raised as expected in my test. Can you actually see selection handles shown when you click on a link? Selection might be disabled if the links are locked or if the current Behavior does not allow selecting items. In such case try handling LinkClicked.

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