Dim mfc As MashFlowChart
mfc.Initialize(page,"mfc")
mfc.AddStart("st: Start","past","http://www.google.com",True)
mfc.AddEnd("e: End","","http://www.google.com",False)
mfc.AddOperation("op1","op1: My Operation","past","",False).ConnectStart("op1").ConnectRight("op1","cond").ColorStart("op1","red")
mfc.AddOperation("op2","op2: Stuff","current","",False).ConnectEnd("op2")
mfc.AddSubroutine("sub1","sub1: My subroutine","invalid","",False).ConnectLeft("sub1","op1")
mfc.AddCondition("cond","cond: Yes or No?","approved","http://www.google.com",False).IfYesConnectRight("cond","c2").IfNoConnect("cond","para").Color("cond","c2","red")
mfc.AddCondition("c2","c2: Good idea","rejected","",False).IfYesConnect("c2","io").IfNoConnectEnd("c2")
mfc.AddInputOutput("io","io: catch something...","request","",False).ConnectEnd("io").ColorEnd("io","cyan")
mfc.AddParallel("para","para: parallel tasks","","",False).Path1Bottom("para","sub1").Path2Right("para","op2")
'set flow states, this applies a theme to the flowchart
mfc.AddFlowStateFill("future","#FFFF99").AddFlowStateFill("invalid","#444444").AddFlowStateFill("request","blue")
mfc.AddFlowState("past","#CCCCCC","","12","","","")
mfc.AddFlowState("current","yellow","red","bold","","","")
mfc.AddFlowState("approved","#58C4A3","","","12","APPROVED","n/a")
mfc.AddFlowState("rejected","#C45879","","","12","n/a","REJECTED")
page.Cell(2,1).AddComponent(mfc.ABMComp)