184. I am trying to create a hyperlink. I can get the link but I cannot tell the link where to go. What can I do
// AnchorClick event - Occurs when an anchor element is clicked.
void OnAnchorClickChartView1(LPCTSTR AnchorID,LPCTSTR Options)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
OutputDebugStringW( L"Options" );
}
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetRoot()->PutImage(0);
EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes();
var_Nodes->Add(L"<a;http://www.exontrol.com>exontrol</a>",long(0),"1234",vtMissing,vtMissing);
183. Is it possible to put a caption on the regular links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkCaption(L"<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link"); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
182. Is it possible to hide directions for specific links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutShowLinkDir(VARIANT_FALSE); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
181. Does your control supports multiple lines tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spChartView1->PutToolTipDelay(1);
spChartView1->GetRoot()->PutToolTip(_bstr_t("<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The toolt") +
"ip supports built-in HTML tags, icons and pictures.<br><br><br><img>pic1</img> picture ... <br><" +
"br>");
180. Can I change the border's node, using your EBN technology, including specifying a color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\hot.ebn"); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line.<br>-using no color"); var_Node->PutBackColor(0x1000000); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node1->PutCaption(L"This is a bit of long text that should break the line.<br>-using a color"); var_Node1->PutBackColor(0x100ff00);
179. Can the chart be arranged from the left to right (LTR)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->PutLayout(EXORGCHARTLib::exLayoutLTR); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutIndentSiblingX(32); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child1",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Child2",long(0),"1235",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing)->PutCaption(L"This is a bit of long text that should break the line."); spChartView1->EndUpdate();
178. Is there any property to keep the aspect ratio for all pictures, but still keep the size of nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->PutPictureHeightNode(48); spChartView1->PutPictureAspectRatioNode(EXORGCHARTLib::exAspectRatioHeight); spChartView1->PutFixedWidthNode(82); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"PNG <b>1",long(0),"0",vtMissing,vtMissing); var_Node->PutPicture("c:\\exontrol\\images\\card.png"); var_Node->PutAlignment(EXORGCHARTLib::CenterAlignment); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"PNG <b>2",long(0),"1",vtMissing,vtMissing); var_Node1->PutPicture("c:\\exontrol\\images\\diary.png"); var_Node1->PutAlignment(EXORGCHARTLib::CenterAlignment); EXORGCHARTLib::INodePtr var_Node2 = var_Nodes->Add(L"PNG <b>3",long(0),"2",vtMissing,vtMissing); var_Node2->PutPicture("c:\\exontrol\\images\\sun.png"); var_Node2->PutAlignment(EXORGCHARTLib::CenterAlignment); spChartView1->GetRoot()->PutAlignment(EXORGCHARTLib::CenterAlignment); spChartView1->EndUpdate();
177. Is there any property to keep the aspect ratio for all pictures
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->PutPictureHeightNode(48); spChartView1->PutPictureAspectRatioNode(EXORGCHARTLib::exAspectRatioHeight); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"PNG <b>1",long(0),"0",vtMissing,vtMissing); var_Node->PutPicture("c:\\exontrol\\images\\card.png"); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"PNG <b>2",long(0),"1",vtMissing,vtMissing); var_Node1->PutPicture("c:\\exontrol\\images\\diary.png"); EXORGCHARTLib::INodePtr var_Node2 = var_Nodes->Add(L"PNG <b>3",long(0),"2",vtMissing,vtMissing); var_Node2->PutPicture("c:\\exontrol\\images\\sun.png"); spChartView1->EndUpdate();
176. Is there any property to keep the aspect ratio for all pictures
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->PutPictureWidthNode(48); spChartView1->PutPictureAspectRatioNode(EXORGCHARTLib::exAspectRatioWidth); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"PNG <b>1",long(0),"0",vtMissing,vtMissing); var_Node->PutPicture("c:\\exontrol\\images\\card.png"); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"PNG <b>2",long(0),"1",vtMissing,vtMissing); var_Node1->PutPicture("c:\\exontrol\\images\\diary.png"); EXORGCHARTLib::INodePtr var_Node2 = var_Nodes->Add(L"PNG <b>3",long(0),"2",vtMissing,vtMissing); var_Node2->PutPicture("c:\\exontrol\\images\\sun.png"); spChartView1->EndUpdate();
175. Is there any property to keep the aspect ratio for displayed picture
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Ratio/None",long(0),"0",vtMissing,vtMissing); var_Node->PutPicture("c:\\exontrol\\images\\card.png"); var_Node->PutPictureWidth(48); var_Node->PutPictureHeight(48); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"Ratio/Width",long(0),"1",vtMissing,vtMissing); var_Node1->PutPicture("c:\\exontrol\\images\\card.png"); var_Node1->PutPictureWidth(48); var_Node1->PutPictureAspectRatio(EXORGCHARTLib::exAspectRatioWidth); EXORGCHARTLib::INodePtr var_Node2 = var_Nodes->Add(L"Ratio/Height",long(0),"2",vtMissing,vtMissing); var_Node2->PutPicture("c:\\exontrol\\images\\card.png"); var_Node2->PutPictureHeight(48); var_Node2->PutPictureAspectRatio(EXORGCHARTLib::exAspectRatioHeight); spChartView1->EndUpdate();
174. Is is possible to show the round an arbitrary link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutAntiAliasing(VARIANT_TRUE); spChartView1->PutShowLinksDir(VARIANT_FALSE); spChartView1->PutPenWidthLink(1); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Node->PutLinkTo("LB,LB22"); var_Node->PutLinkToColor(L"LB",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LB",2); var_Node->PutLinkToPen(L"LB",EXORGCHARTLib::exPenDot); var_Node->PutLinkToShowDir(L"LB",VARIANT_TRUE); var_Node->PutLinkToRound(L"LB",VARIANT_TRUE); var_Node->PutLinkToRound(L"LB22",VARIANT_TRUE); var_Node->PutLinkToShowDir(L"LB22",VARIANT_TRUE); var_Node->PutLinkToColor(L"LB22",RGB(128,0,0)); var_Node->PutLinkToWidth(L"LB22",2); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
173. Is is possible to show the round an arbitrary link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutAntiAliasing(VARIANT_TRUE); spChartView1->PutShowLinksDir(VARIANT_FALSE); spChartView1->PutPenWidthLink(1); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Node->PutLinkTo("LB"); var_Node->PutLinkToColor(L"LB",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LB",2); var_Node->PutLinkToPen(L"LB",EXORGCHARTLib::exPenDot); var_Node->PutLinkToShowDir(L"LB",VARIANT_TRUE); var_Node->PutLinkToRound(L"LB",VARIANT_TRUE); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
172. Is is possible to show the direction for a linktoline, even if the ShowLinksDir is False
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutShowLinksDir(VARIANT_FALSE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToColor(L"LA2",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LA2",2); var_Node->PutLinkToPen(L"LA2",EXORGCHARTLib::exPenDashDot); var_Node->PutLinkToShowDir(L"LA2",VARIANT_TRUE); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
171. Is is possible to change the width for a specified linkto line
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToColor(L"LA2",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LA2",4); var_Node->PutLinkToPen(L"LA2",EXORGCHARTLib::exPenSolid); var_Node->PutLinkToCaption(L"LA2",L"L2A-L1B"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
170. Is is possible to change the width for a specified linkto line
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToColor(L"LA2",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LA2",2); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
169. Is is possible to change the color for a specified linkto line
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkTo("LB"); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B<br><br>Cust",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToColor(L"LA2",RGB(255,0,0)); var_Node->PutLinkToWidth(L"LA2",2); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing); var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing); var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
168. How can I specify the size for a picture being shown in a specified node only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Child 1",long(0),"1",vtMissing,vtMissing); var_Node->PutPicture("c:\\exontrol\\images\\zipdisk.gif"); var_Node->PutPictureWidth(64); var_Node->PutPictureHeight(64); var_Nodes->Add(L"Child 2",long(0),"2",vtMissing,vtMissing)->PutPicture("c:\\exontrol\\images\\auction.gif");
167. How can I resize the pictures being shown in the nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPictureHeightNode(24); spChartView1->PutPictureWidthNode(24); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"1",vtMissing,vtMissing)->PutPicture("c:\\exontrol\\images\\zipdisk.gif"); var_Nodes->Add(L"Child 2",long(0),"2",vtMissing,vtMissing)->PutPicture("c:\\exontrol\\images\\auction.gif");
166. Can I change the width of the node's border
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Child 1",long(0),"1",vtMissing,vtMissing); var_Node->PutBorderWidth(3); var_Node->PutDrawRoundNode(VARIANT_FALSE); var_Nodes->Add(L"Child 2",long(0),"2",vtMissing,vtMissing);
165. Can I change the visual appearance of the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"1",vtMissing,vtMissing)->PutBackColor(0x1000000); var_Nodes->Add(L"Child 2",long(0),"2",vtMissing,vtMissing);
164. Can I specify a different color for node's border
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"1",vtMissing,vtMissing)->PutBorderColor(RGB(255,0,0)); var_Nodes->Add(L"Child 2",long(0),"2",vtMissing,vtMissing);
163. Can I display my image on my links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\colorize.gif"); spChartView1->PutAntiAliasing(VARIANT_TRUE); spChartView1->PutIndentSiblingY(30); spChartView1->PutIndentSiblingX(60); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToCaption(L"LA2",L"<img>pic1</img> text"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
162. How can I show a caption on my link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutAntiAliasing(VARIANT_TRUE); spChartView1->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing); var_Node->PutLinkTo("LA2"); var_Node->PutLinkToCaption(L"LA2",L"text"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
161. How can I show smootly the arrows
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutAntiAliasing(VARIANT_TRUE); spChartView1->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing)->PutLinkTo("LA2"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing)->PutLinkTo("LB"); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
160. How can I show direction on my links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing)->PutLinkTo("LA2"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing)->PutLinkTo("LB"); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
159. How can I add a doubled direction link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing)->PutLinkTo("LA2"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing)->PutLinkTo("LB"); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
158. How can I add arbitrary links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing)->PutLinkTo("LA2"); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
157. How can I add multiple parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"L1",vtMissing,vtMissing)->AddGroup(L"L1_B",vtMissing,vtMissing); var_Nodes->Add(L"L_A","L1",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"L_B","L1",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"L_C","L1",vtMissing,vtMissing,vtMissing);
156. How can I add multiple parents or roots
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->PutHasButtons(EXORGCHARTLib::exWPlus); spChartView1->PutButtonsAlign(EXORGCHARTLib::UpperCenter); spChartView1->PutPenWidthLink(3); spChartView1->PutIndentChild(32); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutHasButton(VARIANT_FALSE); var_Node->PutCaption(_bstr_t("<r><dotline><b>Root 1</b><br>Some information <a info>here</a>.<br><upline><dotline>Line 1:<r><") + "fgcolor=0000FF><b>1</b></fgcolor><br><upline><dotline>Line 2:<r>2<br><upline><dotline>Line 3:<r>" + "3"); var_Node->PutImage(0); var_Node->AddGroup(_bstr_t("<r><dotline><b>Root 2</b><br>Some information <a info>here</a>.<br><upline><dotline>Line 1:<r><") + "fgcolor=0000FF><b>1</b></fgcolor><br><upline><dotline>Line 2:<r>2<br><upline><dotline>Line 3:<r>" + "3",vtMissing,vtMissing); var_Node->AddGroup(_bstr_t("<r><dotline><b>Root 3</b><br>Some information <a info>here</a>.<br><upline><dotline>Line 1:<r><") + "fgcolor=0000FF><b>1</b></fgcolor><br><upline><dotline>Line 2:<r>2<br><upline><dotline>Line 3:<r>" + "3",vtMissing,vtMissing); var_Node->AddAssistant(L"<b>Assistant</b> <a1>node 1</a>",vtMissing,vtMissing)->PutKey(L"A"); EXORGCHARTLib::INodePtr var_Node1 = var_Node->AddAssistant(L"<b>Assistant</b> <a2>node 2</a>",vtMissing,vtMissing); var_Node1->PutLeft(VARIANT_TRUE); var_Node1->PutShowLinks(VARIANT_FALSE); var_Node1->PutLinkTo("A"); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); EXORGCHARTLib::INodePtr var_Node2 = var_Nodes->Add(L"Parent <b>1</b>",long(0),"Key1",vtMissing,vtMissing); var_Node2->PutHasButton(VARIANT_FALSE); var_Node2->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); var_Node2->PutShowRoundLink(VARIANT_TRUE); var_Node2->AddGroup(L"Parent <b>2</b>",vtMissing,vtMissing); var_Node2->AddGroup(L"Parent <b>3</b>",vtMissing,vtMissing); var_Nodes->Add(L"SubItem 1","Key1","S1",vtMissing,vtMissing)->PutHasButton(VARIANT_FALSE); var_Nodes->Add(L"SubItem 1.1","S1","S111",vtMissing,vtMissing); var_Nodes->Add(L"SubItem 1.2","S1","S112",vtMissing,vtMissing); var_Nodes->Add(L"SubItem 2","Key1",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2",long(0),"Key2",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"SubItem 1","Key2",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"SubItem 2","Key2",vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
155. How can I align the text/caption on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLowerBackPart,L"left"); spChartView1->PutScrollPartCaptionAlignment(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLowerBackPart,EXORGCHARTLib::LeftAlignment); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exUpperBackPart,L"right"); spChartView1->PutScrollPartCaptionAlignment(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exUpperBackPart,EXORGCHARTLib::RightAlignment); spChartView1->PutFixedWidthNode(320);
154. How can I show round links
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutShowRoundLink(VARIANT_TRUE); spChartView1->GetRoot()->PutImage(0); spChartView1->PutIndentSiblingX(32); spChartView1->PutIndentSiblingY(64); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutArrangeSiblingNodesAs(EXORGCHARTLib::exHorizontally); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
153. How do I access a node by its key
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"C1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Child 1","C1","SC1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Sub Shild 1","SC1",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->GetItem("SC1")->PutBackColor(RGB(255,0,0));
152. How can I get the number of nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->GetRoot()->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"C1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Child 1","C1","SC1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Sub Shild 1","SC1",vtMissing,vtMissing,vtMissing); var_Nodes->Remove(long(3));
151. How can I remove all nodes in the chart
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetNodes()->Clear();
150. How can I clear the chart
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetNodes()->Clear();
149. How can I get the number of nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->GetRoot()->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"C1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Child 1","C1","SC1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Sub Shild 1","SC1",vtMissing,vtMissing,vtMissing); var_Nodes->Add(_bstr_t(var_Nodes->GetCount()),vtMissing,vtMissing,vtMissing,vtMissing);
148. How can I add a child node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->GetRoot()->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"C1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Child 1","C1","SC1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Sub Shild 1","SC1",vtMissing,vtMissing,vtMissing);
147. How can I add a child node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"C1",vtMissing,vtMissing); var_Nodes->Add(L"Child 2",long(0),"C2",vtMissing,vtMissing); var_Nodes->Add(L"Sub Child 1","C1","SC1",vtMissing,vtMissing); var_Nodes->Add(L"Sub Sub Shild 1","SC1",vtMissing,vtMissing,vtMissing);
146. How can I draw link or a line between my own nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutPenLink(EXORGCHARTLib::exPenSolid); spChartView1->PutPenWidthLink(3); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node1->PutLinkTo("AA"); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",long(0),"AA",vtMissing,vtMissing);
145. How can I show or hide the link or a line between nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutShowLinks(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
144. How can I hide or show the +/- expand/collapse buttons for a specified node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutHasButton(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
143. How can I expand or collapse a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
142. How can I assign an icon to the root node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spChartView1->GetRoot()->PutImage(1);
141. How can I access an assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); var_Node->GetAssistant(long(0))->PutImage(1); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
140. How can I get the number or count of assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); var_Node->AddAssistant(_bstr_t(var_Node->GetCountAssistants()),vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
139. How can I display assistant nodes on the right side only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing)->PutLeft(VARIANT_FALSE); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing)->PutLeft(VARIANT_FALSE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
138. How can I display assistant nodes on the left side only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing)->PutLeft(VARIANT_TRUE); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing)->PutLeft(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
137. How can I clear or remove all assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); var_Node->ClearAssistants(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
136. How can I remove an assistant node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); var_Node->RemoveAssistant(long(0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
135. How can I add assistant node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
134. Can I change the border's node, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\hot.ebn"); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutBackColor(0x1000000);
133. Can I remove the shadow for a specified node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutShadowNode(VARIANT_FALSE);
132. Can I change the border for a specified node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutPenBorderNode(EXORGCHARTLib::exPenDashDotDot);
131. Can I remove the round corner for a specified node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutDrawRoundNode(VARIANT_FALSE);
130. How can I disable or enable a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutEnabled(VARIANT_FALSE);
129. How can I specify the height of the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutFixedHeight(128);
128. How can I specify the width of the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutFixedWidth(128);
127. How can I specify the width of the node to wrap it's content
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"This is a bit of long text that should break the line."); var_Node->PutWidth(128);
126. How can I change the position of the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing)->PutPosition(0);
125. How can I count or get the number of child nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(var_Nodes->GetItem("1234")->GetNodeCount(),vtMissing,vtMissing,vtMissing,vtMissing);
124. How can I enumerate the child nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(var_Nodes->GetItem("1234")->GetFirstNode()->GetCaption(),vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(var_Nodes->GetItem("1234")0->GetCaption(),vtMissing,vtMissing,vtMissing,vtMissing);
123. How can I change the node's parent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->GetNodes()->Add(L"Child 1",long(0),"1234",vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Child 2",long(0),"1235",vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 1","1235",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"To Move","1235","Move",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->GetItem("Move"); var_Node->PutParent(((EXORGCHARTLib::INodePtr)(spChartView1->GetRoot()))); var_Node->PutCaption(L"Moved 2 Root from Child 2"); spChartView1->EndUpdate();
122. How can I assign a key to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",long(0),"1234",vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing);
121. How can I assign a key to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutKey(L"1234"); spChartView1->GetNodes()->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing);
120. How can I change the node's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutBackColor(RGB(255,0,0)); var_Node->ClearBackColor();
119. How can I change the node's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutBackColor(RGB(255,0,0));
118. How can I change the node's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutForeColor(RGB(255,0,0)); var_Node->ClearForeColor();
117. How can I change the node's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutForeColor(RGB(255,0,0));
116. How can I assign a tooltip to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"ToolTip",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutToolTip(L"This is a bit of text that's shown when the cursor hovers this <b>node</b>."); var_Node->PutToolTipTitle(L"TITLE");
115. How can I assign a different font for the node's tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"ToolTip",vtMissing,vtMissing,vtMissing,vtMissing)->PutToolTip(_bstr_t("<font Tahoma;12>This is a bit of text that's shown when the cursor hovers this <b>node</b>.</fo") + "nt>");
114. How can I assign a tooltip to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"ToolTip",vtMissing,vtMissing,vtMissing,vtMissing)->PutToolTip(L"This is a bit of text that's shown when the cursor hovers this <b>node</b>.");
113. How can I assign any extra data to my node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutUserData("your data");
112. How can I assign an icon and a picture to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutImage(1); var_Node->PutPicture(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Node->PutPictureAlignment(EXORGCHARTLib::exImageBottom);
111. How can I align the picture in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutPicture(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Node->PutPictureAlignment(EXORGCHARTLib::exImageBottom);
110. How can I align the picture in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutPicture(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Node->PutPictureAlignment(EXORGCHARTLib::exImageTop);
109. How can I align the picture in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutPicture(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Node->PutPictureAlignment(EXORGCHARTLib::exImageRight);
108. How can I assign a picture to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutPicture(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
107. How can I align the icon in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Just a node with an icon",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutImage(1); var_Node->PutImageAlignment(EXORGCHARTLib::exImageRight);
106. How can I align the icon in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Just a node with an icon",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutImage(1); var_Node->PutImageAlignment(EXORGCHARTLib::exImageBottom);
105. How can I align the icon in the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetNodes()->Add(L"Just a node with an icon",vtMissing,vtMissing,vtMissing,vtMissing); var_Node->PutImage(1); var_Node->PutImageAlignment(EXORGCHARTLib::exImageTop);
104. How can I assign an icon to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutImage(1);
103. How can I change the font for a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<font Tahoma;12>new</font> caption");
102. How can I add a multiple lines node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"0",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"Line 1<br>Line 2<br>Line3");
101. How can I add a multiple lines node
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetNodes()->Add(L"Line 1<br>Line 2<br>Line3",vtMissing,vtMissing,vtMissing,vtMissing);
100. How can I change the background color for parts of the text
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<bgcolor=FF0000>new</bgcolor> caption");
99. How can I change the foreground color for parts of the text
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<fgcolor=FF0000>new</fgcolor> caption");
98. How can I show the node as strikeout
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<s>new</s> caption");
97. How can I show the node as underlined
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<u>new</u> caption");
96. How can I show the node as italic
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<i>new</i> caption");
95. How can I bold the node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"<b>new</b> caption");
94. How can I change the node's caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child",vtMissing,vtMissing,vtMissing,vtMissing)->PutCaption(L"new caption");
93. How can I display hierarchical the child nodes so they are indented relative to their parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutPenLink(EXORGCHARTLib::exPenSolid); spChartView1->PutPenWidthLink(3); spChartView1->PutIndentSiblingX(12); spChartView1->PutIndentSiblingY(12); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"As <b>Tree</b>",long(0),"1234",vtMissing,vtMissing)->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234","456",vtMissing,vtMissing); var_Nodes->Add(L"Item 1","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2","456","78",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Item 2.1","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2.2","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 3","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"As <b>Default</b>",long(0),"AA",vtMissing,vtMissing); var_Nodes->Add(L"Item 1","AA",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2","AA","BB",vtMissing,vtMissing); var_Nodes->Add(L"Item 2.1","BB",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2.2","BB",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2.3","BB",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 3","AA",vtMissing,vtMissing,vtMissing);
92. How can I display the child nodes as a tree, so they are indented relative to their parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingY(4); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child 1",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234","456",vtMissing,vtMissing); var_Nodes->Add(L"Item 1","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2","456","78",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Item 2.1","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2.2","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 3","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child 2",vtMissing,vtMissing,vtMissing,vtMissing);
91. How can I indent the child nodes relative to their parents
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentChild(32); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"AsTree",long(0),"1234",vtMissing,vtMissing)->PutArrangeSiblingNodesAs(EXORGCHARTLib::exTree); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234","456",vtMissing,vtMissing); var_Nodes->Add(L"Item 1","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2","456","78",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Item 2.1","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 2.2","78",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Item 3","456",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child 2",long(0),"AA",vtMissing,vtMissing); var_Nodes->Add(L"1","AA",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"2","AA","BB",vtMissing,vtMissing); var_Nodes->Add(L"2.1","BB",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"2.2","BB",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"3","AA",vtMissing,vtMissing,vtMissing);
90. How can I increase the distance between nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingY(64); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"<a1>Link 1</a>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub <a1>Link 1</a>","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"<a2>Link 2</a>",vtMissing,vtMissing,vtMissing,vtMissing);
89. How can I increase the distance between nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutIndentSiblingX(64); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"<a1>Link 1</a>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub <a1>Link 1</a>","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"<a2>Link 2</a>",vtMissing,vtMissing,vtMissing,vtMissing);
88. How can I add an anchor or a hyperlink
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"<a1>Link 1</a>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub <a1>Link 1</a>","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"<a2>Link 2</a>",vtMissing,vtMissing,vtMissing,vtMissing);
87. Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutFormatAnchor(VARIANT_FALSE,L"<u><fgcolor=880000> </fgcolor></u>"); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"<a1>Link 1</a>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub <a1>Link 1</a>","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"<a2>Link 2</a>",vtMissing,vtMissing,vtMissing,vtMissing);
86. Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutFormatAnchor(VARIANT_TRUE,L"<u><fgcolor=FF0000> </fgcolor></u>"); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"<a1>Link 1</a>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub <a1>Link 1</a>","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"<a2>Link 2</a>",vtMissing,vtMissing,vtMissing,vtMissing);
83. How can I assign multiple icons to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spChartView1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing)->PutCaption(L"<img>1</img> text <img>2</img> and so on<br>bla <b>bla</b> left<r><img>3</img>"); EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Node->PutCaption(L"<img>pic1</img> text <img>1:6</img><img>1:6</img><img>1</img> <img>2</img>"); var_Node->PutFixedWidth(124); var_Node->PutFixedHeight(48); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
82. How can I assign multiple pictures to a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spChartView1->PutHTMLPicture(L"pic2","c:\\exontrol\\images\\auction.gif"); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); EXORGCHARTLib::INodePtr var_Node1 = var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Node1->PutCaption(L"<img>pic1</img> text <img>pic2</img>"); var_Node1->PutFixedWidth(108); var_Node1->PutFixedHeight(48); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
81. How can I change the color of the line that links assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutLinkAssistantColor(RGB(255,0,0)); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
80. How can I change the width of the line that links assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenLinkAssistant(EXORGCHARTLib::exPenSolid); spChartView1->PutPenWidthLinkAssistant(4); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
79. How can I change the style of the line that links assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenLinkAssistant(EXORGCHARTLib::exPenDashDotDot); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
78. How can I change the shape of the cursor when it hovers the +/- or expand/collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutCursor(EXORGCHARTLib::exExpandButtonArea,"exHelp"); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
77. How do I change the shape of the cursor when the user clicks an drags the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutCursor(EXORGCHARTLib::exDragChart,"exHelp"); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
76. How do I change the shape of the cursor when it hovers a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutCursor(EXORGCHARTLib::exNodeArea,"exHelp"); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
75. How do I change the shape of the cursor when it hovers the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutCursor(EXORGCHARTLib::exChartArea,"exHelp"); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
74. How can I copy and paste the control's content to Microsoft Word for instance
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutPenLink(EXORGCHARTLib::exPenSolid); spChartView1->PutPenWidthLink(3); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
73. How can I copy and paste the control's content to Microsoft Word for instance
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutButtonsAlign(EXORGCHARTLib::MiddleRight); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
72. How can I enable or disable expanding or collapsing a node when user double clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutExpandOnDblClk(VARIANT_FALSE); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutButtonsAlign(EXORGCHARTLib::MiddleRight); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
71. How can I align the +/- expand or collapse buttons to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); spChartView1->PutButtonsAlign(EXORGCHARTLib::MiddleRight); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
70. Can I display the +/- expand or collapse buttons using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::IAppearancePtr var_Appearance = spChartView1->GetVisualAppearance(); var_Appearance->Add(11,"c:\\exontrol\\images\\normal.ebn"); var_Appearance->Add(22,"c:\\exontrol\\images\\pushed.ebn"); var_Appearance->Add(1,"CP:11 2 2 -2 -2"); var_Appearance->Add(2,"CP:22 2 2 -2 -2"); spChartView1->PutHasButtons(EXORGCHARTLib::exCustom); spChartView1->PutHasButtonsCustom(VARIANT_TRUE,33554432); spChartView1->PutHasButtonsCustom(VARIANT_FALSE,16777216); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
69. How can I change the +/- expand or collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spChartView1->PutHasButtons(EXORGCHARTLib::exCustom); spChartView1->PutHasButtonsCustom(VARIANT_TRUE,1); spChartView1->PutHasButtonsCustom(VARIANT_FALSE,2); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
68. How can I change the +/- expand or collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exCircle); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
67. How can I display +/- expand or collapse buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutHasButtons(EXORGCHARTLib::exPlus); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing)->PutExpanded(VARIANT_FALSE); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
66. How do I show or hide the assistant nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutShowAssistants(VARIANT_TRUE); EXORGCHARTLib::INodePtr var_Node = spChartView1->GetRoot(); var_Node->PutImage(0); var_Node->AddAssistant(L"Assistant 1",vtMissing,vtMissing); var_Node->AddAssistant(L"Assistant 2",vtMissing,vtMissing); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
65. How do I scale or zoom the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutBorderWidth(18); spChartView1->PutBorderHeight(18); spChartView1->PutZoomWidthMode(EXORGCHARTLib::exCustomSize); spChartView1->PutZoomHeightMode(EXORGCHARTLib::exCustomSize); spChartView1->PutZoomWidth(2); spChartView1->PutZoomHeight(2); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
64. How do I scale or zoom the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutBorderWidth(18); spChartView1->PutBorderHeight(18); spChartView1->PutZoomWidthMode(EXORGCHARTLib::exControlSize); spChartView1->PutZoomHeightMode(EXORGCHARTLib::exControlSize); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
63. How can I ensure that the selected node is visible or fits the chart's area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutEnsureVisibleOnSelect(VARIANT_TRUE); spChartView1->PutScrollOnEnsure(VARIANT_FALSE); spChartView1->PutBorderWidth(18); spChartView1->PutBorderHeight(18); spChartView1->PutZoomWidthMode(EXORGCHARTLib::exCustomSize); spChartView1->PutZoomHeightMode(EXORGCHARTLib::exCustomSize); spChartView1->PutZoomWidth(2); spChartView1->PutZoomHeight(2); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 3","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
62. How do I avoid slow moving the chart when the user selects a new node
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutScrollByClick(VARIANT_FALSE);
61. How do I ensure that a node is visible or fits the chart's area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EnsureVisibleNode("1234");
60. How do I change the root node, so it explore from a specified node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Sub 1","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Sub 2","1234",vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->PutExploreFromNode("1234");
59. How do I select a node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",long(0),"1234",vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->PutSelectNode("1234"); spChartView1->PutHideSelection(VARIANT_FALSE);
57. How do I fix the height for all nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutFixedHeightNode(32); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
56. How do I fix the width for all nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutFixedWidthNode(128); spChartView1->GetRoot()->PutImage(0); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
55. How do I change the style of the link between nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPenLink(EXORGCHARTLib::exPenDash); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
54. How do I change the color to link the nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutLinkColor(RGB(255,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
53. How do I change the shape for selected node, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spChartView1->PutSelColor(0x2000000); spChartView1->PutSelectNode("root"); spChartView1->PutHideSelection(VARIANT_FALSE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
52. How do I change the color for selected node
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutSelColor(RGB(0,0,255)); spChartView1->PutSelectNode("root"); spChartView1->PutHideSelection(VARIANT_FALSE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
51. How do I hide the node's shadow
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutShadowNode(VARIANT_FALSE);
50. How do I change the pen to draw the border for all nodes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutPenBorderNode(EXORGCHARTLib::exPenDot);
49. How do I change the shape of the border for all nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exNodeFrame,0x2000000);
48. How do I change the shape of the border for all nodes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutDrawRoundNode(VARIANT_FALSE);
47. How do I change the foreground color for all nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutForeColorNode(RGB(255,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
46. How do I change the background color for all nodes
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutBackColorNode(RGB(255,0,0)); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
45. How do I change the key of the root
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetRoot()->PutKey(L"myKey");
44. How do I change the caption of the root
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetRoot()->PutCaption(L"new<br>root");
43. How do I access the root node
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetRoot()->PutCaption(L"new<br>root");
42. How do I access the nodes collection
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); var_Nodes->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
41. How do I refresh the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetNodes()->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->Refresh();
40. How do I prevent painting while several changes are performed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->BeginUpdate(); spChartView1->GetNodes()->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->EndUpdate();
39. How do I indent the full chart to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutBorderWidth(8); spChartView1->PutBorderHeight(8);
38. How can I change the node's border/frame, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exNodeFrame,0x1000000); spChartView1->GetNodes()->Add(L"Child <b>1</b>",vtMissing,vtMissing,vtMissing,vtMissing); spChartView1->GetNodes()->Add(L"Child <b>2</b>",vtMissing,vtMissing,vtMissing,vtMissing);
37. How can still display the selected node when the control loses the focus
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutHideSelection(VARIANT_FALSE);
36. How do I disable or enable the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutEnabled(VARIANT_FALSE);
35. How do I change the visual aspect for thumb parts in the scroll bars, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spChartView1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exHSThumb,0x1000000); spChartView1->PutBackground(EXORGCHARTLib::exHSThumbP,0x2000000); spChartView1->PutBackground(EXORGCHARTLib::exHSThumbH,0x3000000); spChartView1->PutBackground(EXORGCHARTLib::exVSThumb,0x1000000); spChartView1->PutBackground(EXORGCHARTLib::exVSThumbP,0x2000000); spChartView1->PutBackground(EXORGCHARTLib::exVSThumbH,0x3000000); spChartView1->PutFixedWidthNode(320);
34. How do I change the visual aspect only for the thumb in the scroll bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spChartView1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exHSThumb,0x1000000); spChartView1->PutBackground(EXORGCHARTLib::exHSThumbP,0x2000000); spChartView1->PutBackground(EXORGCHARTLib::exHSThumbH,0x3000000); spChartView1->PutScrollThumbSize(EXORGCHARTLib::exHScroll,96); spChartView1->PutFixedWidthNode(320);
33. I've seen that you can change the visual appearance for the scroll bar. How can I do that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spChartView1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exSBtn,0x1000000); spChartView1->PutBackground(EXORGCHARTLib::exSBtnP,0x2000000); spChartView1->PutBackground(EXORGCHARTLib::exSBtnH,0x3000000); spChartView1->PutBackground(EXORGCHARTLib::exHSBack,RGB(240,240,240)); spChartView1->PutBackground(EXORGCHARTLib::exVSBack,RGB(240,240,240)); spChartView1->PutBackground(EXORGCHARTLib::exSizeGrip,RGB(240,240,240)); spChartView1->PutFixedWidthNode(320);
32. Can I change the forecolor for the tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipDelay(1);
spChartView1->PutToolTipWidth(364);
spChartView1->PutBackground(EXORGCHARTLib::exToolTipForeColor,RGB(255,0,0));
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
31. Can I change the background color for the tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipDelay(1);
spChartView1->PutToolTipWidth(364);
spChartView1->PutBackground(EXORGCHARTLib::exToolTipBackColor,RGB(255,0,0));
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
30. Can I change the default border of the tooltip, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutToolTipDelay(1); spChartView1->PutToolTipWidth(364); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->PutBackground(EXORGCHARTLib::exToolTipAppearance,0x1000000); spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
29. How do I call your x-script language
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->ExecuteTemplate(L"BackColor = RGB(255,0,0)");
28. How do I call your x-script language
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutTemplate(L"BackColor = RGB(255,0,0)");
27. Can I change the font for the tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipDelay(1);
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spChartView1->GetToolTipFont();
var_StdFont->PutName(L"Tahoma");
var_StdFont->PutSize(_variant_t(long(14)));
spChartView1->PutToolTipWidth(364);
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
26. I've seen that the width of the tooltip is variable. Can I make it larger
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipWidth(328);
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
25. How do I let the tooltip being displayed longer
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipPopDelay(10000);
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
24. How do I disable showing the tooltip for all control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipDelay(0);
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
23. How do I show the tooltip quicker
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutToolTipDelay(1);
spChartView1->GetRoot()->PutToolTip(L"This is a bit of text that's shown when the cursor hovers the node.");
22. Can I change the order of the buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollOrderParts(EXORGCHARTLib::exHScroll,L"t,l,r"); spChartView1->PutScrollOrderParts(EXORGCHARTLib::exVScroll,L"t,l,r"); spChartView1->PutFixedWidthNode(320);
21. The thumb size seems to be very small. Can I make it bigger
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutScrollThumbSize(EXORGCHARTLib::exHScroll,164);
spChartView1->PutFixedWidthNode(320);
20. How do I enlarge or change the size of the control's scrollbars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollHeight(18); spChartView1->PutScrollWidth(18); spChartView1->PutScrollButtonWidth(18); spChartView1->PutScrollButtonHeight(18); spChartView1->PutFixedWidthNode(320); spChartView1->PutFixedHeightNode(320);
19. How can I display my text on the scroll bar, using a different font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exThumbPart,L"This is just a text"); spChartView1->GetScrollFont(EXORGCHARTLib::exHScroll)->PutSize(_variant_t(long(12))); spChartView1->PutScrollThumbSize(EXORGCHARTLib::exHScroll,128); spChartView1->PutScrollHeight(0); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exThumbPart,L"This is <s><font Tahoma;12> just </font></s> text"); spChartView1->PutScrollHeight(20); spChartView1->PutFixedWidthNode(320);
18. How can I display my text on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exThumbPart,L"this is just a text"); spChartView1->PutScrollThumbSize(EXORGCHARTLib::exHScroll,96); spChartView1->PutFixedWidthNode(320);
17. How do I assign a tooltip to a scrollbar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutScrollToolTip(EXORGCHARTLib::exHScroll,L"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar");
spChartView1->PutFixedWidthNode(320);
16. How do I assign an icon to the button in the scrollbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB1Part,VARIANT_TRUE); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB1Part,L"<img>1</img>"); spChartView1->PutScrollHeight(18); spChartView1->PutScrollButtonWidth(18); spChartView1->PutFixedWidthNode(320);
15. I need to add a button in the scroll bar. Is this possible
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB1Part,VARIANT_TRUE); spChartView1->PutScrollPartCaption(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB1Part,L"1"); spChartView1->PutFixedWidthNode(320);
14. Can I display an additional buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB1Part,VARIANT_TRUE); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exLeftB2Part,VARIANT_TRUE); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exRightB6Part,VARIANT_TRUE); spChartView1->PutScrollPartVisible(EXORGCHARTLib::exHScroll,EXORGCHARTLib::exRightB5Part,VARIANT_TRUE); spChartView1->PutFixedWidthNode(320);
13. How do I change the control's foreground color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutForeColor(RGB(255,0,0));
12. How do I change the control's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutBackColor(RGB(200,200,200));
11. How can I change the control's font
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->GetFont()->PutName(L"Verdana");
10. How do I put a picture on the center of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::MiddleCenter);
9. How do I resize/stretch a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::Stretch);
8. How do I put a picture on the control's center right bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::LowerRight);
7. How do I put a picture on the control's center left bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::LowerLeft);
6. How do I put a picture on the control's center top side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::UpperCenter);
5. How do I put a picture on the control's right top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::UpperRight);
4. How do I put a picture on the control's left top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spChartView1->PutPictureDisplay(EXORGCHARTLib::UpperLeft);
3. How do I put a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->PutPicture(IPictureDispPtr(((IDispatch*)(spChartView1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
2. How do I change the control's border, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library' #import <ExOrgChart.dll> using namespace EXORGCHARTLib; */ EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown(); spChartView1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spChartView1->PutAppearance(EXORGCHARTLib::AppearanceEnum(0x1000000));
1. How do I remove the control's border
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'
#import <ExOrgChart.dll>
using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutAppearance(EXORGCHARTLib::None2);