Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to do a full overview of the whole flowchart (Read 4019 times)
mah
Guest


How to do a full overview of the whole flowchart
Sep 15th, 2005 at 5:31am
Print Post  
I am wonder how we can do the overview of the flowchart on a floating form in vb.net (like in the demo)

do you have the sample code?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to do a full overview of the whole flowcha
Reply #1 - Sep 15th, 2005 at 6:53am
Print Post  
You just create a new form OverviewForm in your project and place the Overview control in it. Set the overview's Dock property to Fill and FitAll to true.

Add such method to the new form:

public sub SetDocument(doc as MindFusion.FlowChartX.FlowChart)

overview1.Document = doc
end sub

And somewhere in the main form show the overview form like this:

ovForm = new OverviewForm()
ovForm.SetDocument(flowChart1)
ovForm.Owner = Me
ovForm.Show()
  
Back to top
 
IP Logged
 
mah
Guest


Re: How to do a full overview of the whole flowcha
Reply #2 - Sep 20th, 2005 at 6:08am
Print Post  
i have error on this

overview1.Document = doc

below is my codes.
-------------------------------
Imports MindFusion.FlowChartX
Imports WindowsApplication1.Form1

Public Class overview

    Private Sub overview_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Dim ovForm = New overview()
       ovForm.SetDocument(Form1.FlowChart1)
       ovForm.Owner = Me
       ovForm.Show()
    End Sub

    Public Sub setDocument(ByVal doc As MindFusion.FlowChartX.FlowChart)
       Form1.FlowChart1.Dock = DockStyle.Fill
       overview1.document = doc
    End Sub

End Class
------------------------------------
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to do a full overview of the whole flowcha
Reply #3 - Sep 20th, 2005 at 6:52am
Print Post  
Is that a compiler error? Is the Overview instance in your form called 'overview1' so the

overview1.Document = doc

assigment is correct ?
  
Back to top
 
IP Logged
 
mah
Guest


Re: How to do a full overview of the whole flowcha
Reply #4 - Sep 20th, 2005 at 7:25am
Print Post  
dun worry, i forget to add the overview component.

and forget to do the overview form.. i settle my problem.. thx a lot..
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint