Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Projection color is not in sync with node moving in diagram. (Read 3952 times)
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Projection color is not in sync with node moving in diagram.
Apr 10th, 2013 at 2:13pm
Print Post  
I am working with diagramming.mindfussion diagram. I am using ruler in which i placed diagram.
code is here in xaml:-

<diag:Ruler Name="ruler"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"                        
                        Unit="Pixel"                      
                        ProjectionColor="#5E6A6AD4">
<diag:Diagram Name="diagram"                              
                              HorizontalAlignment="Left"
                              GridSizeX="10"
                              GridSizeY="10"/>


I can set left, top ,width and height of diagram node with the numeric button. code is here
spnLeft , spnTop , spnWidth and spnHeight are numeric button names.

r = diagram.Selection.Items(0).GetRect
            For Lop = 0 To diagram.Nodes.Count - 1
                If diagram.Nodes(Lop).Selected = True Then
                    Updated = True
                    Select Case sender.name
                        Case "spnLeft"
                            r.X = CDbl(spnLeft.Value)
                        Case "spnTop"
                            r.Y = CDbl(spnTop.Value)
                        Case "spnWidth"
                            r.Width = CDbl(spnWidth.Value)
                        Case "spnHeight"
                            r.Height = CDbl(spnHeight.Value)
                    End Select
                    diagram.Nodes(Lop).SetBounds(r, True)

                End If
                If Updated = True Then Exit Sub
            Next Lop


when a node moved using mouse then projection color is shown correctly in ruler scale and when increase/decrease width/height using numeric up down buttons, the projection color does not get updated. Please suggest something... Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Projection color is not in sync with node moving in diagram.
Reply #1 - Apr 11th, 2013 at 6:33am
Print Post  
This version makes the Ruler.UpdateNodeProjection() method public:
https://mindfusion.eu/_beta/diaglite_nodeproj.zip

Call it after SetBounds to repaint the projection on ruler scales.

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


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Projection color is not in sync with node moving in diagram.
Reply #2 - Apr 16th, 2013 at 8:01am
Print Post  
Hi Stoyo,

Thanks for replying back. I checked the binaries but this looks like in beta stage. As we are very near to final release, we can not go with this beta version now. Can you please let me know when you are going to release the final version of the binaries? This will help us scheduling our project time frame.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Projection color is not in sync with node moving in diagram.
Reply #3 - Apr 16th, 2013 at 10:22am
Print Post  
We don't plan new releases soon. That build only adds the new method to the released version 3, so it should be stable enough. If you own a license, you can send your details to support@mindfusion email address to request the licensed version of the control.

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