110 |
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)
|
109 |
ImageSize property on 16 (default) (specifies the size of control' icons)
|
108 |
How can I add a hierarchy (multiple-columns), using the Item.ToString method
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exLinesAtRoot); var_FaceTree->GetColumns()->Add(L"1")->PutAlignment(EXTREECUBELib::LeftAlignment); var_FaceTree->GetColumns()->Add(L"2")->PutAlignment(EXTREECUBELib::LeftAlignment); var_FaceTree->GetColumns()->Add(L"3")->PutAlignment(EXTREECUBELib::LeftAlignment); var_FaceTree->GetItems()->PutToString(_bstr_t("Root 1;Root 2;Root 3(Child1.1;Child2.1;Child3.1(SubChild 1.1;SubChild 2.1;SubChild 3.1,SubChild 2.1;SubChild 2.2;SubChild 2.3),") + "Child 1.2;Child 2.2;Child 3.2)"); var_FaceTree->GetItems()->ExpandAll(); OutputDebugStringW( var_FaceTree->GetItems()->GetItem(long(0))->GetToString() ); |
107 |
How can I add a hierarchy (single column), using the Item.ToString method
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exLinesAtRoot); var_FaceTree->GetColumns()->Add(L"")->PutAlignment(EXTREECUBELib::LeftAlignment); var_FaceTree->GetItems()->PutCount(1); var_FaceTree->GetItems()->GetItem(long(0))->PutToString(L"Root(Child1(SubChild 1,SubChild 2),Child2)"); var_FaceTree->GetItems()->ExpandAll(); OutputDebugStringW( var_FaceTree->GetItems()->GetItem(long(0))->GetToString() ); |
106 |
How can add items to a list
|
105 |
How can I split a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutHTMLPicture(L"P1","c:\\exontrol\\images\\zipdisk.gif"); spTreeCube1->PutHTMLPicture(L"P2","c:\\exontrol\\images\\auction.gif"); spTreeCube1->PutHTMLPicture(L"P3","c:\\exontrol\\images\\colorize.gif"); spTreeCube1->PutHTMLPicture(L"P4","c:\\exontrol\\images\\auction.gif"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Choose your quick actions"); var_Item->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item1 = var_Item->GetItems()->Add(""); var_Item1->PutHeight(48); _bstr_t s = 0; var_Item1->PutValue(s,"<c><img>P1</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P2</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P3</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P4</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item->PutExpanded(VARIANT_TRUE); spTreeCube1->EndUpdate(); |
104 |
I've noticed that the Face has no background color. Still, can I change the face's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = var_Face->CreateCalendar(); var_FaceCalendar->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar->PutMaxMonthX(var_FaceCalendar->GetMinMonthX()); var_FaceCalendar->PutMaxMonthY(var_FaceCalendar->GetMinMonthY()); var_FaceCalendar->PutShowTodayButton(VARIANT_FALSE); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceBackColor,long(15790320)); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceHeight,"height"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceVisible,long(1)); spTreeCube1->EndUpdate(); |
103 |
How can I change the +/- expanding/collapsing buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->BeginUpdate(); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABDgCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKKwEgmEQMQiCcbzX") + "IUBxAAqXZZFUaKAgOMJDTLBAzUSAAYhtHqeJBjID4JA6UJXRpIAIQSSBUjGOg6TiMUYZAguAxCEzZUT0fAYUQSCC3ZzDCKoRpiCT7Xg8V5OVbjUz9P7AMBwLA7erxap6" + "PJeD54QymGp/R5eMhyLI8UxXFqRY6veKtJhGDIrT5CEIQVA9EyXJqnahqOiaCguPorQy/dYYdg2BYBPS6MAvG4bVrOd59XrgN42fY2ByzAqlMQwS7rOqiY6YWTnehWTo" + "HE+JZUmoLB5CufQuAkBYkGO+ZrDWAo7keZZyHmH5+i8X4bluaJyHgGB9mQHx3JjBpViqJRHmueZ7H8Xo3i2fYAl+d5tncMRfDcdZeDMDIjCCJwokoEoQiEJ4KCIfIdgU" + "SZIAWaoGCEUh2BIJ4gnKBgMDICAnHoCggg0Aw4k0KAJkIagaguYwIj4LAmiKEw2CUIIiHMUJSDQSYyGCFYMGQCJCD0JRjiMRg3gmTYjGSVgmgkchSD4JJklIRIXCSSQY" + "j4U4UgkQhGE+EwJEkJJWhGpgGGIOBNmMdhPg8SRiHCGAlibNhohqJpJi4T4ZA2WYIgEYInGOGJlDkCQyECDoTEkKQ+E+C5oCIVhQCUCQpnSDoeg4SZZH8YdhjibQ7AiU" + "gkgcJFyiyEYmGmOhqhyJ5pmILoYCKaRSB6Eg7CcZgZggaRqHqNoTiuDpKkKMormsQ4xiUYgYiKEo6CCWgWiqPovloZoGjoKQYiOLR1ECUAQIC"); var_Appearance->Add(2,_bstr_t("gBFLBCJwBAEHhEJAADhABDwCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKKwEgmEQMQiCcbzX") + "IUBxAAqXZZFUaKAgOMJDTLBAzUSAAYhtHqeJBjID4JA6UJXRpIAIQSSBUjGOg6TiMUYZAguAxCEzZUT0fAYUQSCC3ZzDCKoRpiCT7Xg8V5OVbjUz9P7AMBwLA7erxap6" + "PJeD54QymGp/R5eMhyLI8UxXFqRY6veKtJhGDIrT5CEIQVA9EyXJqnahqOiaCguPorQy/dYYdg2BYBPS6MAvG4bVrOd59XrgN42fY2ByzAqlMQwS7rOqiY6YWTnehWTo" + "HE+JZUmoLB5CufQuAkBYkGO+ZrDWAo7keZZyHmPQ+g8X4fluYBhneEB9l0Iwpg6RRWiqFQfg+V5nnefh/GAB5yAIfRMFeRZdHeDJDCiSApkoMoEiQKBJmKCIfCcYQiHI" + "FYFkmeBaBOA5JmgsICEyAgJl6AZICMQJODMSgCHCGg/mKSI2C6C5jAiNgpCaIhjDYIggiIQxQlINBJjIYIVgwZAJAYPQlGOIxGDeCQNiMZJWCaCRyFIPgkmSUhEhcJJl" + "CkUhThUZQiFCEYTmSQhSEkNYkHYBIBhiTgTHiXYTmOUhYhwJgJGmJhuhsJoZi4bYbCSeYUl2GJIBYCh4DmDhThCEwkAiaQ0hKE5oEIVITiEaB6BqAofkiaZwmSHgXnYG" + "h4DuDpTjCDQiEgchAg0IpJBobodicKZqgaIAimmIguhcIZpEOMh4GGGIGhaKYrmkWpAmyLIrEqRo2DsGhWCGCgpCuQgNiEaosAsBYmGga5ChGCg6lcVANAEgI"); spTreeCube1->PutBackground(EXTREECUBELib::exTreeGlyphCollapsed,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exTreeGlyphExpanded,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutExpandOnDblClick(VARIANT_TRUE); var_FaceTree->PutItemPadding(16); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutHasLines(EXTREECUBELib::exThinLine); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exGroupLinesInside); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->GetColumns()->Add(L"Def")->PutAlignment(EXTREECUBELib::LeftAlignment); var_FaceTree->GetItems()->PutToString(L"Root 1(Child 1,Child 2),Root 2(Child 3,Child 4)"); var_FaceTree->GetItemByIndex(3)->PutExpanded(VARIANT_TRUE); spTreeCube1->EndUpdate(); |
102 |
How can I use the ToString property
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->GetColumns()->PutToString(L"Column 1,Column 2,Column 3,Column 4"); var_FaceTree->GetItems()->PutToString(L"1;2;3;4,5;6;7;8,9;10;11;12,13;14;15;16,17;18;29;20,21;22;23;24,25;26;27;28,29;30;31;32"); |
101 |
How can I use the Background property
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->GetVisualAppearance()->Add(1,"C:\\Program Files\\Exontrol\\ExButton\\Sample\\EBN\\Assorted\\calendar_single.ebn"); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeader,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exWeeksHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDaysHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayUp,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayForeColor,RGB(255,255,255)); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = spTreeCube1->GetFrontFace()->CreateCalendar(); var_FaceCalendar->PutDate(COleDateTime(2016,1,1,0,00,00).operator DATE()); var_FaceCalendar->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar->PutMaxMonthX(var_FaceCalendar->GetMinMonthX()); var_FaceCalendar->PutMaxMonthY(var_FaceCalendar->GetMinMonthY()); spTreeCube1->EndUpdate(); |
100 |
How can I display two lists of radio-buttons
// FaceTreeStateChanged event - Notifies that a cell changes its state into a face of tree type. void OnFaceTreeStateChangedTreeCube1(LPDISPATCH Tree,long Item,long Column) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IItemPtr var_Item = spTreeCube1->GetFrontFace()->GetFaceTree()->GetItemByIndex(Item); OutputDebugStringW( L"State" ); OutputDebugStringW( _bstr_t(var_Item->GetState(long(0))) ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutItemPadding(16); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->GetColumns()->Add(L"Radio")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Group A"); EXTREECUBELib::IItemsPtr var_Items1 = var_Item->GetItems(); EXTREECUBELib::IItemPtr var_Item1 = var_Items1->Add("Radio <b>1"); var_Item1->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item1->PutRadioGroup(long(0),1234); EXTREECUBELib::IItemPtr var_Item2 = var_Items1->Add("Radio <b>2"); var_Item2->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item2->PutRadioGroup(long(0),1234); var_Item2->PutState(long(0),1); EXTREECUBELib::IItemPtr var_Item3 = var_Items1->Add("Radio <b>3"); var_Item3->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item3->PutRadioGroup(long(0),1234); var_Item->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item4 = var_Items->Add("Group B"); EXTREECUBELib::IItemsPtr var_Items2 = var_Item4->GetItems(); EXTREECUBELib::IItemPtr var_Item5 = var_Items2->Add("Radio <b>1"); var_Item5->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item5->PutRadioGroup(long(0),1235); EXTREECUBELib::IItemPtr var_Item6 = var_Items2->Add("Radio <b>2"); var_Item6->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item6->PutRadioGroup(long(0),1235); EXTREECUBELib::IItemPtr var_Item7 = var_Items2->Add("Radio <b>3"); var_Item7->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item7->PutRadioGroup(long(0),1235); var_Item7->PutState(long(0),1); var_Item4->PutExpanded(VARIANT_TRUE); |
99 |
How can I display a list of check-boxes
// FaceTreeStateChanged event - Notifies that a cell changes its state into a face of tree type. void OnFaceTreeStateChangedTreeCube1(LPDISPATCH Tree,long Item,long Column) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IItemPtr var_Item = spTreeCube1->GetFrontFace()->GetFaceTree()->GetItemByIndex(Item); OutputDebugStringW( L"State" ); OutputDebugStringW( _bstr_t(var_Item->GetState(long(0))) ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutItemPadding(16); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->GetColumns()->Add(L"Check")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); var_Items->Add("Check <b>1")->PutHasCheckBox(long(0),VARIANT_TRUE); var_Items->Add("Check <b>2")->PutHasCheckBox(long(0),VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Check <b>3"); var_Item->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item->PutState(long(0),1); var_Items->Add("Check <b>4")->PutHasCheckBox(long(0),VARIANT_TRUE); |
98 |
How do I get the selected caption
|
97 |
How do I get the selected value
|
96 |
How can I add buttons on the face
|
95 |
How do I programmatically selects a date (method 2)
|
94 |
How do I programmatically selects a date (method 1)
|
93 |
How can I display a hyperlink element
// AnchorClick event - Occurs when an anchor element is clicked. void OnAnchorClickTreeCube1(long Face,LPCTSTR AnchorID,LPCTSTR Options) { OutputDebugStringW( L"Face" ); /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( L"AnchorID" ); OutputDebugStringW( L"Options" ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->GetItems()->PutToString(L"<a A1\\;options1>Item 1</a>,<a A2\\;options2>Item 2</a>"); |
92 |
Can I display image and multiple-lines items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutHTMLPicture(L"DriveC","c:\\exontrol\\images\\zipdisk.gif"); spTreeCube1->PutHTMLPicture(L"DriveD","c:\\exontrol\\images\\auction.gif"); spTreeCube1->PutHTMLPicture(L"DriveE","c:\\exontrol\\images\\colorize.gif"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetTopFace(); var_Face->PutRelativeMargins(L"0,32,0,0"); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exNoLine); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->PutItemPadding(24); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutShowSelection(VARIANT_TRUE); var_FaceTree->PutSelBackColor(RGB(240,240,240)); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Storage"); var_Item->PutDivider(0); var_Item->PutBold(VARIANT_TRUE); var_Item->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add("Choose a drive to see what's taking up space."); var_Item1->PutSelectable(VARIANT_FALSE); var_Item1->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item2 = var_Item1->GetItems()->Add("<img>DriveC:64</img>"); var_Item2->PutHeight(68); var_Item2->PutBackgroundExt(long(0),L"none[(76,4,100%-76,100%-8)](client[text=``],bottom[16,back=RGB(204,204,204)](left[0%,back=RGB(0,120,215)]))"); var_Item2->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExtWordWrap,VARIANT_TRUE); var_Item2->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,"<fgcolor=000000>LROG (C:)<br>58.7 GB used out of 150 GB"); var_Item2->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"39%"); EXTREECUBELib::IItemPtr var_Item3 = var_Item1->GetItems()->Add("<img>DriveD:64</img>"); var_Item3->PutHeight(68); var_Item3->PutBackgroundExt(long(0),L"none[(76,4,100%-76,100%-8)](client[text=``],bottom[16,back=RGB(204,204,204)](left[0%,back=RGB(0,120,215)]))"); var_Item3->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExtWordWrap,VARIANT_TRUE); var_Item3->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,"<fgcolor=000000>System (D:)<br>112 MB used out of 144 GB"); var_Item3->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"1%"); EXTREECUBELib::IItemPtr var_Item4 = var_Item1->GetItems()->Add("<img>DriveD:64</img>"); var_Item4->PutHeight(68); var_Item4->PutBackgroundExt(long(0),L"none[(76,4,100%-76,100%-8)](client[text=``],bottom[16,back=RGB(204,204,204)](left[0%,back=RGB(0,120,215)]))"); var_Item4->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExtWordWrap,VARIANT_TRUE); var_Item4->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,"<fgcolor=000000>Work (E:)<br>53.0 GB used out of 635 GB"); var_Item4->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"8%"); EXTREECUBELib::IItemPtr var_Item5 = var_Item1->GetItems()->Add("<img>DriveE:64</img>"); var_Item5->PutHeight(68); var_Item5->PutBackgroundExt(long(0),L"none[(76,4,100%-76,100%-8)](client[text=``],bottom[16,back=RGB(204,204,204)](left[0%,back=RGB(0,120,215)]))"); var_Item5->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExtWordWrap,VARIANT_TRUE); var_Item5->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,"<fgcolor=000000>DVD RW Drive (G:)<br>0.0 GB used out of 0.0 GB"); var_Item5->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"0%"); var_Item1->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item6 = var_Items->Add("Save Locations"); var_Item6->PutDivider(0); var_Item6->PutBold(VARIANT_TRUE); var_Item6->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item7 = var_Items->Add("Change where your apps, documents, music, pictures and videos are saved by default."); var_Item7->PutSelectable(VARIANT_FALSE); var_Item7->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item8 = var_Item7->GetItems()->Add("New apps will save to:"); var_Item8->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item9 = var_Item8->GetItems()->Add("Drive C"); var_Item9->PutSelectable(VARIANT_FALSE); var_Item9->PutHeight(24); var_Item9->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item9->PutRadioGroup(long(0),1234); var_Item9->PutState(long(0),1); _variant_t s = var_Item9->GetSplitCell(long(0)); var_Item9->PutValue(s,"Drive D"); var_Item9->PutHasRadioButton(s,VARIANT_TRUE); var_Item9->PutRadioGroup(s,1234); s = var_Item9->GetSplitCell(s); var_Item9->PutValue(s,"Drive E"); var_Item9->PutHasRadioButton(s,VARIANT_TRUE); var_Item9->PutRadioGroup(s,1234); var_Item8->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item10 = var_Item7->GetItems()->Add("New documents will save to:"); var_Item10->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item11 = var_Item10->GetItems()->Add("Drive C"); var_Item11->PutSelectable(VARIANT_FALSE); var_Item11->PutHeight(24); var_Item11->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item11->PutRadioGroup(long(0),1235); s = var_Item11->GetSplitCell(long(0)); var_Item11->PutValue(s,"Drive D"); var_Item11->PutHasRadioButton(s,VARIANT_TRUE); var_Item11->PutRadioGroup(s,1235); var_Item11->PutState(s,1); s = var_Item11->GetSplitCell(s); var_Item11->PutValue(s,"Drive E"); var_Item11->PutHasRadioButton(s,VARIANT_TRUE); var_Item11->PutRadioGroup(s,1235); var_Item10->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item12 = var_Item7->GetItems()->Add("New music will save to:"); var_Item12->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item13 = var_Item12->GetItems()->Add("Drive C"); var_Item13->PutSelectable(VARIANT_FALSE); var_Item13->PutHeight(24); var_Item13->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item13->PutRadioGroup(long(0),1236); s = var_Item13->GetSplitCell(long(0)); var_Item13->PutValue(s,"Drive D"); var_Item13->PutHasRadioButton(s,VARIANT_TRUE); var_Item13->PutRadioGroup(s,1236); var_Item13->PutState(s,1); s = var_Item13->GetSplitCell(s); var_Item13->PutValue(s,"Drive E"); var_Item13->PutHasRadioButton(s,VARIANT_TRUE); var_Item13->PutRadioGroup(s,1236); var_Item12->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item14 = var_Item7->GetItems()->Add("New pictures will save to:"); var_Item14->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item15 = var_Item14->GetItems()->Add("Drive C"); var_Item15->PutSelectable(VARIANT_FALSE); var_Item15->PutHeight(24); var_Item15->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item15->PutRadioGroup(long(0),1237); s = var_Item15->GetSplitCell(long(0)); var_Item15->PutValue(s,"Drive D"); var_Item15->PutHasRadioButton(s,VARIANT_TRUE); var_Item15->PutRadioGroup(s,1237); var_Item15->PutState(s,1); s = var_Item15->GetSplitCell(s); var_Item15->PutValue(s,"Drive E"); var_Item15->PutHasRadioButton(s,VARIANT_TRUE); var_Item15->PutRadioGroup(s,1237); var_Item14->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item16 = var_Item7->GetItems()->Add("New videos will save to:"); var_Item16->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item17 = var_Item16->GetItems()->Add("Drive C"); var_Item17->PutSelectable(VARIANT_FALSE); var_Item17->PutHeight(24); var_Item17->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item17->PutRadioGroup(long(0),1238); s = var_Item17->GetSplitCell(long(0)); var_Item17->PutValue(s,"Drive D"); var_Item17->PutHasRadioButton(s,VARIANT_TRUE); var_Item17->PutRadioGroup(s,1238); var_Item17->PutState(s,1); s = var_Item17->GetSplitCell(s); var_Item17->PutValue(s,"Drive E"); var_Item17->PutHasRadioButton(s,VARIANT_TRUE); var_Item17->PutRadioGroup(s,1238); var_Item16->PutExpanded(VARIANT_TRUE); var_Item7->PutExpanded(VARIANT_TRUE); var_FaceTree->EnsureVisibleItem(0); spTreeCube1->PutEnsureVisibleFaceMargin(0); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exTopFace,vtMissing); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exFitToEnsureFace); spTreeCube1->EndUpdate(); |
91 |
How can I use the BackgroundExt/BackgroundExtValue properties
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetBottomFace(); var_Face->PutRelativeMargins(L"0,32,0,0"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<c><font ;18>Battery Saver"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceBackgroundExt,"bottom[2],bottom[4,back=RGB(0,0,0)]"); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exNoLine); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->PutItemPadding(24); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Overview"); var_Item->PutDivider(0); var_Item->PutBold(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add("Batter level (charging):"); var_Item1->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item2 = var_Item1->GetItems()->Add(""); var_Item2->PutBackgroundExt(long(0),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item2->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"65%"); var_Item2->PutBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item2->GetBackgroundExtValue(long(0),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); var_Item1->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item3 = var_Items->Add("Estimated time to full charge:"); EXTREECUBELib::IItemPtr var_Item4 = var_Item3->GetItems()->Add(double(0.15125)); var_Item4->PutFormatCell(long(0),_bstr_t("((1:=int(0:= (value))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ") + "? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')"); var_Item4->PutHeight(24); var_Item3->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item5 = var_Items->Add("Battery Saver"); var_Item5->PutDivider(0); var_Item5->PutBold(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item6 = var_Items->Add("Extends battery life by limiting background activity and push notifications. "); var_Item6->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item7 = var_Items->Add("Batter saver is currently:"); var_Item7->PutEnabled(VARIANT_FALSE); var_Item7->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item8 = var_Item7->GetItems()->Add(""); var_Item8->PutHeight(24); var_Item8->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item8->PutState(long(0),2); var_Item8->PutFormatCell(long(0),L"state = 1 ? `On` : `Off`"); var_Item8->PutEnabled(VARIANT_FALSE); var_Item7->PutExpanded(VARIANT_TRUE); var_Items->Add("Battery Saver is off while charging. Choose, when battery saver turns on automatically and how it affects your system.")->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item9 = var_Items->Add("<c>Battery Saver Settings"); var_Item9->PutSingleLine(long(0),VARIANT_FALSE); var_Item9->PutHasButton(long(0),VARIANT_TRUE); spTreeCube1->PutEnsureVisibleFaceMargin(0); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exBottomFace,vtMissing); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exFitToEnsureFace); spTreeCube1->EndUpdate(); |
90 |
How can I change the visual appearance for check and radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(44); spTreeCube1->PutCheckBoxHeight(20); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABJACg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIxDFIsBxPFKCQChEZBUjKAwyDBIUzSD") + "IUBhZBIKI7hGa3NBwJAAUTRch0j4iCRQGiYZyHKcxMYgIYCUBkERtMw0GyERQhGb4DoGA4IBhFZQVVLsRBIDh2bbuG4LSrWdJ3OyaN5EbbgZz9P7AMBwLA8EwXBqHYIU" + "GJGbhlbTnR7HMhvDIsPDnFqIZhmOZZXjlfh7T7KNByO6LcI3AiDagtWpNTpjf5dV7YNh2LY9UzXNq3bI1W5aUqyAZ9QQpeB0LILYDbRp/FzyO5NNrHG6dZ7oOh1doOUI" + "tlaP5lgcPA7hEJ47H8SD0l4LwfhOSJ9nOIh9DefBREMKYMDaX59nsVhvlKdBpCGfgIl+L43lGG5lH+YAGlWZw/EYOAVH8ZQXncdBJDwIJGkiGYDlmUh2BKABhEgVJpgW" + "X4BA4BxcAeWB1H8KJiAaSJJgiWZWAmVA0CEWIln8JYikWfZ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BQhlgfhEgwZRGBoJIS" + "y0IgqGoIpDhCJAVCUWQaFMY5fAkYgBD+D5TmyYAlENPBnCsRhFkoYYcmYMAAmkLRHDmGZ9h2Rw4BkeBnFmeZWHSGIYHeQZuHoHonjGboamaVwYmIJwEEYbZNiCaRKAmd" + "x1hyNZChWIQpjcKZYHAKQ6FqHIoh0Vp6hkcBqgoAodikKgmi2LYnmsCohkAXoXkqMojgMIpKh2Gw6lEFAlAEgIA=="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState2,0x1f0f0f0); spTreeCube1->PutRadioButtonWidth(23); spTreeCube1->PutRadioButtonHeight(23); EXTREECUBELib::IAppearancePtr var_Appearance1 = spTreeCube1->GetVisualAppearance(); var_Appearance1->Add(3,_bstr_t("gBFLBCJwBAEHhEJAADhABNoCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKQobh2A42SDAcgSF") + "IADRfFoWmxTdAcYSCGSZZrGOiQADIM40R7UAABPBNKR1BKmHZDQRAApqXIjVDAYIQSSBUlkHScRijDICXSIIQmbajIZoJCiVZ3VaGETnRQlJQuEgOHZwDAsBwPBqBPzi" + "Lp4WzmGqhR5ichYHI8RYVTKXYy3DxZW7OO4PQjQM7hHL8fwlfTuagyGpZOxjP5cdrYHw2J7NUzJeDxbhrTb6Zh7ILVX7TNIwXAdD4PIKmNryORsC4XG5pZ7oOh6Lo3G4" + "rhWZI2nOL4eBON4LkeRJvHWDxvB6G5Lmac56D0OY3hMU5bm6bRoiAeA9DMX5riydJ+D8P4vEeO4xkEcQfCYBZrHKXgzlme4BmCB4eAUZRbAaAZeGsDg4EYCYEmERoaBE" + "OJaiMIY2EIXo2FYFYHmIBp1j8OoQhcYZNDiIgIiYE4Jl2BAlj0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PIPA4EpoHSBoOngNgyDiW5jCGShCF+VouA2EQNhKHBMg+Y5pFYPYV" + "mOQxYiAD4kEgNZRHSTokCWax4A4KA2DaDglGkUhYhoZRph4DYZB6NAllEbwOmgKhEhqJ4JjIa4ek8c48mGAoflcAQJhITxaBYCoHEuGZmHuIooioIgKgWJIUCWXh4hkN" + "hImkM4JloMh6iaJRzhySAkCkVhFhUd4QhMJomD0KtvBCCJMGocouh6KIKiifoKlodAmAAOgrgYVoVD7Y5AlMJhDAqPoLh6D4DkCYosicSoYkkQhcmMapOD6LQKkqHgkC" + "wKhwmILpHFqSJ7jaTZbHYBw1lCFwwnEcAqgOUoUGSa5DxkLQGHsVhWhQRJKkmFYkBuaI1lgdBtlMdZKi6LoKnSZQwggOp+kGJpjiufIDiyGQXCiYZCmyJxeAQYQi0YYI" + "+lieoqmmKwpHIdoskIGQGFWSg8DIBx6GCQ4AAYXhHjlo5fCqNpPjYRJ/kucwMkcMpM9GMwqk2Tx3AGa4AnIVpkm2N5cAgcJvk2XIsjGeYlF53hKk2dAnEGJR7nCdxlgY" + "c4ajmEplk4NYNGcWpKiYRx5k4dYhC0RxggsTpXAGQA3jaBoEmuUIuFuCo4DoNoDHqShwCKXYPCSXYzmOMx6lwOwZoawrgkE0HwBY1xegdE2MMWQhBOhoEUBIQAgCAgA=" + "="); spTreeCube1->PutBackground(EXTREECUBELib::exRadioButtonState0,0x3000000); spTreeCube1->PutBackground(EXTREECUBELib::exRadioButtonState1,0x4000000); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetRightFace(); var_Face->PutRelativeMargins(L"0,32,0,0"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<c><font ;18>Table mode"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceBackgroundExt,"bottom[2],bottom[4,back=RGB(0,0,0)]"); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exNoLine); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->PutItemPadding(24); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Make windows more touch-friendly when using your device as a table"); var_Item->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item1 = var_Item->GetItems()->Add(""); var_Item1->PutHeight(24); var_Item1->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item1->PutState(long(0),0); var_Item1->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item2 = var_Items->Add("When I sign in"); var_Item2->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item3 = var_Item2->GetItems()->Add("Automatically swicth to table mode"); var_Item3->PutHeight(24); var_Item3->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item3->PutRadioGroup(long(0),1234); EXTREECUBELib::IItemPtr var_Item4 = var_Item2->GetItems()->Add("Go to the desktop"); var_Item4->PutHeight(24); var_Item4->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item4->PutRadioGroup(long(0),1234); EXTREECUBELib::IItemPtr var_Item5 = var_Item2->GetItems()->Add("Remember what I used last"); var_Item5->PutHeight(24); var_Item5->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item5->PutRadioGroup(long(0),1234); var_Item5->PutState(long(0),1); var_Item2->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item6 = var_Items->Add("When this device automatically switches table mode on or off"); var_Item6->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item7 = var_Item6->GetItems()->Add("Don't ask me and dont' switch"); var_Item7->PutHeight(24); var_Item7->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item7->PutRadioGroup(long(0),1235); EXTREECUBELib::IItemPtr var_Item8 = var_Item6->GetItems()->Add("Always ask me before switching"); var_Item8->PutHeight(24); var_Item8->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item8->PutRadioGroup(long(0),1235); var_Item8->PutState(long(0),1); EXTREECUBELib::IItemPtr var_Item9 = var_Item6->GetItems()->Add("Don't ask me and always' switch"); var_Item9->PutHeight(24); var_Item9->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item9->PutRadioGroup(long(0),1235); var_Item6->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item10 = var_Items->Add("Hide app icons on the taskbar in table mode"); var_Item10->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item11 = var_Item10->GetItems()->Add(""); var_Item11->PutHeight(24); var_Item11->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item11->PutState(long(0),0); var_Item11->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item10->PutExpanded(VARIANT_TRUE); spTreeCube1->PutEnsureVisibleFaceMargin(0); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exRightFace,vtMissing); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exFitToEnsureFace); spTreeCube1->EndUpdate(); |
89 |
How can I display more group of radio-buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetLeftFace(); var_Face->PutRelativeMargins(L"0,32,0,0"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<c><font ;18>Multitasking"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceBackgroundExt,"bottom[2],bottom[4,back=RGB(0,0,0)]"); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exNoLine); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->PutItemPadding(24); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Snap"); var_Item->PutDivider(0); var_Item->PutBold(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add("Arrange windows automatically by dragging them to the sides of corners of the scree"); var_Item1->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item2 = var_Item1->GetItems()->Add(""); var_Item2->PutHeight(24); var_Item2->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item2->PutState(long(0),1); var_Item2->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item1->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item3 = var_Items->Add("When I snap more than one window, automatically adjust the size of the windows"); var_Item3->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item4 = var_Item3->GetItems()->Add(""); var_Item4->PutHeight(24); var_Item4->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item4->PutState(long(0),1); var_Item4->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item3->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item5 = var_Items->Add("When I snap a window, show what I can snap next to it"); var_Item5->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item6 = var_Item5->GetItems()->Add(""); var_Item6->PutHeight(24); var_Item6->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item6->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item5->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item7 = var_Items->Add("Virtual desktops"); var_Item7->PutDivider(0); var_Item7->PutBold(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item8 = var_Items->Add("On the taskbar, show windows that are open on:"); var_Item8->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item9 = var_Item8->GetItems()->Add("Only the desktop I'm using"); var_Item9->PutHeight(24); var_Item9->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item9->PutRadioGroup(long(0),1234); var_Item9->PutState(long(0),1); EXTREECUBELib::IItemPtr var_Item10 = var_Item8->GetItems()->Add("All desktops"); var_Item10->PutHeight(24); var_Item10->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item10->PutRadioGroup(long(0),1234); var_Item8->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item11 = var_Items->Add("Pressing ALT+TAB, show windows that are open on:"); var_Item11->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item12 = var_Item11->GetItems()->Add("Only the desktop I'm using"); var_Item12->PutHeight(24); var_Item12->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item12->PutRadioGroup(long(0),1235); var_Item12->PutState(long(0),1); EXTREECUBELib::IItemPtr var_Item13 = var_Item11->GetItems()->Add("All desktops"); var_Item13->PutHeight(24); var_Item13->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item13->PutRadioGroup(long(0),1235); var_Item11->PutExpanded(VARIANT_TRUE); spTreeCube1->PutEnsureVisibleFaceMargin(0); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exLeftFace,vtMissing); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exFitToEnsureFace); spTreeCube1->EndUpdate(); |
88 |
How can I use images with the control
// FaceTreeButtonClick event - Notifies that a cell of button's type has been clicked. void OnFaceTreeButtonClickTreeCube1(LPDISPATCH Tree,long Item,long Column) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( L"FaceTreeButtonClick" ); } // FaceTreeStateChanged event - Notifies that a cell changes its state into a face of tree type. void OnFaceTreeStateChangedTreeCube1(LPDISPATCH Tree,long Item,long Column) { EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( L"FaceTreeStateChanged" ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutHTMLPicture(L"P1","c:\\exontrol\\images\\zipdisk.gif"); spTreeCube1->PutHTMLPicture(L"P2","c:\\exontrol\\images\\auction.gif"); spTreeCube1->PutHTMLPicture(L"P3","c:\\exontrol\\images\\colorize.gif"); spTreeCube1->PutHTMLPicture(L"P4","c:\\exontrol\\images\\auction.gif"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutRelativeMargins(L"0,32,0,0"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<c><font ;18>Notifications"); var_Face->PutTitle(EXTREECUBELib::exTitleFaceBackgroundExt,"bottom[2],bottom[4,back=RGB(0,0,0)]"); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exNoLine); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); var_FaceTree->PutItemPadding(24); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Choose your quick actions"); var_Item->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item1 = var_Item->GetItems()->Add(""); var_Item1->PutHeight(48); _bstr_t s = 0; var_Item1->PutValue(s,"<c><img>P1</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P2</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P3</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item1->PutValue(s,"<c><img>P4</img>"); var_Item1->PutCellWidth(s,48); var_Item1->PutHasButton(s,VARIANT_TRUE); s = var_Item1->GetSplitCell(s); var_Item->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item2 = var_Items->Add("Show me tips about Windows"); var_Item2->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item3 = var_Item2->GetItems()->Add(""); var_Item3->PutHeight(24); var_Item3->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item3->PutState(long(0),1); var_Item3->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item2->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item4 = var_Items->Add("Show app notifications "); var_Item4->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item5 = var_Item4->GetItems()->Add(""); var_Item5->PutHeight(24); var_Item5->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item5->PutState(long(0),1); var_Item5->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item4->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item6 = var_Items->Add("Show notifications on lock screen"); var_Item6->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item7 = var_Item6->GetItems()->Add(""); var_Item7->PutHeight(24); var_Item7->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item7->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item6->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item8 = var_Items->Add("Show alarms, reminders and incomming VOIP calls on the lock screen"); var_Item8->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item9 = var_Item8->GetItems()->Add(""); var_Item9->PutHeight(24); var_Item9->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item9->PutState(long(0),1); var_Item9->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item8->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item10 = var_Items->Add("Hide notications while presentation"); var_Item10->PutSingleLine(long(0),VARIANT_FALSE); EXTREECUBELib::IItemPtr var_Item11 = var_Item10->GetItems()->Add(""); var_Item11->PutHeight(24); var_Item11->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item11->PutState(long(0),0); var_Item11->PutFormatCell(long(0),L"state = 0 ? `Off` : `On`"); var_Item10->PutExpanded(VARIANT_TRUE); spTreeCube1->PutEnsureVisibleFaceMargin(0); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exFrontFace,vtMissing); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exFitToEnsureFace); spTreeCube1->EndUpdate(); |
87 |
How do I display a progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"Pos"); var_Column->PutFormatColumn(L"1 pos ``"); var_Column->PutWidth(8); var_FaceTree->GetColumns()->Add(L"Progress")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add(""); var_Item->PutBackgroundExt(long(1),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"25%"); var_Item->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item->GetBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add(""); var_Item1->PutBackgroundExt(long(1),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item1->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"15%"); var_Item1->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item1->GetBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); var_Item1->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exBackColorExt,long(65280)); EXTREECUBELib::IItemPtr var_Item2 = var_Items->Add(""); var_Item2->PutBackgroundExt(long(1),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item2->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"75%"); var_Item2->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item2->GetBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); EXTREECUBELib::IItemPtr var_Item3 = var_Items->Add(""); var_Item3->PutBackgroundExt(long(1),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item3->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"85%"); var_Item3->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item3->GetBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); EXTREECUBELib::IItemPtr var_Item4 = var_Items->Add(""); var_Item4->PutBackgroundExt(long(1),L"none[(2,2,100%-4,100%-4)](top[24,text=`10%`],bottom[6,back=RGB(204,204,204)](left[10%,back=RGB(0,120,215)]))"); var_Item4->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt,"5%"); var_Item4->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt2,EXTREECUBELib::exTextExt,var_Item4->GetBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exClientExt)); var_Item4->PutBackgroundExtValue(long(1),EXTREECUBELib::exIndexExt4,EXTREECUBELib::exBackColorExt,long(255)); |
86 |
I have a column of check box type, the question if I can automatically display on/off when user changes the check's state
|
85 |
How do I print the control
|
84 |
How can I get the caption from the point
// MouseMove event - Occurs when the user moves the mouse. void OnMouseMoveTreeCube1(short Button,short Shift,long X,long Y) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( spTreeCube1->GetFrontFace()->GetFaceTree()->GetCaptionFromPoint(-1,-1) ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L"C:\\Program Files\\Exontrol\\ExTreeCube\\Sample\\Texture\\Chapel"); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(16); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutForeColor(RGB(255,255,255)); var_FaceTree->GetItems()->PutToString(_bstr_t("<sha \\;\\;0><font \\;18>Place <b>A,<sha \\;\\;0><font \\;18>Place <b>B,<sha \\;\\;0><font \\;18>Place <b>C,<sha \\;\\;0><font ") + "\\;18>Place <b>D,<sha \\;\\;0><font \\;18>Place <b>E"); |
83 |
How can I get the value from the point
// MouseMove event - Occurs when the user moves the mouse. void OnMouseMoveTreeCube1(short Button,short Shift,long X,long Y) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( _bstr_t(spTreeCube1->GetFrontFace()->GetFaceTree()->GetValueFromPoint(-1,-1)) ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L"C:\\Program Files\\Exontrol\\ExTreeCube\\Sample\\Texture\\Chapel"); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(16); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutForeColor(RGB(255,255,255)); var_FaceTree->GetItems()->PutToString(_bstr_t("<sha \\;\\;0><font \\;18>Place <b>A,<sha \\;\\;0><font \\;18>Place <b>B,<sha \\;\\;0><font \\;18>Place <b>C,<sha \\;\\;0><font ") + "\\;18>Place <b>D,<sha \\;\\;0><font \\;18>Place <b>E"); |
82 |
How can I get the column from the point
|
81 |
How can I get the item from the point
|
80 |
How can I get the value from the point (calendar's date)
|
79 |
How can I get the date from the point (calendar's date)
|
78 |
How can I get the face from the point
|
77 |
Does your control support partial-check feature
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(32); spTreeCube1->PutCheckBoxHeight(29); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABQACg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIwjNIsBxPFIYRoAmCYZRnAYZIpjOZ5B") + "iKAwgQiHMbwTLjfyMACjH7nnJEEigNIxToOU4jFDGIAWArAZBEbTENBtBIUIRoCA6CgOCAYRa4AJTdL1Er2ex2G7WMpWURkHTUJgGN4BVbdeoxPi/b6wDA8CwXAaHXpf" + "baKYQ7brYaikchyLI8Tq9bDNIgADLoYADJIoCRqEyudKQcrXJakaZqOoaXo+W5VVzWLpDVo0XBdTiLAAzKDgA6bRqBSjgMjuIpcbABazPJTwPJcXxnGyMehyWJ47KoKZ" + "OkoNRTiIRoCDgCZXm+eA6m0dQQj8MRInCUY7CIVoCEAFZonefApC2BQglWHIKAAPx/D4FoyH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"GegNH8JZImGE4BEeWpygiEJhiGDIGjeXATgaYgXG4SweGQGRugKOpqGSThTAQdA+hcCQuhsP5HjuVoPBkJQqhaZAXEsO52hkNYNGEcwCjmJAaCaew5HCBhOA8PpvJQDg" + "/iyMZmiMGYGv4dw4jGB5MlKRpwCEcwEhAKhcE4OhRisdwEhmSZHGyJwjGQTRMjcHZHmKXBUGuJxHniHwlkqXpzG8Oo+moWRKmgGRKC0BZzk2c/FmiUZkFGBohBuJQhH8" + "TgxjUB4ElUJwCDMRIRHuNBYhyd5WmuTJKECQYuEuCJhHWTYShQNhtm0M5zFmSpvFGbgvkgKI9DgXw8jcRwwm0GoCgEAxhoAWB0MwgQWi7EmOcMIpgnDwC4CcA4wh4gcB" + "+BUYYcROBPA0GkCYhw4iuCmDgEg1wWAwDmBQJwlw9ifD4OsTAcQLhDBmHQbg1gzBvCWNMegnQnhNGqHUDoXwujWHqAYLICAAAbCKDAOQ4BMD9GaFUUo2QYjzFcLcTovB" + "IhODuBoYoJxEBSHwP4JIrRyB5D8FcTI5x8jeEeJsco7xSC5HEG8S4DgEjnHaNQWIfRJheDaH8BgTgoB8EqFYMoFxPg/CeMUeovAMDBGKJkBgXxGgLHsH4R4QQpj7EyP8" + "ZI1hEChBQAggI"); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState2,0x3000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exThinLine); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Partial Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_Column->PutFormatColumn(L"`Check <b>` + 1 rpos ``"); var_Column->PutPartialCheck(VARIANT_TRUE); var_FaceTree->GetItems()->PutCount(spTreeCube1->GetFrontFace()->GetFaceTree()->GetVisibleItemsCount()); EXTREECUBELib::IItemPtr var_Item = var_FaceTree->GetItemByIndex(1); var_Item->GetItems()->PutCount(3); var_Item->PutExpanded(VARIANT_TRUE); var_Item->PutState(long(0),1); EXTREECUBELib::IItemPtr var_Item1 = var_FaceTree->GetItemByIndex(2); var_Item1->GetItems()->PutCount(3); var_Item1->PutExpanded(VARIANT_TRUE); var_Item1->GetItems()->GetItem(long(1))->PutState(long(0),1); spTreeCube1->EndUpdate(); |
76 |
I am using the Items.ToString, just wondering if I can use it for multiple columns
|
75 |
How can I show the item on multiple-lines
|
74 |
How can I change the visual appearance for the control's radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutRadioButtonWidth(23); spTreeCube1->PutRadioButtonHeight(23); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABNoCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKQobh2A42SDAcgSF") + "IADRfFoWmxTdAcYSCGSZZrGOiQADIM40R7UAABPBNKR1BKmHZDQRAApqXIjVDAYIQSSBUlkHScRijDICXSIIQmbajIZoJCiVZ3VaGETnRQlJQuEgOHZwDAsBwPBqBPzi" + "Lp4WzmGqhR5ichYHI8RYVTKXYy3DxZ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KxmW5Gbh5NhfHY8dxnDKcZ5jGSudrjEZ9VpmG74JzeEbjRj8chxT4PDxnBK/YDSWgdLo8VzXBp" + "cG2MY4maXxzFKQRxHgOQeC8H4TkuZhzHoNR9kaXpNnONZsGGMo9B4A5bmuFZ7n4Pw/i+XpFmSVB/mAB41hsQJfBYOJXgGXAHm4CoCmCtYAHqXRWBGWB/F2Z5UnaAxZFO" + "aJ2DuTpzHCOQ5gwcg8veDBjlCaA0mGBg6BYapcEONZiHYHADg4MoKE+U4QkEIINAISAig4Y44moPIPA4EpoHSBoOngNgyDiW5jCGShCF+VouA2EQNhKHBMg+Y5pFYPYV" + "mOQxYiAD4kEgNZRHSTokCWax4A4KA2DaDglGkUhYhoZRph4DYZB6NAllEbwOmgKhEhqJ4JjIa4ek8c48mGAoflcAQJhITxaBYCoHEuGZmHuIooioIgKgWJIUCWXh4hkN" + "hImkM4JloMh6iaJRzhySAkCkVhFhUd4QhMJomD0KtvBCCJMGocouh6KIKiifoKlodAmAAOgrgYVoVD7Y5AlMJhDAqPoLh6D4DkCYosicSoYkkQhcmMapOD6LQKkqHgkC" + "wKhwmILpHFqSJ7jaTZbHYBw1lCFwwnEcAqgOUoUGSa5DxkLQGHsVhWhQRJKkmFYkBuaI1lgdBtlMdZKi6LoKnSZQwggOp+kGJpjiufIDiyGQXCiYZCmyJxeAQYQi0YYI" + "+lieoqmmKwpHIdoskIGQGFWSg8DIBx6GCQ4AAYXhHjlo5fCqNpPjYRJ/kucwMkcMpM9GMwqk2Tx3AGa4AnIVpkm2N5cAgcJvk2XIsjGeYlF53hKk2dAnEGJR7nCdxlgY" + "c4ajmEplk4NYNGcWpKiYRx5k4dYhC0RxggsTpXAGQA3jaBoEmuUIuFuCo4DoNoDHqShwCKXYPCSXYzmOMx6lwOwZoawrgkE0HwBY1xegdE2MMWQhBOhoEUBIQAgCAgA=" + "="); spTreeCube1->PutBackground(EXTREECUBELib::exRadioButtonState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exRadioButtonState1,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(12); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Radio"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasRadioButton,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Radio 1,Radio 2,Radio 3,Radio 4"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
73 |
How can I change the visual appearance for the control's check boxes (6)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(16); spTreeCube1->PutCheckBoxHeight(16); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABKMGACAADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKQobh2A42SDAcgSF") + "IACxfFoWRrnaA5QoGM4EDTRYADCKsaQ/J0LcI1FLUEyUf6sAArB74XiCIAIQiUBomGahajkMoYZAAaDCCI2a4aDZCIoVHalKgxC5oKSqCJqbptMZ/HrgJQYGRuC4NQ7C" + "cDKDATbr9MZ9ZBCNZoPimEYtS7MMLyRB8QpyAytaBhRaaGwmSr3U7Oc50d69FYTIxcYZoCq1XBOGYMZLcNR3La9YYnBqMbRAeJYNped6NSDVcKxLgaa4fTrOZZzHL9Hp" + "viMWYBnWOr+kwJ4zlqY53CAZQ/B4GZzmab5qHyT4cDeDInkwPp8DCTI/h+Iw7nMZZhj4B5eGKL57gYGAgAadZoG8soBgYfxKjcSRYCCYJGGYDoDmCQgNh0ZIZAaSB2gW" + "YJ2F4FwdhsJpuBQfRiAWdQJDqUQUCUASAgA=="); var_Appearance->Add(2,_bstr_t("gBFLBCJwBAEHhEJAADhABV0GACAADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKQobh2A42SDAcgSF") + "IACxfFoWRrnaA5QoGM4EDTRYADCKsaQ/J0LcI1FLUEyUf6sAArB74XiCIAIQiUBomGahajkMoYZAAaDCCI2a4aDZCIoVHalKgxC5oKSqCJqbptMZ/HrgJQYGRuC4NQ7C" + "cDKDATbr9MZ9ZBCNZoPimEYtS7MMLQXK8QpyAytaBhRaaGwmSr3U7Oc50d69FYQXqvYZoCq1XBOGYMZLcNR3La9YYnBqMbRAeJYNpedy2YbkFC5LStHwbCrBVpxWotDx" + "QjWVgrHYGI9iybhbiGUo+jafA6DKZxjkoVgxHoHR+iqXx2jMA52l8XJ/CMJ5TkaCp7nmOwHk+XovmECR8BWMYyAIHAgEOBgGFaSo4CWeQVgoSA0lOA5fEGEZQBSYRGBi" + "eYFlWMhiBoPZhkabI3geYIzDYIoHA8dxAH2CZYGMLgqHeW4zAYLgWCMB4gGIeoOjcQgJCqWBhgIOhvGKRhAn2D5blcWBaB+JBGi2EhWAgOQlhmEpYgiHB9DwJQCloUgW" + "mUQoOFaEZXlaSB2haZJGF4WwdhsJRslmGJGDmFhYg8ZoHBiZYalCE4tBEQhQBAgI="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
72 |
How can I change the visual appearance for the control's check boxes (5)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(24); spTreeCube1->PutCheckBoxHeight(24); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABO8GACAADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlSTJcQjKKEUQTFiXIyAKQobh2A42SDAcgSF") + "IADRfFoWmxTdAcYSCGSZZrGOiQADIM40R7UAABPBNKR1DZ+KxAB76cheIIgAhCJQGSYZaDqOQyRhkBTqEIITZsRoNUIiRStayuDCLTwoSooXayfjHYAwOBYHgmC4NQ7E" + "MRxLAmOw1ZKPQjgDDvDilM4tS7MMxzLK8cx3FjqaAyWhQTgePZNU7UNLwPRMCb3LqvbBsOxbHqma5tWjVYDwPZ9cz3Pq9biAG57fwnC59YLheK5Li9Q4jLbMdByXLMDx" + "HiuRJpnWOw7k6RxrjuM5pj+PA+C8H4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hmmNoAmoQhOjQRQJEAQCAg=="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
71 |
How can I change the visual appearance for the control's check boxes (4)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(32); spTreeCube1->PutCheckBoxHeight(32); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABfICg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIwjNIsBxPFKVQChEYxSjKA40SJNUgyj") + "6CCY+QLIE5PfQgAL9I6eJABCCSQKkYx0HScRijDIAbAZAYhCZqaKhWgkKI/WBQIABRDVLx5ESiLRtKy7Mq2bpvXBcNxXHalaztO68LxvKyqHb5fJ/PpgL4YHgmC4NQ7E" + "MRwF6rfbyfZ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GMAOIvxRD2GKNcMA8gjAPDCPwBogRPAxA8PgRwZRICYDED8RAXQEghEAN8DIgwIBdB4JYWwMgtiQ" + "HoFQKAiRFguFKGwGQhglDsEOVwEQQRkCKBwOIHgSREDRBYHEXQcQdD7GIGARQHRxipBrMobgewDCUCADsEYWAzgMHKHQDQxxsDzA6EMfAeQHB4GQDkUYPA0iECiKoGgR" + "hcDdA2GMQA8AOCjDSPgHI4QnApAKBICwHg1A+BcAwcYsgbjGGQNkCIgRsA6EcBEWANADjsB0B8YYzQQDIGSBcEYZBCCPEkFIHQSgkgZAwG4IwBAbAYGGAgL4Ch4g8BOC" + "QuFFBaDOASPcAALgChUDyB4cYtgiiOEyCcEopRCCvEsFIKomQEjnB4L8YgQBfgWEEMgPADhojaDsEcaIlBFiDBqEcRgQQ4ArEOPAfYQhUjmCsMsHIYwShmDmAoDYsRqj" + "xAUAkHwPwDjYH2DsEopA9AaECIoFwhRkjmAcHIUAUBHABFsDMJY+B0goEGLIOozhoj/B2CcPg7hPATGdduAALgiiEBsBkd4Fg2iUCEPsG4RxKDDEoMIGARhDiAHaBcZ4" + "rbeBUBQPkYo+gFAdE+AwKAEQhjGEUE8aQ1QYBQFCJwTgww1BDEaAEVQMwjBgGoBkSghhIjSBUEkJI6QagpFIHQPgZgojaBsDgIw8BvBgHYAG3QeAUhFFSMQfonwxg2D6" + "E8ZQcwnjLG6DYCgjoAitB0IEKIyxigUA8DQZoq5tgiBICoIoUQXDjDgG4BouhFZdBQJEDYQw0BsEsMEawRAkBJACQEA=="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState2,0x3000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
70 |
How can I change the visual appearance for the control's check boxes (3)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(32); spTreeCube1->PutCheckBoxHeight(29); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABQACg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIwjNIsBxPFIYRoAmCYZRnAYZIpjOZ5B") + "iKAwgQiHMbwTLjfyMACjH7nnJEEigNIxToOU4jFDGIAWArAZBEbTENBtBIUIRoCA6CgOCAYRa4AJTdL1Er2ex2G7WMpWURkHTUJgGN4BVbdeoxPi/b6wDA8CwXAaHXpf" + "baKYQ7brYaikchyLI8Tq9bDNIgADLoYADJIoCRqEyudKQcrXJakaZqOoaXo+W5VVzWLpDVo0XBdTiLAAzKDgA6bRqBSjgMjuIpcbABazPJTwPJcXxnGyMehyWJ47KoKZ" + "OkoNRTiIRoCDgCZXm+eA6m0dQQj8MRInCUY7CIVoCEAFZonefApC2BQglWHIKAAPx/D4FoyHgTZsAIXwYAWYR8kMR5YAAP4PmOdZ7H8X54AoDhzi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weGQGRugKOpqGSThTAQdA+hcCQuhsP5HjuVoPBkJQqhaZAXEsO52hkNYNGEcwCjmJAaCaew5HCBhOA8PpvJQDg" + "/iyMZmiMGYGv4dw4jGB5MlKRpwCEcwEhAKhcE4OhRisdwEhmSZHGyJwjGQTRMjcHZHmKXBUGuJxHniHwlkqXpzG8Oo+moWRKmgGRKC0BZzk2c/FmiUZkFGBohBuJQhH8" + "TgxjUB4ElUJwCDMRIRHuNBYhyd5WmuTJKECQYuEuCJhHWTYShQNhtm0M5zFmSpvFGbgvkgKI9DgXw8jcRwwm0GoCgEAxhoAWB0MwgQWi7EmOcMIpgnDwC4CcA4wh4gcB" + "+BUYYcROBPA0GkCYhw4iuCmDgEg1wWAwDmBQJwlw9ifD4OsTAcQLhDBmHQbg1gzBvCWNMegnQnhNGqHUDoXwujWHqAYLICAAAbCKDAOQ4BMD9GaFUUo2QYjzFcLcTovB" + "IhODuBoYoJxEBSHwP4JIrRyB5D8FcTI5x8jeEeJsco7xSC5HEG8S4DgEjnHaNQWIfRJheDaH8BgTgoB8EqFYMoFxPg/CeMUeovAMDBGKJkBgXxGgLHsH4R4QQpj7EyP8" + "ZI1hEChBQAggI"); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState2,0x3000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
69 |
How can I change the visual appearance for the control's check boxes (2)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(44); spTreeCube1->PutCheckBoxHeight(20); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABJACg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIxDFIsBxPFKCQChEZBUjKAwyDBIUzSD") + "IUBhZBIKI7hGa3NBwJAAUTRch0j4iCRQGiYZyHKcxMYgIYCUBkERtMw0GyERQhGb4DoGA4IBhFZQVVLsRBIDh2bbuG4LSrWdJ3OyaN5EbbgZz9P7AMBwLA8EwXBqHYIU" + "GJGbhlbTnR7HMhvDIsPDnFqIZhmOZZXjlfh7T7KNByO6LcI3AiDagtWpNTpjf5dV7YNh2LY9UzXNq3bI1W5aUqyAZ9QQpeB0LILYDbRp/FzyO5NNrHG6dZ7oOh1doOUI" + "tlaP5lgcPA7hEJ47H8SD0l4LwfhOSJ9nOIh9DefBREMKYMDaX59nsVhvlKdBpCGfgIl+L43lGG5lH+YAGlWZw/EYOAVH8ZQXncdBJDwIJGkiGYDlmUh2BKABhEgVJpgW" + "X4BA4BxcAeWB1H8KJiAaSJJgiWZWAmVA0CEWIln8JYikWfZpCIXARE0fw3GMRpJnaCRYBGWg6gqI5HgoJxfkYCQFlkX5PhkFYyBAJIImGABpGOWQ1k8OxlAWfZ6BGJA1" + "noRQ+GQeQmEoX4kkkOheG2JQD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HSGIYHeQZuHoHonjGboamaVwYmIJwEEYbZNiCaRKAmd" + "x1hyNZChWIQpjcKZYHAKQ6FqHIoh0Vp6hkcBqgoAodikKgmi2LYnmsCohkAXoXkqMojgMIpKh2Gw6lEFAlAEgIA=="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(16); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
68 |
How can I change the visual appearance for the control's check boxes (1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutCheckBoxWidth(37); spTreeCube1->PutCheckBoxHeight(15); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABOkGACAADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziaQAGgkNQwCSLIwjQAsTRQFocAChEYxXjKBA1SJNUgyj") + "6WCQPR7CM5OaDgSABIijJDoGAwIgkUBpGK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siGSJlkobIYnAAgYAWDJyEQPgyAgAIFh6CxBjOMJUCyrQckcJxjniahSHMF54gGRoP" + "l4EZsBgOpNAKMhNDGSZnjYOIUmGRo0mwdAAAgFg1hYGIpGiagzgqE5onMOoelgahkgAIZll2U4bCMaZ2AYagnHgbgDFuXQ2GwM4fCiCYtmMapoBgdJaDAaBni2PYiifS" + "R8HQDpqD6AYmEwFxBlIboWnoGoJiUahGHmNonCYZwmGaJwNiKKBriQWRaEmFooA6UxQhsFAdAqDo6iViJYFCLQdCOLQREIUAQICA="); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState0,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exCheckBoxState1,0x2000000); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(12); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Check"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellHasCheckBox,VARIANT_TRUE); var_FaceTree->GetItems()->PutToString(L"Check A,Check B,Check C,Check D"); var_FaceTree->GetItemByIndex(1)->PutState(long(0),1); spTreeCube1->EndUpdate(); |
67 |
How can I display an item to fit the control's width
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutHasLines(EXTREECUBELib::exThinLine); var_FaceTree->PutItemPadding(10); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->GetColumns()->Add(L"<c>Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"Pos"); var_Column->PutPosition(0); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutFormatColumn(L"1 rpos ``"); var_Column->PutWidth(24); EXTREECUBELib::IColumnPtr var_Column1 = var_FaceTree->GetColumns()->Add(L"Pos"); var_Column1->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column1->PutFormatColumn(L"1 rpos ``"); var_Column1->PutWidth(24); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("<r>Root 1"); var_Item->PutBold(VARIANT_TRUE); var_Item->PutDivider(0); var_Item->PutBackColor(RGB(240,240,240)); var_Item->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemsPtr var_Items1 = var_Item->GetItems(); var_Items1->Add("Child 1"); var_Items1->Add("Child 2"); var_Items1->Add("Child 3"); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add("<r>Root 2"); var_Item1->PutBold(VARIANT_TRUE); var_Item1->PutDivider(0); var_Item1->PutBackColor(RGB(240,240,240)); var_Item1->PutSelectable(VARIANT_FALSE); EXTREECUBELib::IItemsPtr var_Items2 = var_Item1->GetItems(); var_Items2->Add("Child 1"); var_Items2->Add("Child 2"); var_Items2->Add("Child 3"); var_Items->ExpandAll(); spTreeCube1->EndUpdate(); |
66 |
Is it possible to prevent showing the selecting item ( hide )
|
65 |
Is it possible to provide a few radio-buttons only, not for entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(10); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Def"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellPaddingLeft,long(4)); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); var_Items->Add("Item 1"); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Radio 1"); var_Item->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item->PutRadioGroup(long(0),1234); EXTREECUBELib::IItemPtr var_Item1 = var_Items->Add("Radio 2"); var_Item1->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item1->PutRadioGroup(long(0),1234); var_Item1->PutState(long(0),VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item2 = var_Items->Add("Radio 3"); var_Item2->PutHasRadioButton(long(0),VARIANT_TRUE); var_Item2->PutRadioGroup(long(0),1234); var_Items->Add("Item 1"); spTreeCube1->EndUpdate(); |
64 |
Is it possible to provide a few check box only, not for entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutShowSelection(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->PutItemPadding(10); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"<c><b>Def"); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutDef(EXTREECUBELib::exCellPaddingLeft,long(4)); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Check 1")->PutHasCheckBox(long(0),VARIANT_TRUE); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Check 2"); var_Item->PutHasCheckBox(long(0),VARIANT_TRUE); var_Item->PutState(long(0),1); var_Items->Add("Item 1"); spTreeCube1->EndUpdate(); |
63 |
How can I show radio-buttons for the entire column
|
62 |
How can I show check-boxes for the entire column
|
61 |
How do I select programmatically a value in the calendar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L"C:\\Program Files\\Exontrol\\ExTreeCube\\Sample\\Texture\\Chapel"); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeaderForeColor,RGB(1,0,0)); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = spTreeCube1->GetFrontFace()->CreateCalendar(); var_FaceCalendar->PutForeColor(RGB(255,255,255)); var_FaceCalendar->PutNonworkingDays(0); var_FaceCalendar->PutValue(COleDateTime(2016,12,31,0,00,00).operator DATE()); |
60 |
How do I select programmatically a caption in the list
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L"C:\\Program Files\\Exontrol\\ExTreeCube\\Sample\\Texture\\JapanGarden"); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(40); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutForeColor(RGB(255,255,255)); var_FaceTree->GetItems()->PutToString(L",<sha \\;\\;0><font \\;18>Garden <b>A,<sha \\;\\;0><font \\;18>Garden <b>B,<sha \\;\\;0><font \\;18>Garden <b>C,"); var_FaceTree->PutCaption(L"Garden B"); |
59 |
How do I select programmatically a value in the list
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutTexturePicturePath(L"C:\\Program Files\\Exontrol\\ExTreeCube\\Sample\\Texture\\JapanGarden"); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(40); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutForeColor(RGB(255,255,255)); var_FaceTree->GetItems()->PutToString(L",<sha \\;\\;0><font \\;18>Garden <b>A,<sha \\;\\;0><font \\;18>Garden <b>B,<sha \\;\\;0><font \\;18>Garden <b>C,"); var_FaceTree->PutValue("<sha ;;0><font ;18>Garden <b>B"); |
58 |
How can I show solid lines instead
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutHasButtons(EXTREECUBELib::exArrow); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(10); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutHasLines(EXTREECUBELib::exSolidLine); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exGroupLines); var_FaceTree->PutGridLineStyle(EXTREECUBELib::exGridLinesSolid); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exAllLines); var_FaceTree->GetColumns()->Add(L"")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L""); var_Column->PutAlignment(EXTREECUBELib::RightAlignment); var_Column->PutFormatColumn(L"lower(%0) right 1"); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemPtr var_Item = var_Items->Add("Root <b>1"); EXTREECUBELib::IItemsPtr var_Items1 = var_Item->GetItems(); var_Items1->Add("Child 1"); var_Items1->Add("Child 2"); var_Items1->Add("Child 3"); var_Item->PutExpanded(VARIANT_TRUE); EXTREECUBELib::IItemsPtr var_Items2 = var_Items->Add("Root <b>2")->GetItems(); var_Items2->Add("Child 1"); var_Items2->Add("Child 2"); var_Items2->Add("Child 3"); spTreeCube1->EndUpdate(); |
57 |
How can I select the entire item rather than the column only
|
56 |
How can I change the visual appearance of the control's header bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutBackColorHeader(0x1000000); var_FaceTree->GetColumns()->PutCount(5); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exFrontFace,vtMissing); spTreeCube1->EndUpdate(); |
55 |
How can I add multiple-columns, so the horizontal scroll bar is displayed
|
54 |
How can I add multiple-columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(10); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exGroupLines); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->GetColumns()->Add(L"Default")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IColumnPtr var_Column = var_FaceTree->GetColumns()->Add(L"Pos"); var_Column->PutPosition(0); var_Column->PutAlignment(EXTREECUBELib::LeftAlignment); var_Column->PutFormatColumn(L"1 rpos ``"); var_Column->PutWidth(24); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemsPtr var_Items1 = var_Items->Add("Root 1")->GetItems(); var_Items1->Add("Child 1"); var_Items1->Add("Child 2"); var_Items1->Add("Child 3"); EXTREECUBELib::IItemsPtr var_Items2 = var_Items->Add("Root 2")->GetItems(); var_Items2->Add("Child 1"); var_Items2->Add("Child 2"); var_Items2->Add("Child 3"); var_Items->ExpandAll(); spTreeCube1->EndUpdate(); |
53 |
How do I add a hierarchy
// FaceTreeExpandItem event - Notifies that an item has been expanded/collapsed into a face of tree type. void OnFaceTreeExpandItemTreeCube1(LPDISPATCH Tree,long Item) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); OutputDebugStringW( L"Item" ); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutExpandOnDblClick(VARIANT_TRUE); var_FaceTree->PutItemPadding(10); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutLinesAtRoot(EXTREECUBELib::exGroupLines); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exRowLines); var_FaceTree->GetColumns()->Add(L"")->PutAlignment(EXTREECUBELib::LeftAlignment); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); EXTREECUBELib::IItemsPtr var_Items1 = var_Items->Add("Root 1")->GetItems(); var_Items1->Add("Child 1"); var_Items1->Add("Child 2"); var_Items1->Add("Child 3"); EXTREECUBELib::IItemsPtr var_Items2 = var_Items->Add("Root 2")->GetItems(); var_Items2->Add("Child 1"); var_Items2->Add("Child 2"); var_Items2->Add("Child 3"); var_Items->ExpandAll(); spTreeCube1->EndUpdate(); |
52 |
How can I display a calendar control
|
51 |
How can I change the picture/texture on the faces
|
50 |
How can I get ride of the default texture
|
49 |
How do I get ride of grid lines, and the top border it shows on the tree face
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->PutItemPadding(20); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->PutDrawGridLines(EXTREECUBELib::exNoLines); EXTREECUBELib::IItemsPtr var_Items = var_FaceTree->GetItems(); var_Items->Add("Item A"); var_Items->Add("Item B"); var_Items->Add("Item C"); |
48 |
How can I add a list of items (method 2)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IItemsPtr var_Items = spTreeCube1->GetFrontFace()->CreateTree()->GetItems(); var_Items->Add("Item A"); var_Items->Add("Item B"); var_Items->Add("Item C"); |
47 |
How can I add a list of items (method 1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFaceTreePtr var_FaceTree = spTreeCube1->GetFrontFace()->CreateTree(); var_FaceTree->GetItems()->PutToString(L"Item A,Item B,Item C"); |
46 |
Fisheye Calendar View - Year
// FaceTreeValueChanged event - Notifies that the user selects a new item/column/value into a face of the tree type. void OnFaceTreeValueChangedTreeCube1(LPDISPATCH Tree) { // f.FaceCalendar.Year = Tree.Caption /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr f = spTreeCube1->GetFace(spTreeCube1->GetVisibleFace()); f = spTreeCube1->GetFrontFace(); f->PutDate(f->GetFaceCalendar()->GetDate()); f->Move(EXTREECUBELib::exRotateLeft,vtMissing); f->PutDate(f->GetFaceCalendar()->GetDate()); f->Move(EXTREECUBELib::exRotateRight,vtMissing); f->PutDate(f->GetFaceCalendar()->GetDate()); f->Move(EXTREECUBELib::exRotateRight,vtMissing); f->Move(EXTREECUBELib::exRotateRight,vtMissing); } // Move event - Occurs once a new face became visible, by moving/rotating from a face to another, into the giving direction. void OnMoveTreeCube1(long RotateDir,long FromFace,long ToFace) { EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr f = spTreeCube1->GetFace(ToFace); f->GetFaceCalendar()->PutSelDate(spTreeCube1->GetFace(FromFace)->GetFaceCalendar()->GetSelDate()); spTreeCube1->GetFace(FromFace)->GetFaceCalendar()->UnselectDate(); f->PutDate(f->GetFaceCalendar()->GetDate()); f->Move(EXTREECUBELib::exRotateLeft,vtMissing); f->PutDate(f->GetFaceCalendar()->GetDate()); f->Move(EXTREECUBELib::exRotateRight,vtMissing); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutEnsureVisibleFaceMargin(32); spTreeCube1->PutEnsureVisibleFaceOnDblClick(VARIANT_FALSE); spTreeCube1->PutEnsureVisibleFaces(L"0,2,1,3,4"); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = spTreeCube1->GetFrontFace()->CreateCalendar(); var_FaceCalendar->PutDate(COleDateTime(2016,1,1,0,00,00).operator DATE()); var_FaceCalendar->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar->PutMaxMonthX(1); var_FaceCalendar->PutMaxMonthY(1); var_FaceCalendar->PutShowTodayButton(VARIANT_FALSE); var_FaceCalendar->PutFirstWeekDay(EXTREECUBELib::exMonday); var_FaceCalendar->PutSelBackColor(0x2000000); var_FaceCalendar->PutSelForeColor(RGB(0,0,0)); var_FaceCalendar->PutShowNonMonthDays(VARIANT_TRUE); Date d = spTreeCube1->GetFrontFace()->GetFaceCalendar()->GetDate(); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar1 = spTreeCube1->GetLeftFace()->CreateCalendar(); var_FaceCalendar1->PutDate(d); var_FaceCalendar1->Move(EXTREECUBELib::exRotateLeft,vtMissing); var_FaceCalendar1->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar1->PutMaxMonthX(1); var_FaceCalendar1->PutMaxMonthY(1); var_FaceCalendar1->PutShowTodayButton(VARIANT_FALSE); var_FaceCalendar1->PutFirstWeekDay(EXTREECUBELib::exMonday); var_FaceCalendar1->PutSelBackColor(0x2000000); var_FaceCalendar1->PutSelForeColor(RGB(0,0,0)); var_FaceCalendar1->PutShowNonMonthDays(VARIANT_TRUE); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar2 = spTreeCube1->GetRightFace()->CreateCalendar(); var_FaceCalendar2->PutDate(d); var_FaceCalendar2->Move(EXTREECUBELib::exRotateRight,vtMissing); var_FaceCalendar2->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar2->PutMaxMonthX(1); var_FaceCalendar2->PutMaxMonthY(1); var_FaceCalendar2->PutShowTodayButton(VARIANT_FALSE); var_FaceCalendar2->PutFirstWeekDay(EXTREECUBELib::exMonday); var_FaceCalendar2->PutSelBackColor(0x2000000); var_FaceCalendar2->PutSelForeColor(RGB(0,0,0)); var_FaceCalendar2->PutShowNonMonthDays(VARIANT_TRUE); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar3 = spTreeCube1->GetBottomFace()->CreateCalendar(); var_FaceCalendar3->PutDate(d); var_FaceCalendar3->Move(EXTREECUBELib::exRotateRight,vtMissing); var_FaceCalendar3->Move(EXTREECUBELib::exRotateRight,vtMissing); var_FaceCalendar3->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar3->PutMaxMonthX(1); var_FaceCalendar3->PutMaxMonthY(1); var_FaceCalendar3->PutShowTodayButton(VARIANT_FALSE); var_FaceCalendar3->PutFirstWeekDay(EXTREECUBELib::exMonday); var_FaceCalendar3->PutSelBackColor(0x2000000); var_FaceCalendar3->PutSelForeColor(RGB(0,0,0)); var_FaceCalendar3->PutShowNonMonthDays(VARIANT_TRUE); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetTopFace(); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->CreateTree(); var_FaceTree->PutItemPadding(20); var_FaceTree->PutSelBackColor(0x2000000); var_FaceTree->PutSelForeColor(RGB(0,0,0)); var_FaceTree->GetColumns()->PutCount(5); var_FaceTree->PutHeaderVisible(VARIANT_FALSE); var_FaceTree->GetItems()->PutCount(spTreeCube1->GetTopFace()->GetFaceTree()->GetVisibleItemsCount()); var_FaceTree->GetColumns()->GetItem(long(0))->PutFormatColumn(L"(0:=(1989 + 5 * (0 index ``))) = 2016 ? `<b><sha ;;0>` + =:0 + `</b>` : =:0"); var_FaceTree->GetColumns()->GetItem(long(1))->PutFormatColumn(L"(0:=(1990 + 5 * (0 index ``))) = 2016 ? `<b><sha ;;0>` + =:0 + `</b>` : =:0"); var_FaceTree->GetColumns()->GetItem(long(2))->PutFormatColumn(L"(0:=(1991 + 5 * (0 index ``))) = 2016 ? `<b><sha ;;0>` + =:0 + `</b>` : =:0"); var_FaceTree->GetColumns()->GetItem(long(3))->PutFormatColumn(L"(0:=(1992 + 5 * (0 index ``))) = 2016 ? `<b><sha ;;0>` + =:0 + `</b>` : =:0"); var_FaceTree->GetColumns()->GetItem(long(4))->PutFormatColumn(L"(0:=(1993 + 5 * (0 index ``))) = 2016 ? `<b><sha ;;0>` + =:0 + `</b>` : =:0"); var_FaceTree->PutCaption(_bstr_t(spTreeCube1->GetFrontFace()->GetFaceCalendar()->GetYear())); spTreeCube1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABXgCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDIAkRRdDSOYDmGQYDiCIoRShOMIjH") + "LUXxtDaIZZmWCQCglf5HABRb7xPLoARTAaeJKoWboJAiGwLQjQUyABSdEyRJSLYhGIZRFqKZIRDSMFiwTZNVypAaIYqqaA6qzfJymabAAZJEradozTLIE7xVLEVYNKCm" + "ZCwMAAcgmEQgSTAda2BYELTzECoYDGCrcKpWCaNQ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2R4qsZCCKwUgmTo9VBJU9CFi6ZIRDSMFiyXZUIxHEKnIqrOjbBjaUpYABLErTBKUSzrEadAAwGbKJj+VJBULM" + "VD2BDWGABOYAKarWa7fhaUqJUTVdI1VBOIYmADPcaqCxrLgMMpnWxpN42bjdPY7V6Bc7yXJsHimK5GUTQA4aFIENydJzINjsKBKBriLIybpeFr7BiME4/YLhAA0vZNUY" + "sg0XguBqaAeEOIYUjqYQgGCCBJECUhjDoHROEYWooAGTRMCEEx9lGIY0CQUZOnuZQDBEdYFkeI5+H+igGAKAJgEgFgGgGUAzn4CoCmCSA2A6A5hAgCgQgSYRIE4EoFGG" + "CBiBeBhhkgPgbgcYgICoH4IGGWIOCSBhiGiHgVgoYooFoAYLGIWI+DCCgjCiTgrgII4ImYOoOmOSJ1n4OpWmQDQBICA=="); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeader,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exWeeksHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDaysHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayUp,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayForeColor,RGB(255,255,255)); spTreeCube1->EnsureVisibleFace(EXTREECUBELib::exFrontFace,vtMissing); spTreeCube1->EndUpdate(); |
45 |
How can I add a FaceTree object ( method 2 )
|
44 |
How can I add a FaceTree object ( method 1 )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceTree); EXTREECUBELib::IFaceTreePtr var_FaceTree = var_Face->GetFaceTree(); var_FaceTree->GetItems()->PutToString(L"Item <b>1,Item <b>2,Item <b>3"); var_FaceTree->PutSelectItem(1); |
43 |
How can I add a FaceCalendar object ( method 2 )
|
42 |
How can I add a FaceCalendar object ( method 1 )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = var_Face->GetFaceCalendar(); var_FaceCalendar->PutAutoSize(EXTREECUBELib::exFitClient); var_FaceCalendar->PutValue(COleDateTime(1971,12,31,0,00,00).operator DATE()); |
41 |
How can I add a FacePicture object ( method 2 )
|
40 |
How can I add a FacePicture object ( method 1 )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutIdentifyFace(EXTREECUBELib::IdentifyFaceEnum(EXTREECUBELib::exIdentifyFaceFrame | EXTREECUBELib::exIdentifyFaceName | EXTREECUBELib::exIdentifyFaceCaption)); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFacePicture); EXTREECUBELib::IFacePicturePtr var_FacePicture = var_Face->GetFacePicture(); var_FacePicture->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); var_FacePicture->PutPictureDisplay(EXTREECUBELib::Tile); var_FacePicture->PutWidth(L"2 * pwidth"); var_FacePicture->PutHeight(L"2 * pheight"); var_FacePicture->PutTop(L"122"); var_FacePicture->PutLeft(L"46"); |
39 |
How can I prevent bringing a specified face into the front
|
38 |
Is it possible to show one face opaque, while other semi-transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutDefaultFaceType(EXTREECUBELib::exFaceCalendar); spTreeCube1->PutTransparentContent(75); spTreeCube1->GetFrontFace()->PutTransparentContent(0); spTreeCube1->EndUpdate(); |
37 |
How can I add a Calendar control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutMargins(L"0,0,0,0"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = var_Face->GetFaceCalendar(); var_FaceCalendar->PutShowNonMonthDays(VARIANT_TRUE); var_FaceCalendar->PutAutoSize(EXTREECUBELib::exFitClient); spTreeCube1->EndUpdate(); |
36 |
Is it possible to init faces at once
// InitFaceContent event - Notifies your application that a face changes its type, so you can initialize its content. void OnInitFaceContentTreeCube1(LPDISPATCH Face) { // Face.FaceContent.ShowTodayButton = False } /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutDefaultFaceType(EXTREECUBELib::exFaceCalendar); |
35 |
How can I disable zoom when rolling the mouse wheel
|
34 |
Fisheye Calendar View - LR
// Move event - Occurs once a new face became visible, by moving/rotating from a face to another, into the giving direction. void OnMoveTreeCube1(long RotateDir,long FromFace,long ToFace) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->GetFrontFace()->GetFaceCalendar()->Move(RotateDir,vtMissing); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = spTreeCube1->GetLeftFace()->GetFaceCalendar(); var_FaceCalendar->PutDate(spTreeCube1->GetFrontFace()->GetFaceCalendar()->GetDate()); var_FaceCalendar->PrevMonth(vtMissing); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar1 = spTreeCube1->GetRightFace()->GetFaceCalendar(); var_FaceCalendar1->PutDate(spTreeCube1->GetFrontFace()->GetFaceCalendar()->GetDate()); var_FaceCalendar1->NextMonth(vtMissing); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); EXTREECUBELib::IAppearancePtr var_Appearance = spTreeCube1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABdQFg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQhFcZQSKUOQTDKMIziYBYJhEMQ1DBJQwwXBIZhgGIBIRgUBJCjWGodQLOEgwH") + "IERQjEyUJAmCYhRiCB42TrNIJwSBUPwTGKBXZDQRAApKVIWUAMFBVg7GRYcVxIUgAdDYMyZJyBa4qapaTheEQyDSJNr3DCMUTlBK7IhsKCaLhqZIDUzGVpWbZdMRlFCV" + "JYgOTqDgQMIkUhSE5TVIEew3H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A6AODgWoFhRDMCGAgMg1QZgDDQG4BoIRMAzEMBAZwGgBgVDIAwEIqAagGCAPIDwQxM" + "CECYLUFgVhdChHyF0dQghRgdDIDAAgmhBAGAkAIPATgRBAoqB4mYYAWAQBmLAiQmgrj7AHXgFABhYD2B8MULAVAqAABYxMAACAfDHCwJsC4Xw2DtE0DwCwZhlCeA2CcM" + "ArBkgBICA"); var_Appearance->Add(2,"CP:1 -6 0 6 0"); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeader,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeaderForeColor,RGB(255,255,255)); spTreeCube1->PutBackground(EXTREECUBELib::exWeeksHeader,RGB(240,240,240)); spTreeCube1->PutBackground(EXTREECUBELib::exDaysHeader,RGB(240,240,240)); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayUp,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayForeColor,RGB(255,255,255)); spTreeCube1->PutAllowRotate(EXTREECUBELib::RotateEnum(EXTREECUBELib::exRotateRight | EXTREECUBELib::exRotateLeft)); spTreeCube1->PutEnsureVisibleFaceOnDblClick(VARIANT_FALSE); spTreeCube1->PutDefaultFaceType(EXTREECUBELib::exFaceCalendar); spTreeCube1->GetFrontFace()->GetFaceCalendar()->PutDate(COleDateTime(2016,1,1,0,00,00).operator DATE()); spTreeCube1->GetTopFace()->PutType(EXTREECUBELib::exFaceNone); spTreeCube1->GetDownFace()->PutType(EXTREECUBELib::exFaceNone); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::EnsureVisibleFaceEnum(EXTREECUBELib::exAlwaysVisibleFrontFace | EXTREECUBELib::exFitToEnsureFace)); spTreeCube1->EndUpdate(); |
33 |
Fisheye Calendar View - S
// FaceCalendarDateChanged event - Notifies that the user browses for a new date into a face of calendar type. void OnFaceCalendarDateChangedTreeCube1(LPDISPATCH Calendar) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); Date currentDate = spTreeCube1->GetFrontFace()->GetFaceCalendar()->GetDate(); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = spTreeCube1->GetLeftFace()->GetFaceCalendar(); var_FaceCalendar->PutDate(currentDate); var_FaceCalendar->PrevMonth(vtMissing); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar1 = spTreeCube1->GetRightFace()->GetFaceCalendar(); var_FaceCalendar1->PutDate(currentDate); var_FaceCalendar1->NextMonth(vtMissing); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar2 = spTreeCube1->GetTopFace()->GetFaceCalendar(); var_FaceCalendar2->PutDate(currentDate); var_FaceCalendar2->PrevYear(vtMissing); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar3 = spTreeCube1->GetDownFace()->GetFaceCalendar(); var_FaceCalendar3->PutDate(currentDate); var_FaceCalendar3->NextYear(vtMissing); } // InitFaceCalendar event - Notifies your application that a face changes its type to exFaceCalendar. void OnInitFaceCalendarTreeCube1(LPDISPATCH Calendar) { } // Move event - Occurs once a new face became visible, by moving/rotating from a face to another, into the giving direction. void OnMoveTreeCube1(long RotateDir,long FromFace,long ToFace) { EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->GetFrontFace()->GetFaceCalendar()->Move(RotateDir,vtMissing); } EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAADhABXgCg6AADACAxRDAMgBQKAAzQFAYaBsHCGAAGMZRZgmFgAQh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T50AybItiGYJji2MwABAECAg="); spTreeCube1->PutBackground(EXTREECUBELib::exDateHeader,0x1000000); spTreeCube1->PutBackground(EXTREECUBELib::exWeeksHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDaysHeader,RGB(250,250,250)); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayUp,0x2000000); spTreeCube1->PutBackground(EXTREECUBELib::exDateTodayForeColor,RGB(255,255,255)); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->PutDefaultFaceType(EXTREECUBELib::exFaceCalendar); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::EnsureVisibleFaceEnum(EXTREECUBELib::exAlwaysVisibleFrontFace | EXTREECUBELib::exFitToEnsureFace)); spTreeCube1->GetFrontFace()->GetFaceCalendar()->PutDate(COleDateTime(2016,1,1,0,00,00).operator DATE()); spTreeCube1->EndUpdate(); |
32 |
While navigating the Down/Top faces, I am not able to rotate it. Is it possible (ensure always front face)
|
31 |
How can I show a single month only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); EXTREECUBELib::IFaceCalendarPtr var_FaceCalendar = var_Face->GetFaceCalendar(); var_FaceCalendar->PutDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); var_FaceCalendar->PutSelDate(var_FaceCalendar->GetDate()); var_FaceCalendar->PutMinDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); var_FaceCalendar->PutMaxDate(COleDateTime(2001,1,31,0,00,00).operator DATE()); var_FaceCalendar->PutFirstWeekDay(EXTREECUBELib::exMonday); var_FaceCalendar->PutShowWeeks(VARIANT_FALSE); var_FaceCalendar->PutShowNonMonthDays(VARIANT_FALSE); var_FaceCalendar->PutShowTodayButton(VARIANT_FALSE); var_FaceCalendar->PutMaxMonthX(var_FaceCalendar->GetMinMonthX()); var_FaceCalendar->PutMaxMonthY(var_FaceCalendar->GetMinMonthY()); |
30 |
How can I show date calendar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowNonMonthDays(VARIANT_FALSE); |
29 |
How can I prevent dbl click to ensure the clicked face is visible
|
28 |
How can I put a picture into the center of the texture but behind the control's face
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutHTMLPicture(L"logo","c:\\exontrol\\images\\zipdisk.gif"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowTodayButton(VARIANT_FALSE); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceCaption,"<img>logo</img>"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceAnchor,long(0)); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceHTMLRotate,long(0)); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceHTMLRotate,long(0)); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceLeft,"(width-twidth)/2"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceTop,"(height-theight)/2"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceWidth,"twidth"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceHeight,"theight"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceVisible,long(1)); spTreeCube1->GetFrontFace()->GetFaceCalendar()->PutForeColor(RGB(255,0,0)); spTreeCube1->EndUpdate(); |
27 |
How do I put my logo on the right-bottom side of the face (method 2), while I using the face
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutHTMLPicture(L"logo","c:\\exontrol\\images\\zipdisk.gif"); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowTodayButton(VARIANT_FALSE); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceCaption,"<r><img>logo</img>"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceAnchor,long(2)); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceHTMLRotate,long(0)); spTreeCube1->EndUpdate(); |
26 |
Is it possible to show two or more titles/extra titles
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowTodayButton(VARIANT_FALSE); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<font ;18><c><fgcolor=0000FF>This is the title"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceCaption,"<font ;18><c><fgcolor=FF0000>This is the extra title"); var_Face->PutExtraTitle("extra",EXTREECUBELib::exTitleFaceAnchor,long(2)); spTreeCube1->EndUpdate(); |
25 |
How can I display the title at the left side of the face
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<font ;18><c>This is the title"); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowTodayButton(VARIANT_FALSE); var_Face->PutTitle(EXTREECUBELib::exTitleFaceAnchor,long(4)); spTreeCube1->EndUpdate(); |
24 |
How can I display the title at the bottom side of the face
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<font ;18><c>This is the title"); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->GetFaceCalendar()->PutShowTodayButton(VARIANT_FALSE); var_Face->PutTitle(EXTREECUBELib::exTitleFaceAnchor,long(2)); var_Face->PutTitle(EXTREECUBELib::exTitleFaceHTMLRotate,long(0)); spTreeCube1->EndUpdate(); |
23 |
Can I display the title to a different position
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutTitle(EXTREECUBELib::exTitleFaceCaption,"<font ;18><c><bgcolor=FFFFFF>This is the title"); var_Face->PutType(EXTREECUBELib::exFaceCalendar); var_Face->PutTitle(EXTREECUBELib::exTitleFaceVisible,long(-1)); var_Face->PutTitle(EXTREECUBELib::exTitleFaceTop,"(height-theight)/2"); spTreeCube1->EndUpdate(); |
22 |
How can I display a title for a face
|
21 |
Can I put the picture at specified position
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutIdentifyFace(EXTREECUBELib::IdentifyFaceEnum(EXTREECUBELib::exIdentifyFaceFrame | EXTREECUBELib::exIdentifyFaceName | EXTREECUBELib::exIdentifyFaceCaption)); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFacePicture); EXTREECUBELib::IFacePicturePtr var_FacePicture = var_Face->GetFacePicture(); var_FacePicture->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); var_FacePicture->PutPictureDisplay(EXTREECUBELib::Tile); var_FacePicture->PutWidth(L"2 * pwidth"); var_FacePicture->PutHeight(L"2 * pheight"); var_FacePicture->PutTop(L"122"); var_FacePicture->PutLeft(L"46"); |
20 |
How do I put my logo on the right-bottom side of the face (method 1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutIdentifyFace(EXTREECUBELib::IdentifyFaceEnum(EXTREECUBELib::exIdentifyFaceFrame | EXTREECUBELib::exIdentifyFaceName | EXTREECUBELib::exIdentifyFaceCaption)); EXTREECUBELib::IFacePtr var_Face = spTreeCube1->GetFrontFace(); var_Face->PutType(EXTREECUBELib::exFacePicture); EXTREECUBELib::IFacePicturePtr var_FacePicture = var_Face->GetFacePicture(); var_FacePicture->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); var_FacePicture->PutPictureDisplay(EXTREECUBELib::LowerRight); var_FacePicture->PutWidth(L"width"); var_FacePicture->PutHeight(L"height"); var_FacePicture->PutTop(L"0"); var_FacePicture->PutLeft(L"0"); |
19 |
Can I use any picture on the background's faces
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->BeginUpdate(); spTreeCube1->PutTexturePicturePath(L""); spTreeCube1->GetFace(EXTREECUBELib::exFrontFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spTreeCube1->GetFace(EXTREECUBELib::exBottomFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"))))); spTreeCube1->GetFace(EXTREECUBELib::exRightFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spTreeCube1->GetFace(EXTREECUBELib::exLeftFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spTreeCube1->GetFace(EXTREECUBELib::exTopFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"))))); spTreeCube1->GetFace(EXTREECUBELib::exDownFace)->PutPicture(IPictureDispPtr(((IDispatch*)(spTreeCube1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spTreeCube1->PutAlwaysEnsureVisibleFace(EXTREECUBELib::exDisableEnsureVisibleFace); spTreeCube1->EndUpdate(); |
18 |
Is it possible to show the cube's texture more transparent, so the faces are more visible
|
17 |
How can I load a different texture on the cube
|
16 |
How can I show no texture/picture on all faces
|
15 |
Fish-Eye Rectangular
|
14 |
Orthographic
|
13 |
Fish-Eye Default
|
12 |
I know the user can drag the cube to any position. The question is how can I restore the layout
/* Copy and paste the following directives to your header file as it defines the namespace 'EXTREECUBELib' for the library: 'ExTreeCube 1.0 Control Library' #import <ExTreeCube.dll> using namespace EXTREECUBELib; */ EXTREECUBELib::ITreeCubePtr spTreeCube1 = GetDlgItem(IDC_TREECUBE1)->GetControlUnknown(); spTreeCube1->PutIdentifyFace(EXTREECUBELib::IdentifyFaceEnum(EXTREECUBELib::exIdentifyFaceFrame | EXTREECUBELib::exIdentifyFaceName | EXTREECUBELib::exIdentifyFaceCaption)); spTreeCube1->PutRotX(0.25); spTreeCube1->PutRotY(0.75); spTreeCube1->PutZoom(1); |
11 |
How do I put my logo on the right-bottom side of the control
|