Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to identify the object in the demo program (Read 1933 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
How to identify the object in the demo program
Jan 3rd, 2013 at 7:29am
Print Post  
In the demo program there's a really smart panel in the left column that displays all of the properties for the object that you've clicked on in the main window. Maybe I'm missing something obvious, but what I'm missing is some way of knowing exactly what the object is.

So maybe instead of the header "Selected Object Properties" it should say "Selected object is xxxxx".

Or am I missing  something obvious?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to identify the object in the demo program
Reply #1 - Jan 3rd, 2013 at 11:31am
Print Post  
Hi,

It should be easy to see what item is selected in the diagram canvas on the right. If there are no items selected, the property grid displays the properties of the Diagram object.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: How to identify the object in the demo program
Reply #2 - Jan 3rd, 2013 at 2:58pm
Print Post  
Sorry, I didn't express myself clearly enough. What I mean is I'd like to know what the .Net object type is, for example is it a MindFusion.Diagramming.CompositeNode or a MindFusion.Diagramming.ContainerNode or a MindFusion.Diagramming.ShapeNode, that thing I've selected in the diagram?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to identify the object in the demo program
Reply #3 - Jan 3rd, 2013 at 3:16pm
Print Post  
Hi,

Set the following in the MainForm.UpdateSelectedObject method to see the type:

_selectedPropsLabel.Text = _diagram.ActiveItem.GetType().ToString();

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