395. How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1","K1"); var_ConditionalFormat->PutBackColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1)); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat1 = spList1->GetConditionalFormats()->Add(L"1","K2"); var_ConditionalFormat1->PutBackColor(RGB(255,0,0)); var_ConditionalFormat1->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2)); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutDrawGridLines(EXLISTLib::GridLinesEnum(0xfffffffc | EXLISTLib::exVLines)); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); var_Columns->Add(L"Column 2"); var_Columns->Add(L"Column 3"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add(long(0)); var_Items->Add(long(0)); var_Items->Add(long(0)); spList1->EndUpdate();
394. How can I get the list of items as they are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutBackColorAlternate(RGB(240,240,240)); spList1->GetColumns()->Add(L"Names"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Mantel"); var_Items->Add("Mechanik"); var_Items->Add("Motor"); var_Items->Add("Murks"); var_Items->Add("Märchen"); var_Items->Add("Möhren"); var_Items->Add("Mühle"); spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortAscending); spList1->EndUpdate(); OutputDebugStringW( _bstr_t(spList1->GetItems(long(1))) );
393. Is posible to reduce the size of the picture to be shown in the column's caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutHeaderHeight(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"DefaultSize")))->PutHTMLCaption(L"Default-Size <img>pic1</img> Picture"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"CustomSize")))->PutHTMLCaption(L"Custom-Size <img>pic1:16</img> Picture"); spList1->EndUpdate();
392. How can I change the color, font, bold etc for the items/cells in the same column or for the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutMarkSearchColumn(VARIANT_FALSE); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1)); spList1->GetColumns()->Add(L"C1"); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2"))); var_Column->PutHeaderBold(VARIANT_TRUE); var_Column->PutHTMLCaption(L"<fgcolor=FF0000>C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(10)),long(1),long(11)); var_Items->PutCaption(var_Items->Add(long(12)),long(1),long(13)); spList1->EndUpdate();
391. Is it possible to limit the height of item while resizing the row
// AddItem event - Occurs after a new Item is inserted to Items collection. void OnAddItemList1(long Item) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetItems()->PutItemMinHeight(Item,18); spList1->GetItems()->PutItemMaxHeight(Item,72); } EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutItemsAllowSizing(EXLISTLib::exResizeItem); spList1->PutScrollBySingleLine(VARIANT_FALSE); spList1->PutBackColorAlternate(RGB(240,240,240)); spList1->GetColumns()->Add(L"Names"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Mantel"); var_Items->Add("Mechanik"); var_Items->Add("Motor"); var_Items->Add("Murks"); var_Items->Add("Märchen"); var_Items->Add("Möhren"); var_Items->Add("Mühle"); spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortAscending); spList1->EndUpdate();
390. Can I specify un-sortable items so they keep their position once the user sorts the columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutSortType(EXLISTLib::SortNumeric); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutSortableItem(var_Items->Add("Unsortable"),VARIANT_FALSE); var_Items->Add(long(1)); var_Items->Add(long(2)); var_Items->Add(long(3));
389. The item is not getting selected when clicking the cell's checkbox. What should I do
// CellStateChanged event - Fired after cell's state is changed.
void OnCellStateChangedList1(long ItemIndex,long ColIndex)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetItems()->PutSelectItem(ItemIndex,VARIANT_TRUE);
}
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Check")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
var_Items->Add(long(0));
var_Items->Add(long(1));
var_Items->Add(long(2));
var_Items->Add(long(3));
388. Does your control supports multiple lines tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutToolTipDelay(1); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(_bstr_t("<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The toolt") + "ip supports built-in HTML tags, icons and pictures.<br><br><br><img>pic1</img> picture ... <br><" + "br>");
387. How can I prevent highlighting the column from the cursor - point
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZL") + "hEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJgEgI="); spList1->PutBackground(EXLISTLib::exCursorHoverColumn,0x1000000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E4")))->PutWidth(32);
386. Is there any option to show the tooltip programmatically
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveList1(short Button,short Shift,long X,long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->ShowToolTip(_bstr_t(spList1->GetItemFromPoint(-1,-1,c,hit)),"","8","8",vtMissing);
}
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Def");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
var_Items->Add("Item 1");
var_Items->Add("Item 2");
var_Items->Add("Item 3");
spList1->EndUpdate();
385. Is it possible to prevent covering the colors by selected rows
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSelBackMode(EXLISTLib::exTransparent); spList1->PutBackColorAlternate(RGB(240,240,240)); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4"); var_Items->Add("Item 5");
384. Can I use PNG images to display pictures in the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\card.png"); spList1->PutHeaderHeight(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");
383. Does your control support conditional format and computed fields
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutMarkSearchColumn(VARIANT_FALSE); EXLISTLib::IConditionalFormatsPtr var_ConditionalFormats = spList1->GetConditionalFormats(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%1 >4",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1)); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%2 > 4",vtMissing); var_ConditionalFormat1->PutBold(VARIANT_TRUE); var_ConditionalFormat1->PutStrikeOut(VARIANT_TRUE); var_ConditionalFormat1->PutForeColor(RGB(255,0,0)); var_ConditionalFormat1->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2)); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat2 = var_ConditionalFormats->Add(L"%3 > 4",vtMissing); var_ConditionalFormat2->PutBold(VARIANT_TRUE); var_ConditionalFormat2->PutStrikeOut(VARIANT_TRUE); var_ConditionalFormat2->PutForeColor(RGB(255,0,0)); var_ConditionalFormat2->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x3)); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Name"); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A"))); var_Column->PutSortType(EXLISTLib::SortNumeric); var_Column->PutAllowSizing(VARIANT_FALSE); var_Column->PutWidth(36); var_Column->PutFormatColumn(L"len(value) ? value + ' +'"); EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"B"))); var_Column1->PutSortType(EXLISTLib::SortNumeric); var_Column1->PutAllowSizing(VARIANT_FALSE); var_Column1->PutWidth(36); var_Column1->PutFormatColumn(L"len(value) ? value + ' +'"); EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"C"))); var_Column2->PutSortType(EXLISTLib::SortNumeric); var_Column2->PutAllowSizing(VARIANT_FALSE); var_Column2->PutWidth(36); var_Column2->PutFormatColumn(L"len(value) ? value + ' ='"); EXLISTLib::IColumnPtr var_Column3 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A+B+C"))); var_Column3->PutSortType(EXLISTLib::SortNumeric); var_Column3->PutAllowSizing(VARIANT_FALSE); var_Column3->PutWidth(64); var_Column3->PutComputedField(L"%1+%2+%3"); var_Column3->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"); var_Column3->PutDef(EXLISTLib::exCaptionFormat,long(1)); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h1 = var_Items->Add("Item 1"); var_Items->PutCaption(h1,long(1),long(7)); var_Items->PutCaption(h1,long(2),long(3)); var_Items->PutCaption(h1,long(3),long(1)); h1 = var_Items->Add("Item 2"); var_Items->PutCaption(h1,long(1),long(2)); var_Items->PutCaption(h1,long(2),long(5)); var_Items->PutCaption(h1,long(3),long(12)); h1 = var_Items->Add("Item 3"); var_Items->PutCaption(h1,long(1),long(2)); var_Items->PutCaption(h1,long(2),long(2)); var_Items->PutCaption(h1,long(3),long(4)); h1 = var_Items->Add("Item 4"); var_Items->PutCaption(h1,long(1),long(2)); var_Items->PutCaption(h1,long(2),long(9)); var_Items->PutCaption(h1,long(3),long(4)); spList1->EndUpdate();
382. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutScrollBars(EXLISTLib::DisableBoth); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"C1"); var_Columns->Add(L"C2"); var_Columns->Add(L"C3"); var_Columns->Add(L"C4"); var_Columns->Add(L"C5"); var_Columns->Add(L"C6"); var_Columns->Add(L"C7"); var_Columns->Add(L"C8"); spList1->PutRightToLeft(VARIANT_TRUE); spList1->EndUpdate();
381. Can I display the cell's check box after the text
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); var_Column->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,check"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellHasCheckBox(var_Items->Add("Caption 1"),long(0),VARIANT_TRUE); var_Items->PutCellHasCheckBox(var_Items->Add("Caption 2"),long(0),VARIANT_TRUE);
380. Can I change the order of the parts in the cell, as checkbox after the text, and so on
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,check,icon,icons,picture"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Text"); var_Items->PutCellImage(h,long(0),1); var_Items->PutCellHasCheckBox(h,long(0),VARIANT_TRUE);
379. Can I have an image displayed after the text. Can I get that effect without using HTML content
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,icon,check,icons,picture"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Text"); var_Items->PutCellImage(h,long(0),1);
378. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutScrollBars(EXLISTLib::DisableBoth); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"C1"); var_Columns->Add(L"C2"); var_Columns->Add(L"C3"); var_Columns->Add(L"C4"); var_Columns->Add(L"C5"); var_Columns->Add(L"C6"); var_Columns->Add(L"C7"); var_Columns->Add(L"C8"); spList1->PutRightToLeft(VARIANT_TRUE); spList1->EndUpdate();
377. How can I change the foreground color for a particular column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderForeColor,long(8439039)); var_Columns->Add(L"Column 3");
376. How can I change the background color for a particular column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderBackColor,long(8439039)); var_Columns->Add(L"Column 3");
375. How can I display the column using currency format and enlarge the font for certain values
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency"))); var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1)); var_Column->PutFormatColumn(L"len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1.23"); var_Items->Add("2.34"); var_Items->Add("9.94"); var_Items->Add("11.94"); var_Items->Add("1000");
374. How can I highlight only parts of the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L""))); var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1)); var_Column->PutFormatColumn(L"value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Root"); var_Items->Add("Child 1"); var_Items->Add("Child 2"); var_Items->Add("Child 3");
373. How can I get the number of occurrences of a specified string in the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L""); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"occurrences"))); var_Column->PutComputedField(L"lower(%0) count 'o'"); var_Column->PutFormatColumn(L"'contains ' + value + ' of \\'o\\' chars'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Root"); var_Items->Add("Child 1 oooof the root"); var_Items->Add("Child 2"); var_Items->Add("Child 3");
372. How can I display dates in my format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date"))); var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1)); var_Column->PutFormatColumn(_bstr_t("'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0") + ") +')'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/21/2001"); var_Items->Add("2/22/2002"); var_Items->Add("3/13/2003"); var_Items->Add("4/24/2004");
371. How can I display dates in short format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"shortdate(value)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001"); var_Items->Add("2/2/2002"); var_Items->Add("3/3/2003"); var_Items->Add("4/4/2004");
370. How can I display dates in long format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"longdate(value)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001"); var_Items->Add("2/2/2002"); var_Items->Add("3/3/2003"); var_Items->Add("4/4/2004");
369. How can I display only the right part of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L""); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Right"))); var_Column->PutComputedField(L"%0 right 2"); var_Column->PutFormatColumn(L"'\"' + value + '\"'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Root"); var_Items->Add("Child 1"); var_Items->Add("Child 2"); var_Items->Add("SChild 3");
368. How can I display only the left part of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L""); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Left")))->PutComputedField(L"%0 left 2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Root"); var_Items->Add("Child 1"); var_Items->Add("Child 2"); var_Items->Add("SChild 3");
367. How can I display true or false instead 0 and -1
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Boolean")))->PutFormatColumn(L"value != 0 ? 'true' : 'false'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add(VARIANT_TRUE); var_Items->Add(VARIANT_FALSE); var_Items->Add(VARIANT_TRUE); var_Items->Add(long(0)); var_Items->Add(long(1));
366. How can I display icons or images instead numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Icons"))); var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1)); var_Column->PutFormatColumn(L"'The cell displays the icon <img>'+value+'</img> instead ' + value"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add(long(1)); var_Items->Add(long(2)); var_Items->Add(long(3));
365. How can I display the column using currency
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutFormatColumn(L"currency(dbl(value))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1.23"); var_Items->Add("2.34"); var_Items->Add("0"); var_Items->Add(long(5)); var_Items->Add("10000.99");
364. Is is possible to use HTML tags to display in the filter caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarCaption(L"This is a bit of text being displayed in the filter bar."); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); spList1->EndUpdate();
363. How can I find the number of items after filtering
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add(""); var_Items->PutCaption(h,long(0),var_Items->GetVisibleItemCount()); spList1->EndUpdate();
362. How can I change the filter caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(0x2000 | EXLISTLib::exFilterPromptContainsAll | EXLISTLib::exFilterPromptStartWords)); spList1->PutFilterBarPromptPattern(L"london robert"); spList1->PutFilterBarCaption(L"<r>Found: ... "); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
361. While using the filter prompt is it is possible to use wild characters
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptPattern); spList1->PutFilterBarPromptPattern(L"lon* seat*"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
360. How can I list all items that contains any of specified words, not necessary at the beggining
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAny | EXLISTLib::exFilterPromptStartWords); spList1->PutFilterBarPromptPattern(L"london davolio"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
359. How can I list all items that contains any of specified words, not strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(0x2000 | EXLISTLib::exFilterPromptContainsAny | EXLISTLib::exFilterPromptStartWords)); spList1->PutFilterBarPromptPattern(L"london nancy"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
358. How can I list all items that contains all specified words, not strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(0x2000 | EXLISTLib::exFilterPromptContainsAll | EXLISTLib::exFilterPromptStartWords)); spList1->PutFilterBarPromptPattern(L"london robert"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
357. I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAny | EXLISTLib::exFilterPromptCaseSensitive); spList1->PutFilterBarPromptPattern(L"Anne"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
356. Is it possible to list only items that ends with any of specified strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptEndWith); spList1->PutFilterBarPromptColumns("0"); spList1->PutFilterBarPromptPattern(L"Fuller"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
355. Is it possible to list only items that ends with any of specified strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptEndWith); spList1->PutFilterBarPromptColumns("0"); spList1->PutFilterBarPromptPattern(L"Fuller"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
354. Is it possible to list only items that starts with any of specified strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptStartWith); spList1->PutFilterBarPromptColumns("0"); spList1->PutFilterBarPromptPattern(L"An M"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
353. Is it possible to list only items that starts with specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptStartWith); spList1->PutFilterBarPromptColumns("0"); spList1->PutFilterBarPromptPattern(L"A"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
352. How can I specify that the list should include any of the seqeunces in the pattern
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAny); spList1->PutFilterBarPromptPattern(L"london seattle"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
351. How can I specify that all sequences in the filter pattern must be included in the list
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAll); spList1->PutFilterBarPromptPattern(L"london manager"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
350. How do I change at runtime the filter prompt
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptPattern(L"london manager"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
349. How do I specify to filter only a single column when using the filter prompt
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPromptColumns("2,3"); spList1->PutFilterBarPromptPattern(L"london"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
348. How do I change the prompt or the caption being displayed in the filter bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); spList1->PutFilterBarPrompt(L"changed"); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); spList1->EndUpdate();
347. How do I enable the filter prompt feature
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSearchColumnIndex(1); spList1->PutFilterBarPromptVisible(VARIANT_TRUE); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96); var_Columns->Add(L"City"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h0 = var_Items->Add("Nancy Davolio"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Andrew Fuller"); var_Items->PutCaption(h0,long(1),"Vice President, Sales"); var_Items->PutCaption(h0,long(2),"Tacoma"); var_Items->PutSelectItem(h0,VARIANT_TRUE); h0 = var_Items->Add("Janet Leverling"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Kirkland"); h0 = var_Items->Add("Margaret Peacock"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"Redmond"); h0 = var_Items->Add("Steven Buchanan"); var_Items->PutCaption(h0,long(1),"Sales Manager"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Michael Suyama"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Robert King"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); h0 = var_Items->Add("Laura Callahan"); var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator"); var_Items->PutCaption(h0,long(2),"Seattle"); h0 = var_Items->Add("Anne Dodsworth"); var_Items->PutCaption(h0,long(1),"Sales Representative"); var_Items->PutCaption(h0,long(2),"London"); spList1->EndUpdate();
346. Is it possible to change the style for the vertical or horizontal grid lines, in the list area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->PutGridLineStyle(EXLISTLib::exGridLinesHDot4 | EXLISTLib::exGridLinesVSolid); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); spList1->GetColumns()->Add(L"C3"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->PutCaption(h,long(1),"SubItem 1.2"); var_Items->PutCaption(h,long(2),"SubItem 1.3"); h = var_Items->Add("Item 2"); var_Items->PutCaption(h,long(1),"SubItem 2.2"); var_Items->PutCaption(h,long(2),"SubItem 2.3"); spList1->EndUpdate();
345. Is it possible to change the style for the grid lines, for instance to be solid not dotted
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->PutGridLineStyle(EXLISTLib::exGridLinesSolid); spList1->GetColumns()->Add(L"Column"); spList1->EndUpdate();
344. How can I filter programatically using more columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->PutMarkSearchColumn(VARIANT_FALSE); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Car"); var_Columns->Add(L"Equipment"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag"); var_Items->PutCaption(var_Items->Add("Toyota"),long(1),"Air Bag,Air condition"); var_Items->PutCaption(var_Items->Add("Ford"),long(1),"Air condition"); var_Items->PutCaption(var_Items->Add("Nissan"),long(1),"Air Bag,ABS,ESP"); var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag, ABS,ESP"); var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"ABS,ESP"); EXLISTLib::IColumnPtr var_Column = spList1->GetColumns()->GetItem("Car"); var_Column->PutFilterType(EXLISTLib::exFilter); var_Column->PutFilter(L"Mazda"); EXLISTLib::IColumnPtr var_Column1 = spList1->GetColumns()->GetItem("Equipment"); var_Column1->PutFilterType(EXLISTLib::exPattern); var_Column1->PutFilter(L"*ABS*|*ESP*"); spList1->ApplyFilter(); spList1->EndUpdate();
343. How do I find an item based on my extra data
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->PutItemData(var_Items->Add("Item 3"),long(1234)); var_Items->Add("Item 4"); var_Items->PutItemBold(var_Items->GetFindItemData(long(1234),vtMissing),VARIANT_TRUE);
342. How do I print the control's content
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->BeginUpdate(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1.23"); var_Items->Add("2.34"); var_Items->Add("0"); var_Items->PutItemBackColor(var_Items->Add(vtMissing),RGB(255,128,128)); var_Items->Add("10000.99"); spList1->EndUpdate(); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'EXPRINTLib' for the library: 'ExPrint 1.0 Control Library' #import <ExPrint.dll> using namespace EXPRINTLib; */ EXPRINTLib::IExPrintPtr var_Print = ::CreateObject(L"Exontrol.Print"); var_Print->PutPrintExt(((EXLISTLib::IListPtr)(spList1))); var_Print->Preview();
341. How can I display the currency only for not empty cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1.23"); var_Items->Add("2.34"); var_Items->Add("0"); var_Items->PutItemBackColor(var_Items->Add(vtMissing),RGB(255,128,128)); var_Items->Add("10000.99");
340. Is there a function to display the number of days between two date including the number of hours
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Start")))->PutWidth(32); spList1->GetColumns()->Add(L"End"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor") + "(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("1/11/2001"); var_Items->PutCaption(h,long(1),"1/14/2001"); h = var_Items->Add("2/22/2002 12:00:00 PM"); var_Items->PutCaption(h,long(1),"3/14/2002 1:00:00 PM"); h = var_Items->Add("3/13/2003"); var_Items->PutCaption(h,long(1),"4/11/2003 11:00:00 AM");
339. Is there a function to display the number of days between two date including the number of hours
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Start"); spList1->GetColumns()->Add(L"End"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%") + "0))))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("1/11/2001"); var_Items->PutCaption(h,long(1),"1/14/2001 11:00:00 PM"); h = var_Items->Add("2/22/2002 12:00:00 PM"); var_Items->PutCaption(h,long(1),"3/14/2002 1:00:00 PM"); h = var_Items->Add("3/13/2003"); var_Items->PutCaption(h,long(1),"4/11/2003 11:00:00 AM");
338. How can I display the number of days between two dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Start"); spList1->GetColumns()->Add(L"End"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(L"(date(%1)-date(%0)) + ' days'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("1/11/2001"); var_Items->PutCaption(h,long(1),"1/14/2001"); h = var_Items->Add("2/22/2002"); var_Items->PutCaption(h,long(1),"3/14/2002"); h = var_Items->Add("3/13/2003"); var_Items->PutCaption(h,long(1),"4/11/2003");
337. How can I get second part of the date
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Second")))->PutComputedField(L"sec(date(%0))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:10:00 AM"); var_Items->Add("2/22/2002 11:01:22 AM"); var_Items->Add("3/13/2003 12:23:01 PM"); var_Items->Add("4/14/2004 1:11:59 PM");
336. How can I get minute part of the date
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Minute")))->PutComputedField(L"min(date(%0))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:10:00 AM"); var_Items->Add("2/22/2002 11:01:00 AM"); var_Items->Add("3/13/2003 12:23:00 PM"); var_Items->Add("4/14/2004 1:11:00 PM");
335. How can I check the hour part only so I know it was afternoon
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"hour(%0)>=12",vtMissing)->PutBold(VARIANT_TRUE); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Hour")))->PutComputedField(L"hour(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:00:00 AM"); var_Items->Add("2/22/2002 11:00:00 AM"); var_Items->Add("3/13/2003 12:00:00 PM"); var_Items->Add("4/14/2004 1:00:00 PM");
334. What about a function to get the day in the week, or days since Sunday
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"WeekDay")))->PutComputedField(L"weekday(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:00:00 AM"); var_Items->Add("2/22/2002 11:00:00 AM"); var_Items->Add("3/13/2003 12:00:00 PM"); var_Items->Add("4/14/2004 1:00:00 PM");
333. Is there any function to get the day of the year or number of days since January 1st
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Day since January 1st")))->PutComputedField(L"yearday(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:00:00 AM"); var_Items->Add("2/22/2002 11:00:00 AM"); var_Items->Add("3/13/2003 12:00:00 PM"); var_Items->Add("4/14/2004 1:00:00 PM");
332. How can I display only the day of the date
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Day")))->PutComputedField(L"day(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/11/2001 10:00:00 AM"); var_Items->Add("2/22/2002 11:00:00 AM"); var_Items->Add("3/13/2003 12:00:00 PM"); var_Items->Add("4/14/2004 1:00:00 PM");
331. How can I display only the month of the date
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Month")))->PutComputedField(L"month(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 10:00:00 AM"); var_Items->Add("2/2/2002 11:00:00 AM"); var_Items->Add("3/3/2003 12:00:00 PM"); var_Items->Add("4/4/2004 1:00:00 PM");
330. How can I get only the year part from a date expression
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Year")))->PutComputedField(L"year(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 10:00:00 AM"); var_Items->Add("2/2/2002 11:00:00 AM"); var_Items->Add("3/3/2003 12:00:00 PM"); var_Items->Add("4/4/2004 1:00:00 PM");
329. Can I convert the expression to date
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutComputedField(L"date(dbl(%0))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("30000.99"); var_Items->Add("3561.23"); var_Items->Add("1232.34");
328. Can I convert the expression to a number, double or float
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Number + 2")))->PutComputedField(L"dbl(%0)+2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
327. How can I display dates in long format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"LongFormat")))->PutComputedField(L"longdate(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 10:00:00 AM"); var_Items->Add("2/2/2002 11:00:00 AM"); var_Items->Add("3/3/2003 12:00:00 PM"); var_Items->Add("4/4/2004 1:00:00 PM");
326. How can I display dates in short format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ShortFormat")))->PutComputedField(L"shortdate(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 10:00:00 AM"); var_Items->Add("2/2/2002 11:00:00 AM"); var_Items->Add("3/3/2003 12:00:00 PM"); var_Items->Add("4/4/2004 1:00:00 PM");
325. How can I display the time only of a date expression
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Date"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Time")))->PutComputedField(L"'time is:' + time(date(%0))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 10:00:00 AM"); var_Items->Add("2/2/2002 11:00:00 AM"); var_Items->Add("3/3/2003 12:00:00 PM"); var_Items->Add("4/4/2004 1:00:00 PM");
324. Is there any function to display currencies, or money formatted as in the control panel
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"currency(dbl(%0))"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1.23"); var_Items->Add("2.34"); var_Items->Add("10000.99");
323. How can I convert the expression to a string so I can look into the date string expression for month's name
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Str")))->PutComputedField(L"str(%0) + ' AA'"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
322. Can I display the absolute value or positive part of the number
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Abs")))->PutComputedField(L"abs(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
321. Is there any function to get largest number with no fraction part that is not greater than the value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Floor")))->PutComputedField(L"floor(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
320. Is there any function to round the values base on the .5 value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Round")))->PutComputedField(L"round(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
319. How can I get or display the integer part of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Number"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Int")))->PutComputedField(L"int(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("-1.98"); var_Items->Add("0.99"); var_Items->Add("1.23"); var_Items->Add("2.34");
318. How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"proper(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("item item"); var_Items->Add("item item"); var_Items->Add("item item");
317. Is there any option to display cells in uppercase
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"upper(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4 - child");
316. Is there any option to display cells in lowercase
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"lower(%0)"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4 - child");
315. How can I mark the cells that has a specified type, ie strings only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"type(%0) = 8",vtMissing)->PutForeColor(RGB(255,0,0)); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add(long(2)); var_Items->Add("Item 4 - child");
314. How can I bold the items that contains data or those who displays empty strings
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"not len(%1)=0",vtMissing)->PutBold(VARIANT_TRUE); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); long hC = var_Items->Add("Item 3"); var_Items->PutCaption(hC,long(1),"1"); var_Items->Add("Item 3");
313. Can I change the background color for items or cells that contains a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0)); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4 - child");
312. Is there any option to change the fore color for cells or items that ends with a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 endwith '22'",vtMissing)->PutForeColor(RGB(255,0,0)); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 1.22"); var_Items->Add("Item 2.22");
311. How can I highlight the cells or items that starts with a specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 startwith 'C'",vtMissing)->PutUnderline(VARIANT_TRUE); spList1->GetColumns()->Add(L""); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("CItem 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4");
310. How can I change the foreground color for a particular column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderForeColor,long(8439039)); var_Columns->Add(L"Column 3");
309. How can I change the background color for a particular column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderBackColor,long(8439039)); var_Columns->Add(L"Column 3");
308. How can I display the column's header using multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHeaderHeight(128); spList1->PutHeaderSingleLine(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"This is just a column that should break the header.")))->PutWidth(32); spList1->GetColumns()->Add(L"This is just another column that should break the header.");
307. How can I align the text/caption on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exLowerBackPart,L"left"); spList1->PutScrollPartCaptionAlignment(EXLISTLib::exHScroll,EXLISTLib::exLowerBackPart,EXLISTLib::LeftAlignment); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exUpperBackPart,L"right"); spList1->PutScrollPartCaptionAlignment(EXLISTLib::exHScroll,EXLISTLib::exUpperBackPart,EXLISTLib::RightAlignment); spList1->PutColumnAutoResize(VARIANT_FALSE); spList1->GetColumns()->Add(L"1"); spList1->GetColumns()->Add(L"2"); spList1->GetColumns()->Add(L"3"); spList1->GetColumns()->Add(L"4"); spList1->GetColumns()->Add(L"5"); spList1->GetColumns()->Add(L"6");
306. How do I select the next row/item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFocusItem()),VARIANT_TRUE);
305. How do I enable resizing ( changing the height ) the items at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutItemsAllowSizing(EXLISTLib::exResizeItem); spList1->PutDrawGridLines(EXLISTLib::exHLines); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemHeight(var_Items->Add("Item 2"),48); spList1->GetItems()->Add("Item 3"); spList1->GetItems()->Add("Item 4");
304. How do I enable resizing all the items at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutItemsAllowSizing(EXLISTLib::exResizeAllItems); spList1->PutDrawGridLines(EXLISTLib::exHLines); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemHeight(var_Items->Add("Item 2"),48); spList1->GetItems()->Add("Item 3");
303. How can I remove the filter
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter(); spList1->ClearFilter();
302. How do I change the control's border, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutAppearance(EXLISTLib::AppearanceEnum(0x1000000));
301. Can I change the style for break or divider line
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); long h = var_Items->Add(vtMissing); var_Items->PutItemBreak(h,EXLISTLib::DoubleLine); var_Items->PutSelectableItem(h,VARIANT_FALSE); var_Items->Add("Item 3");
300. Can I add any break or divider line
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_FALSE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); long h = var_Items->Add(vtMissing); var_Items->PutItemBreak(h,EXLISTLib::SingleLine); var_Items->PutSelectableItem(h,VARIANT_FALSE); var_Items->PutItemHeight(h,6); var_Items->Add("Item 3");
299. Can I change the default border of the tooltip, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackground(EXLISTLib::exToolTipAppearance,0x1000000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
298. Can I change the background color for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); spList1->PutBackground(EXLISTLib::exToolTipBackColor,RGB(255,0,0)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
297. Does the tooltip support HTML format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(_bstr_t("<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgc") + "olor>");
296. Can I change the forecolor for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); spList1->PutBackground(EXLISTLib::exToolTipForeColor,RGB(255,0,0)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
295. Can I change the foreground color for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>");
294. Is there any function to limit the height of the items when I display it using multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") + "e lines."); var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE); var_Items->PutItemMaxHeight(h,48);
293. Why I cannot center my cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDrawGridLines(EXLISTLib::exAllLines); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Default")))->PutAlignment(EXLISTLib::CenterAlignment); spList1->GetItems()->Add("item 1"); spList1->GetItems()->Add("item 2"); spList1->GetItems()->Add("item 3");
292. How can I align the cell to the left, center or to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellHAlignment(var_Items->Add("left"),long(0),EXLISTLib::LeftAlignment); var_Items->PutCellHAlignment(var_Items->Add("center"),long(0),EXLISTLib::CenterAlignment); var_Items->PutCellHAlignment(var_Items->Add("right"),long(0),EXLISTLib::RightAlignment);
291. How do I apply HTML format to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("The following item shows some of the HTML format supported:"); var_Items->PutCellHAlignment(h,long(0),EXLISTLib::CenterAlignment); h = var_Items->Add(_bstr_t("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>te") + "xt <b>bold</b>, <i>italic</i>, <u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<" + "br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor</fgcolor> or <bgcolor=00FF00>b" + "gcolor</bgcolor> "); var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML); var_Items->PutCellSingleLine(h,long(0),VARIANT_FALSE);
290. How can I change the font for a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); spList1->GetItems()->Add("std font"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("this <font tahoma;12>is a bit of text with</font> a different font"),long(0),EXLISTLib::exHTML);
289. How can I change the font for a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); spList1->GetItems()->Add("default font"); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr f = ::CreateObject(L"StdFont"); f->PutName(L"Tahoma"); f->PutSize(_variant_t(long(12))); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellFont(var_Items->Add("new font"),long(0),IFontDispPtr(((stdole::FontPtr)(f))));
288. How can I change the font for entire item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); spList1->GetItems()->Add("default font"); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr f = ::CreateObject(L"StdFont"); f->PutName(L"Tahoma"); f->PutSize(_variant_t(long(12))); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemFont(var_Items->Add("new font"),IFontDispPtr(((stdole::FontPtr)(f))));
287. How do I vertically align a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDrawGridLines(EXLISTLib::exAllLines); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE); spList1->GetColumns()->Add(L"VAlign"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("This is a bit of long text that should break the line"); var_Items->PutCaption(h,long(1),"top"); var_Items->PutCellVAlignment(h,long(1),EXLISTLib::TopAlignment); h = var_Items->Add("This is a bit of long text that should break the line"); var_Items->PutCaption(h,long(1),"middle"); var_Items->PutCellVAlignment(h,long(1),EXLISTLib::MiddleAlignment); h = var_Items->Add("This is a bit of long text that should break the line"); var_Items->PutCaption(h,long(1),"bottom"); var_Items->PutCellVAlignment(h,long(1),EXLISTLib::BottomAlignment);
286. How can I change the position of an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->PutItemPosition(var_Items->Add("Item 3"),0);
285. How do I find an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutItemBold(var_Items->GetFindItem("Item 2",long(0),vtMissing),VARIANT_TRUE);
284. How can I insert a hyperlink or an anchor element
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("Just an <a1>anchor</a> element ..."),long(0),EXLISTLib::exHTML); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaptionFormat(var_Items1->Add("Just another <a2>anchor</a> element ..."),long(0),EXLISTLib::exHTML);
283. How do I find the handle of the item based on its index
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutItemBold(1,VARIANT_TRUE);
282. How can I find the cell being clicked in a radio group
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSelBackColor(RGB(255,255,128)); spList1->PutSelForeColor(RGB(0,0,0)); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); spList1->GetColumns()->Add(L"C3"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1); var_Items->PutCellBold(0,long(0),VARIANT_TRUE);
281. Can I let the user to resize at runtime the specified item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemAllowSizing(var_Items->Add("resizable item"),VARIANT_TRUE); var_Items->Add("not resizable item");
280. How can I change the size ( width, height ) of the picture
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutCellPictureWidth(h,long(0),24); var_Items->PutCellPictureHeight(h,long(0),24); var_Items->PutItemHeight(h,32); h = var_Items->Add("Item 2"); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutItemHeight(h,48);
279. How can I find the number or the count of selected items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSel(VARIANT_FALSE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE); var_Items->Add(var_Items->GetSelectCount());
278. How do I unselect an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(h,VARIANT_FALSE);
277. How do I find the selected item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetSelectedItem(0),VARIANT_TRUE);
276. How do I un select all items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSel(VARIANT_FALSE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->UnselectAll();
275. How do I select multiple items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSel(VARIANT_FALSE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);
274. How do I select all items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSel(VARIANT_FALSE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->SelectAll();
273. How do I select an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFocusItem()),VARIANT_TRUE);
272. Can I display a button with some picture or icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1)," Button <img>p1</img> "); var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); var_Items->PutItemHeight(h,48);
271. Can I display a button with some picture or icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1)," Button <img>1</img> "); var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
270. Can I display a button with some icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1)," <img>1</img> "); var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
269. How can I assign multiple icon/picture to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("text <img>p1</img> another picture <img>p2</img> and so on"); var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")))); var_Items->PutItemHeight(h,48); var_Items->Add("Item 2");
268. How can I assign an icon/picture to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutItemHeight(h,48); var_Items->Add("Item 2");
267. How can I assign multiple icons/pictures to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item <img>1</img> 1, <img>2</img>, ... and so on "); var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);
266. How can I assign multiple icons/pictures to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->PutCellImages(h,long(0),"1,2,3");
265. How can I assign an icon/picture to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); var_Items->PutCellImage(h,long(0),1); var_Items->PutCellImage(var_Items->Add("Item 2"),long(0),2); var_Items->PutCellImage(var_Items->Add("Item 3"),long(0),3);
264. How can I display a button inside the item or cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1)," Button 1 "); var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); h = var_Items->Add("Cell 2"); var_Items->PutCaption(h,long(1)," Button 2 "); var_Items->PutCellHAlignment(h,long(1),EXLISTLib::CenterAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
263. How can I change the state of a radio button
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSelBackColor(RGB(255,255,128)); spList1->PutSelForeColor(RGB(0,0,0)); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); spList1->GetColumns()->Add(L"C3"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1);
262. How can I assign a radio button to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutSelBackColor(RGB(255,255,128)); spList1->PutSelForeColor(RGB(0,0,0)); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); spList1->GetColumns()->Add(L"C3"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1);
261. How can I change the state of a checkbox
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Check Box"); var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE); var_Items->PutCellState(h,long(1),1);
260. How can I assign a checkbox to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Check Box"); var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE);
259. How can I display an item or a cell on multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"This is bit of text that's shown on multiple lines"); var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
258. How can I assign a tooltip to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"tooltip"); var_Items->PutCellToolTip(h,long(1),L"This is bit of text that's shown when the user hovers the cell");
257. How can I associate an extra data to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Cell 2"); var_Items->PutCellData(h,long(1),"your extra data");
256. How do I enable or disable a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Cell 2"); var_Items->PutCellEnabled(h,long(1),VARIANT_FALSE);
255. How do I change the cell's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Cell 2"); var_Items->PutCellForeColor(h,long(1),RGB(255,0,0));
254. How do I change the visual effect for the cell, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Cell 2"); var_Items->PutCellBackColor(h,long(1),0x1000000);
253. How do I change the cell's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Cell 1"); var_Items->PutCaption(h,long(1),"Cell 2"); var_Items->PutCellBackColor(h,long(1),RGB(255,0,0));
252. How do I change the caption or value for a particular cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("Cell 1"),long(1),"Cell 2");
251. How do I retrieve the focused item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->PutItemBold(var_Items->GetFocusItem(),VARIANT_TRUE);
250. How do I enumerate the visible items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item 1"); h = var_Items->Add("Item 2"); var_Items->PutItemBold(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);
249. How can I make an item unselectable, or not selectable
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("unselectable - you can't get selected"); var_Items->PutSelectableItem(h,VARIANT_FALSE); var_Items->Add("selectable");
248. How can I hide or show an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("hidden"); var_Items->PutItemHeight(h,0); var_Items->PutSelectableItem(h,VARIANT_FALSE); var_Items->Add("visible");
247. How can I change the height for all items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDefaultItemHeight(32); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("One"); spList1->GetItems()->Add("Two");
246. How do I change the height of an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemHeight(var_Items->Add("height"),128); spList1->GetItems()->Add("enabled");
245. How do I disable or enable an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutEnableItem(var_Items->Add("disabled"),VARIANT_FALSE); spList1->GetItems()->Add("enabled");
244. How do I display as strikeout a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellStrikeOut(var_Items->Add("strikeout"),long(0),VARIANT_TRUE);
243. How do I display as strikeout a cell or an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("gets <s>strikeout</s> only a portion of text"),long(0),EXLISTLib::exHTML);
242. How do I display as strikeout an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemStrikeOut(var_Items->Add("strikeout"),VARIANT_TRUE);
241. How do I underline a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellUnderline(var_Items->Add("underline"),long(0),VARIANT_TRUE);
240. How do I underline a cell or an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("gets <u>underline</u> only a portion of text"),long(0),EXLISTLib::exHTML);
239. How do I underline an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemUnderline(var_Items->Add("underline"),VARIANT_TRUE);
238. How do I display as italic a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellItalic(var_Items->Add("italic"),long(0),VARIANT_TRUE);
237. How do I display as italic a cell or an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("gets <i>italic</i> only a portion of text"),long(0),EXLISTLib::exHTML);
236. How do I display as italic an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemItalic(var_Items->Add("italic"),VARIANT_TRUE);
235. How do I bold a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellBold(var_Items->Add("bold"),long(0),VARIANT_TRUE);
234. How do I bold a cell or an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("gets <b>bold</b> only a portion of text"),long(0),EXLISTLib::exHTML);
233. How do I bold an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemBold(var_Items->Add("bold"),VARIANT_TRUE);
232. How do I change the foreground color for the item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemForeColor(var_Items->Add("Item"),RGB(255,0,0));
231. How do I change the visual appearance for the item, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); long h = var_Items->Add("Item"); var_Items->PutItemBackColor(0,0x1000000);
230. How do I change the background color for the item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemBackColor(var_Items->Add("Item"),RGB(255,0,0));
229. How do I associate an extra data to an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemData(var_Items->Add("item"),"your extra data");
228. How do I programmatically edit a cell
// Click event - Occurs when the user presses and then releases the left mouse button over the list control.
void OnClickList1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetItems()->Edit(0->GetFocusItem(),long(0));
}
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutAllowEdit(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
var_Items->Add("");
227. How can I ensure or scroll the control so the item fits the control's client area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); long h = spList1->GetItems()->Add("item"); spList1->GetItems()->EnsureVisibleItem(h);
226. How can I remove or delete all items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); spList1->GetItems()->Add("removed item"); spList1->GetItems()->RemoveAll();
225. How can I remove or delete an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); long h = spList1->GetItems()->Add("removed item"); spList1->GetItems()->Remove(h);
224. How can I add or insert an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); spList1->GetColumns()->Add(L"C2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("Cell 1"),long(1),"Cell 2"); long h = var_Items->Add("Cell 3"); var_Items->PutCaption(h,long(1),"Cell 4");
223. How can I add or insert an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Default"); spList1->GetItems()->Add("new item");
222. How can I get the columns as they are shown in the control's sortbar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
ObjectPtr var_Object = ((ObjectPtr)(spList1->GetColumns()->GetItemBySortPosition(long(0))));
221. How can I access the properties of a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"A"); spList1->GetColumns()->GetItem("A")->PutHeaderBold(VARIANT_TRUE);
220. How can I remove all the columns
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Clear();
219. How can I remove a column
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Remove("A");
218. How can I get the number or the count of columns
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
long var_Count = spList1->GetColumns()->GetCount();
217. How can I change the font for all cells in the entire column
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
f->PutName(L"Tahoma");
f->PutSize(_variant_t(long(12)));
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));
216. How can I change the background color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBackColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
215. How can I change the foreground color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
214. How can I show as strikeout all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
213. How can I underline all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutUnderline(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
212. How can I show in italic all data in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutItalic(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
211. How can I bold the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
210. How can I display a computed column and highlight some values that are negative or less than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"A"); spList1->GetColumns()->Add(L"B"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2)); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20)); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"%2 > 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2));
209. Can I display a computed column so it displays the VAT, or SUM
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"A"); spList1->GetColumns()->Add(L"B"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2)); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20));
208. How can I show a column that adds values in the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"A"); spList1->GetColumns()->Add(L"B"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"A+B")))->PutComputedField(L"%0 + %1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2)); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20));
207. Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter"))); var_Column->PutFilterOnType(VARIANT_TRUE); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutAutoSearch(EXLISTLib::exContains); spList1->GetItems()->Add("Canada"); spList1->GetItems()->Add("USA");
206. Is there any function to filter the control's data as I type, something like filter on type
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter"))); var_Column->PutFilterOnType(VARIANT_TRUE); var_Column->PutDisplayFilterButton(VARIANT_TRUE); spList1->GetItems()->Add("Canada"); spList1->GetItems()->Add("USA");
205. How can I programmatically filter a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exNonBlanks); spList1->GetItems()->Add(vtMissing); spList1->GetItems()->Add("not empty"); spList1->ApplyFilter();
204. How can I show or display the control's filter
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
203. How can I customize the items being displayed in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Custom Filter"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE); var_Column->PutCustomFilter(_bstr_t("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||") + "Text Documents (*.log,*.txt)||*.txt|*.log"); var_Column->PutFilterType(EXLISTLib::exPattern); var_Column->PutFilter(L"*.xls"); spList1->GetItems()->Add("excel.xls"); spList1->GetItems()->Add("word.doc"); spList1->GetItems()->Add("pp.pps"); spList1->GetItems()->Add("text.txt"); spList1->ApplyFilter();
202. How can I change the order or the position of the columns in the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutSortBarColumnWidth(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutSortOrder(EXLISTLib::SortAscending); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutSortOrder(EXLISTLib::SortDescending); spList1->GetColumns()->GetItem("C2")->PutSortPosition(0);
201. How do I arrange my columns on multiple levels
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 4")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey("2"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey("2"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey("2"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 4")))->PutLevelKey("2"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E")))->PutWidth(32);
200. How do I arrange my columns on multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHeaderHeight(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutHTMLCaption(L"Line 1<br>Line 2");
199. How can I display all cells using HTML format
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"HTML")))->PutDef(EXLISTLib::exCaptionFormat,long(1)); spList1->GetItems()->Add(_bstr_t("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></fon") + "t>.");
198. How can I display all cells using multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"SingleLine")))->PutDef(EXLISTLib::exCellSingleLine,VARIANT_TRUE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("This is a bit of long text that should break the line"),long(1),"this is a bit of long text that's displayed on a single line");
197. How do change the vertical alignment for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"VAlign")))->PutDef(EXLISTLib::exCellVAlignment,long(2)); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("This is a bit of long text that should break the line"),long(1),"bottom"); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add("This is a bit of long text that should break the line"),long(1),"bottom");
196. How do change the foreground color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ForeColor")))->PutDef(EXLISTLib::exCellForeColor,long(255)); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
195. How do change the background color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"BackColor")))->PutDef(EXLISTLib::exCellBackColor,long(255)); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
194. How do I show buttons for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Button"))); var_Column->PutDef(EXLISTLib::exCellHasButton,VARIANT_TRUE); var_Column->PutDef(EXLISTLib::exCellHasRadioButton | EXLISTLib::exCellHasButton,VARIANT_TRUE); spList1->GetItems()->Add(" Button 1 "); spList1->GetItems()->Add(" Button 2 ");
193. How do I show buttons for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Button")))->PutDef(EXLISTLib::exCellHasButton,VARIANT_TRUE); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
192. How do I display radio buttons for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Radio")))->PutDef(EXLISTLib::exCellHasRadioButton,VARIANT_TRUE); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
191. How do I display checkboxes for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Check")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
190. How can I display a tooltip when the cursor hovers the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tooltip")))->PutToolTip(L"This is a bit of text that is shown when user hovers the column.");
189. Is there any function to assign a key to a column instead using its name or capion
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Data")))->PutKey(L"DKey"); spList1->GetColumns()->GetItem("DKey")->PutCaption(L"new caption");
188. Is there any function to assign any extra data to a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Data")))->PutData("your extra data");
187. By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Sort")))->PutDefaultSortOrder(VARIANT_TRUE);
186. How can I specify the maximum width for the column, if I use WidthAutoResize property
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Auto"))); var_Column->PutWidthAutoResize(VARIANT_TRUE); var_Column->PutMinWidthAutoResize(32); var_Column->PutMaxWidthAutoResize(128); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
185. How can I specify the minimum width for the column, if I use WidthAutoResize property
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Auto"))); var_Column->PutWidthAutoResize(VARIANT_TRUE); var_Column->PutMinWidthAutoResize(32); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
184. Is there any option to resize the column based on its data, captions
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"A")))->PutWidthAutoResize(VARIANT_TRUE); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
183. How can I align the icon in the column's header in the center
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L""))); var_Column->PutHeaderImage(1); var_Column->PutHeaderImageAlignment(EXLISTLib::CenterAlignment);
182. How do I align the icon in the column's header to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName"))); var_Column->PutHeaderImage(1); var_Column->PutHeaderImageAlignment(EXLISTLib::RightAlignment);
181. How do I show or hide the sorting icons, but still need sorting
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Sorted")))->PutSortOrder(EXLISTLib::SortAscending); spList1->GetColumns()->GetItem(long(0))->PutDisplaySortIcon(VARIANT_FALSE);
180. How do I enable or disable the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"C1"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Disabled")))->PutEnabled(VARIANT_FALSE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(0)),long(1),"0.1"); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add(long(1)),long(1),"1.1");
179. How do I disable drag and drop columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutAllowDragging(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutAllowDragging(VARIANT_FALSE);
178. How do I disable resizing a column at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Unsizable")))->PutAllowSizing(VARIANT_FALSE); spList1->GetColumns()->Add(L"C2"); spList1->GetColumns()->Add(L"C3"); spList1->GetColumns()->Add(L"C4");
177. How can I align the column to the right, and its caption too
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutAlignment(EXLISTLib::RightAlignment); var_Column->PutHeaderAlignment(EXLISTLib::RightAlignment); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
176. How can I align the column to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutAlignment(EXLISTLib::RightAlignment); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
175. How do I change the column's caption
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutCaption(L"new caption");
174. Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFormatAnchor(VARIANT_FALSE,L"<b><u><fgcolor=880000> </fgcolor></u></b>"); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("Just an <a1>anchor</a> element ..."),long(0),EXLISTLib::exHTML); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaptionFormat(var_Items1->Add("Just another <a2>anchor</a> element ..."),long(0),EXLISTLib::exHTML); spList1->GetItems()->Add("next item");
173. Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFormatAnchor(VARIANT_TRUE,L"<b><u><fgcolor=FF0000> </fgcolor></u></b>"); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("Just an <a1>anchor</a> element ..."),long(0),EXLISTLib::exHTML); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaptionFormat(var_Items1->Add("Just another <a2>anchor</a> element ..."),long(0),EXLISTLib::exHTML);
172. Can I change the font for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); spList1->PutToolTipWidth(364); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>");
171. Can I change the font for the tooltip
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr var_StdFont = spList1->GetToolTipFont(); var_StdFont->PutName(L"Tahoma"); var_StdFont->PutSize(_variant_t(long(14))); spList1->PutToolTipWidth(364); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
170. Can I change the order of the buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollOrderParts(EXLISTLib::exHScroll,L"t,l,r"); spList1->PutScrollOrderParts(EXLISTLib::exVScroll,L"t,l,r"); spList1->PutScrollBars(EXLISTLib::DisableBoth);
169. The thumb size seems to be very small. Can I make it bigger
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutWidth(256); spList1->PutScrollThumbSize(EXLISTLib::exHScroll,64);
168. How can I display my text on the scroll bar, using a different font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exThumbPart,L"This is <s><font Tahoma;12> just </font></s> text"); spList1->PutColumnAutoResize(VARIANT_FALSE); spList1->PutScrollHeight(20); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutWidth(256);
167. How can I display my text on the scroll bar, using a different font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exThumbPart,L"This is just a text"); spList1->GetScrollFont(EXLISTLib::exHScroll)->PutSize(_variant_t(long(12))); spList1->PutColumnAutoResize(VARIANT_FALSE); spList1->PutScrollHeight(20); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutWidth(256);
166. How can I display my text on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exThumbPart,L"this is just a text"); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutWidth(256);
165. How do I enlarge or change the size of the control's scrollbars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollHeight(18); spList1->PutScrollWidth(18); spList1->PutScrollButtonWidth(18); spList1->PutScrollButtonHeight(18); spList1->PutScrollBars(EXLISTLib::DisableBoth);
164. How do I assign a tooltip to a scrollbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollToolTip(EXLISTLib::exHScroll,L"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar"); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutWidth(256); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutWidth(256);
163. How do I assign an icon to the button in the scrollbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exLeftB1Part,VARIANT_TRUE); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exLeftB1Part,L"<img>1</img>"); spList1->PutScrollHeight(18); spList1->PutScrollButtonWidth(18); spList1->PutScrollBars(EXLISTLib::DisableNoHorizontal);
162. I need to add a button in the scroll bar. Is this possible
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exLeftB1Part,VARIANT_TRUE); spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exLeftB1Part,L"1"); spList1->PutScrollBars(EXLISTLib::DisableNoHorizontal);
161. Can I display an additional buttons in the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exLeftB1Part,VARIANT_TRUE); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exLeftB2Part,VARIANT_TRUE); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exRightB6Part,VARIANT_TRUE); spList1->PutScrollPartVisible(EXLISTLib::exHScroll,EXLISTLib::exRightB5Part,VARIANT_TRUE); spList1->PutScrollBars(EXLISTLib::DisableNoHorizontal);
160. How can I display a custom size picture to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDefaultItemHeight(48); spList1->GetColumns()->Add(L"C1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellPicture(var_Items->Add("Text"),long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
159. How can I display a multiple pictures to a cell or item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDefaultItemHeight(48); spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutHTMLPicture(L"pic2","c:\\exontrol\\images\\auction.gif"); spList1->GetColumns()->Add(L"C1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaptionFormat(var_Items->Add("<img>pic1</img> Text <img>pic2</img> another text ..."),long(0),EXLISTLib::exHTML);
158. How do I change the column's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1)); spList1->GetColumns()->Add(L"N1"); spList1->GetColumns()->Add(L"N2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2)); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add(long(3)),long(1),long(3)); EXLISTLib::IItemsPtr var_Items2 = spList1->GetItems(); var_Items2->PutCaption(var_Items2->Add(long(10)),long(1),long(11)); EXLISTLib::IItemsPtr var_Items3 = spList1->GetItems(); var_Items3->PutCaption(var_Items3->Add(long(13)),long(1),long(31)); spList1->PutSearchColumnIndex(1);
157. How do I change the item's foreground color for numbers between an interval - Range
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 >= 2 and %0 <= 10",vtMissing)->PutForeColor(RGB(255,0,0)); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
156. How do I change the item's background color for numbers less than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 < 10",vtMissing)->PutBackColor(RGB(255,0,0)); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
155. How do I underline the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutUnderline(VARIANT_TRUE); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
154. How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutStrikeOut(VARIANT_TRUE); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
153. How do I highlight in italic the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutItalic(VARIANT_TRUE); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
152. How do I highlight in bold the numbers greater than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetConditionalFormats()->Add(L"%0 >= 10",vtMissing)->PutBold(VARIANT_TRUE); spList1->GetColumns()->Add(L"Numbers"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(10)); spList1->GetItems()->Add(long(20));
151. Can I use your EBN files to change the visual appearance for radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->PutRadioImage(VARIANT_FALSE,16777216); spList1->PutRadioImage(VARIANT_TRUE,33554432); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Radio")))->PutDef(EXLISTLib::exCellHasRadioButton,VARIANT_TRUE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Radio 1"); var_Items->PutCellState(var_Items->Add("Radio 2"),long(0),1); var_Items->Add("Radio 3");
150. Can I use your EBN files to change the visual appearance for checkbox cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->PutCheckImage(EXLISTLib::Unchecked,16777216); spList1->PutCheckImage(EXLISTLib::Checked,33554432); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Check")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Check 1"); var_Items->PutCellState(var_Items->Add("Check 2"),long(0),1);
149. How do I change the visual aspect for thumb parts in the scroll bars, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spList1->PutBackground(EXLISTLib::exHSThumb,0x1000000); spList1->PutBackground(EXLISTLib::exHSThumbP,0x2000000); spList1->PutBackground(EXLISTLib::exHSThumbH,0x3000000); spList1->PutBackground(EXLISTLib::exVSThumb,0x1000000); spList1->PutBackground(EXLISTLib::exVSThumbP,0x2000000); spList1->PutBackground(EXLISTLib::exVSThumbH,0x3000000); spList1->PutColumnAutoResize(VARIANT_FALSE); spList1->PutScrollBySingleLine(VARIANT_TRUE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(483); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemHeight(var_Items->Add("Item 1"),248); spList1->GetItems()->Add("Item 2");
148. How do I change the visual aspect only for the thumb in the scroll bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spList1->PutBackground(EXLISTLib::exHSThumb,0x1000000); spList1->PutBackground(EXLISTLib::exHSThumbP,0x2000000); spList1->PutBackground(EXLISTLib::exHSThumbH,0x3000000); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(483);
147. I've seen that you can change the visual appearance for the scroll bar. How can I do that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->GetVisualAppearance()->Add(3,"c:\\exontrol\\images\\hot.ebn"); spList1->PutBackground(EXLISTLib::exSBtn,0x1000000); spList1->PutBackground(EXLISTLib::exSBtnP,0x2000000); spList1->PutBackground(EXLISTLib::exSBtnH,0x3000000); spList1->PutBackground(EXLISTLib::exHSBack,RGB(240,240,240)); spList1->PutBackground(EXLISTLib::exVSBack,RGB(240,240,240)); spList1->PutBackground(EXLISTLib::exScrollSizeGrip,RGB(240,240,240)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E4")))->PutWidth(32); spList1->PutColumnAutoResize(VARIANT_FALSE); spList1->PutScrollBars(EXLISTLib::DisableBoth);
146. Is there any option to highligth the column from the cursor - point
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackground(EXLISTLib::exCursorHoverColumn,0x1000000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E4")))->PutWidth(32);
145. How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackground(EXLISTLib::exSelBackColorFilter,0x1000000); spList1->PutBackground(EXLISTLib::exSelForeColorFilter,RGB(255,20,20)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
144. How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->PutBackground(EXLISTLib::exDateHeader,0x1000000); spList1->PutBackground(EXLISTLib::exDateTodayUp,0x1000000); spList1->PutBackground(EXLISTLib::exDateTodayDown,0x2000000); spList1->PutBackground(EXLISTLib::exDateScrollThumb,0x1000000); spList1->PutBackground(EXLISTLib::exDateScrollRange,RGB(230,230,230)); spList1->PutBackground(EXLISTLib::exDateSeparatorBar,RGB(230,230,230)); spList1->PutBackground(EXLISTLib::exDateSelect,0x1000000); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date"))); var_Column->PutFilterType(EXLISTLib::exDate); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE);
143. How do I change the visual aspect of the close button in the filter bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackground(EXLISTLib::exFooterFilterBarButton,0x1000000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")))->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
142. How do I change the visual aspect of buttons in the cell, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->PutBackground(EXLISTLib::exCellButtonUp,0x1000000); spList1->PutBackground(EXLISTLib::exCellButtonDown,0x2000000); spList1->PutSelForeColor(RGB(0,0,0)); spList1->PutShowFocusRect(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutDef(EXLISTLib::exCellHasButton,VARIANT_TRUE); spList1->GetItems()->Add("Button 1"); spList1->GetItems()->Add("Button 2"); spList1->GetColumns()->Add(L"Column 2");
141. How do I change the visual aspect of the drop down filter button, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackground(EXLISTLib::exHeaderFilterBarButton,0x1000000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);
140. How do I enable resizing the columns at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutColumnsAllowSizing(VARIANT_TRUE); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutHeaderVisible(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column 1"); spList1->GetColumns()->Add(L"Column 2"); spList1->PutDrawGridLines(EXLISTLib::exVLines); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("Item 1"),long(1),"Sub Item 1"); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add("Item 2"),long(1),"Sub Item 2");
139. How can I sort by multiple columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSort(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutSortOrder(EXLISTLib::SortAscending); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutSortOrder(EXLISTLib::SortDescending); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C3")))->PutSortOrder(EXLISTLib::SortAscending);
138. How can I add several columns to control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutSortBarColumnWidth(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutSortOrder(EXLISTLib::SortAscending); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutSortOrder(EXLISTLib::SortDescending);
137. How can I change the width of the columns being displayed in the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutSortBarColumnWidth(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutSortOrder(EXLISTLib::SortAscending); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutSortOrder(EXLISTLib::SortDescending);
136. How can I change the height of the sort bar's
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutSortBarHeight(48);
135. How can I change the sort bar's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutForeColorSortBar(RGB(255,0,0));
134. How can I change the visual appearance of the control's sort bar, using EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn"); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutBackColorSortBar(0x1000000); spList1->PutBackColorSortBarCaption(0x2000000); spList1->PutAppearance(EXLISTLib::None2);
133. How can I change the sort bar's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutBackColorSortBar(RGB(255,0,0)); spList1->PutBackColorSortBarCaption(RGB(128,0,0));
132. How can I change the default caption being displayed in the control's sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortBarVisible(VARIANT_TRUE); spList1->PutSortBarCaption(L"new caption");
131. How can I show the control's sort bar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSortBarVisible(VARIANT_TRUE);
130. How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spList1->PutPictureDisplayLevelHeader(EXLISTLib::Stretch); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E1")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E2")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E3")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E4")))->PutWidth(32);
129. How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))))); spList1->PutPictureDisplayLevelHeader(EXLISTLib::MiddleRight); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E")))->PutWidth(32);
128. How can I display a picture on the control's header, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPictureLevelHeader(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
127. How can I change the header's background color, when multiple levels are displayed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutBackColorLevelHeader(RGB(250,0,0)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
126. Can I programmatically scroll the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDefaultItemHeight(32); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->GetItems()->Add(long(3)); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); spList1->PutScrollPos(VARIANT_TRUE,1);
125. Do you have some function to load data from a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->PutItems(spList1->GetItems(long(0)),vtMissing);
124. Do you have some function to retrieve all items to a safe array
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); spList1->GetItems()->Add(long(1)); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); spList1->GetItems()->Add(long(2)); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); spList1->GetItems()->Add(long(3));
123. How can still display the selected items when the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHideSelection(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 3"); var_Items->Add("Item 1"); var_Items->PutSelectItem(var_Items->Add("Item 2"),VARIANT_TRUE);
122. How can I hide a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Hidden")))->PutVisible(VARIANT_FALSE); spList1->GetColumns()->Add(L"2"); spList1->GetColumns()->Add(L"3"); spList1->GetColumns()->Add(L"4"); spList1->GetColumns()->Add(L"5");
121. How can I ensure that a column is visible and fits the control's client area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"1")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"2")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"3")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"4")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"5")))->PutWidth(128); spList1->GetItems()->EnsureVisibleColumn("5");
120. I've seen that the width of the tooltip is variable. Can I make it larger
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipWidth(328); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip that should be very very very very very very very long");
119. How do I disable showing the tooltip for all control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(0); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
118. How do I let the tooltip being displayed longer
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipPopDelay(10000); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
117. How do I show the tooltip quicker
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutToolTipDelay(1); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
116. How do I change the caption being displayed in the control's filter bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFilterBarCaption(L"your filter caption"); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
115. How do I search case sensitive, using your incremental search feature
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutAutoSearch(VARIANT_TRUE); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXLISTLib::exStartWith); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXLISTLib::exContains); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("text"),long(1),"another text"); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add("text"),long(1),"another text");
114. How do I disable the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutEnabled(VARIANT_FALSE);
113. How do I enable the incremental search feature within a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutAutoSearch(VARIANT_TRUE); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"exStartWith")))->PutAutoSearch(EXLISTLib::exStartWith); ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"exContains")))->PutAutoSearch(EXLISTLib::exContains); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("text"),long(1),"another text"); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutCaption(var_Items1->Add("text"),long(1),"another text");
112. How do I call your x-script language
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->ExecuteTemplate(L"Columns.Add(`Column`)")));
var_Column->PutHeaderStrikeOut(VARIANT_TRUE);
var_Column->PutHeaderBold(VARIANT_TRUE);
111. How do I call your x-script language
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutTemplate(L"Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`");
110. How do I show alternate rows in different background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutBackColorAlternate(RGB(240,240,240)); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); var_Items->Add("Item 4"); var_Items->Add("Item 5");
109. How do I enlarge the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFilterBarDropDownHeight(-320); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterBarDropDownWidth(-320); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
108. How do I filter programatically the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exPattern); var_Column->PutFilter(L"Item*"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add(""); spList1->GetItems()->Add("Item 2"); spList1->ApplyFilter();
107. How do I change the font of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetFilterBarFont()->PutSize(_variant_t(long(20))); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
106. Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutFilterBarBackColor(0x1000000); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
105. How do I change the background color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFilterBarBackColor(RGB(240,240,240)); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
104. How do I change the foreground color of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFilterBarForeColor(RGB(255,0,0)); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
103. How do I change the height of the control's filterbar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFilterBarHeight(32); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
102. How do select only a portion of text when the control starts editing a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutAllowEdit(VARIANT_TRUE); spList1->PutSelStart(1); spList1->PutSelLength(1); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
101. How do I change the header's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutForeColorHeader(RGB(255,0,0)); spList1->GetColumns()->Add(L"Column 1"); spList1->GetColumns()->Add(L"Column 2"); spList1->GetItems()->Add("Item 1");
100. I have a picture on the control's background, the question is how do I draw selection as semi-transparent
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutSelBackMode(EXLISTLib::exTransparent); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
99. It seems that the control uses the TAB key, is there any way to avoid that
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutUseTabKey(VARIANT_FALSE);
98. How do I assign a database to your control, using ADO, ADOR or ADODB objects
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutColumnAutoResize(VARIANT_FALSE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders",_bstr_t("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\S") +
"AMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
97. How do I change the visual appearance effect for the selected item, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutSelBackColor(0x1000000); spList1->PutSelForeColor(RGB(0,0,0)); spList1->PutShowFocusRect(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
96. How do I change the colors for the selected item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSelBackColor(RGB(0,0,0)); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
95. How do I get ride of the rectangle arround focused item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutShowFocusRect(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1));
94. How can I change the control's font
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetFont()->PutName(L"Tahoma"); spList1->GetColumns()->Add(L"Column");
93. I can't scroll to the end of the data. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutScrollBySingleLine(VARIANT_TRUE); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutItemHeight(var_Items->Add(long(0)),13); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems(); var_Items1->PutItemHeight(var_Items1->Add(long(1)),26); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); EXLISTLib::IItemsPtr var_Items2 = spList1->GetItems(); var_Items2->PutItemHeight(var_Items2->Add(long(2)),36); spList1->PutItems(spList1->GetItems(long(0)),vtMissing); EXLISTLib::IItemsPtr var_Items3 = spList1->GetItems(); var_Items3->PutItemHeight(var_Items3->Add(long(3)),48); spList1->PutItems(spList1->GetItems(long(0)),vtMissing);
92. Is there any option to select an item using the right button of the mouse (rclick)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutRClickSelect(VARIANT_TRUE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
91. How do I edit a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutAllowEdit(VARIANT_TRUE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
90. I have FullRowSelect property on False, how do I select a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSelectColumnIndex(1); spList1->PutFullRowSelect(VARIANT_FALSE);
89. How can I scroll columns one by one, not pixel by pixel
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutContinueColumnScroll(VARIANT_FALSE); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"1")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"2")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"3")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"4")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"5")))->PutWidth(128);
88. How can I enable multiple items selection
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSingleSel(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2));
87. How can I programmatically change the column where incremental searching is performed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column 1"); spList1->GetColumns()->Add(L"Column 2"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("Item 1"),long(1),"SubItem 1"); spList1->PutSearchColumnIndex(1);
86. How do I disable the full-row selection in the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutFullRowSelect(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("One"); spList1->GetItems()->Add("Two");
85. Is there any option to specify the height of the items, before adding them
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutDefaultItemHeight(32); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("One"); spList1->GetItems()->Add("Two");
84. How do lock / fix some columns to the control, so I can see them all the time, event if I scroll the columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutCountLockedColumns(1); spList1->PutBackColorLock(RGB(240,240,240)); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Locked")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 1")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 2")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 3")))->PutWidth(128); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("locked"),long(1),"unlocked");
83. How do I change the control's background / foreground color on the locked area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutCountLockedColumns(1); spList1->PutForeColorLock(RGB(240,240,240)); spList1->PutBackColorLock(RGB(128,128,128)); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Locked")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 1")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 2")))->PutWidth(128); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Un-Locked 3")))->PutWidth(128); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("locked"),long(1),"unlocked");
82. How do I change the control's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutForeColor(RGB(120,120,120)); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("item");
81. How do I change the control's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutBackColor(RGB(200,200,200));
80. How do I use my own icons for my radio buttons
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->PutRadioImage(VARIANT_FALSE,1); spList1->PutRadioImage(VARIANT_TRUE,2); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Radio")))->PutDef(EXLISTLib::exCellHasRadioButton,VARIANT_TRUE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Radio 1"); var_Items->PutCellState(var_Items->Add("Radio 2"),long(0),1); var_Items->Add("Radio 3");
79. How do I use my own icons for checkbox cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spList1->PutCheckImage(EXLISTLib::Unchecked,1); spList1->PutCheckImage(EXLISTLib::Checked,2); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Check")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Check 1"); var_Items->PutCellState(var_Items->Add("Check 2"),long(0),1);
78. How do I perform my own sorting when user clicks the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortOnClick(EXLISTLib::exUserSort); spList1->GetColumns()->Add(L"Column"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2");
77. How do I disable sorting a specified column when clicking its header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"1"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"NoSort")))->PutAllowSort(VARIANT_FALSE);
76. How do I disable sorting the columns when clicking the control's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutSortOnClick(EXLISTLib::exNoSort); spList1->GetColumns()->Add(L"1"); spList1->GetColumns()->Add(L"2");
75. How do I put a picture on the center of the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::MiddleCenter);
74. How do I resize/stretch a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::Stretch);
73. How do I put a picture on the control's center right bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::LowerRight);
72. How do I put a picture on the control's center left bottom side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::LowerLeft);
71. How do I put a picture on the control's center top side
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::UpperCenter);
70. How do I put a picture on the control's right top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::UpperRight);
69. How do I put a picture on the control's left top corner
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))))); spList1->PutPictureDisplay(EXLISTLib::UpperLeft);
68. How do I put a picture on the control's background
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutPicture(IPictureDispPtr(((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
67. How do I sort descending a column, and put the sorting icon in the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 1"); var_Items->Add("Item 2"); var_Items->Add("Item 3"); spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortDescending);
66. How do I sort ascending a column, and put the sorting icon in the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("Item 3"); var_Items->Add("Item 1"); var_Items->Add("Item 2"); spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortAscending);
65. How do I perform my own/custom sort, using my extra numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"desc")))->PutSortType(EXLISTLib::SortUserData); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellData(var_Items->Add(long(0)),long(0),long(2)); var_Items->PutCellData(var_Items->Add(long(1)),long(0),long(1)); var_Items->PutCellData(var_Items->Add(long(2)),long(0),long(0)); var_Items->Sort(long(0),VARIANT_FALSE);
64. By default, the column gets sorted as strings, so how do I sort a column by time only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"desc")))->PutSortType(EXLISTLib::SortTime); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("11:00"); var_Items->Add("10:10"); var_Items->Add("12:12"); var_Items->Sort(long(0),VARIANT_FALSE);
63. By default, the column gets sorted as strings, so how do I sort a column by date and time
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"desc")))->PutSortType(EXLISTLib::SortDateTime); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001 11:00"); var_Items->Add("1/1/2001 10:10"); var_Items->Add("1/3/2003"); var_Items->Sort(long(0),VARIANT_FALSE);
62. By default, the column gets sorted as strings, so how do I sort a column by dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"desc")))->PutSortType(EXLISTLib::SortDate); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add("1/1/2001"); var_Items->Add("1/2/2002"); var_Items->Add("1/3/2003"); var_Items->Sort(long(0),VARIANT_FALSE);
61. How do I sort a column by numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"desc")))->PutSortType(EXLISTLib::SortNumeric); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add(long(1)); var_Items->Add(long(5)); var_Items->Add(long(10)); var_Items->Sort(long(0),VARIANT_FALSE);
60. How do I hide the control's header bar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHeaderVisible(VARIANT_FALSE);
59. How do change the visual appearance for the control's header bar, using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spList1->PutBackColorHeader(0x1000000);
58. How do I remove the control's border
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutAppearance(EXLISTLib::None2);
57. How can I get ride/hide of the "Filter For" field
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
56. How do I filter for items that match exactly the specified string
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exFilter); var_Column->PutFilter(L"Item 1"); spList1->GetItems()->Add("Item 1"); spList1->GetItems()->Add("Item 2"); spList1->GetItems()->Add("Item 3"); spList1->ApplyFilter();
55. How can I can I programmatically filter for items with a specified icon assigned
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exImage); var_Column->PutFilter(L"1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellImage(var_Items->Add("Image 1"),long(0),1); var_Items->PutCellImage(var_Items->Add("Image 1"),long(0),1); var_Items->PutCellImage(var_Items->Add("Image 2"),long(0),2); var_Items->PutCellImage(var_Items->Add("Image 3"),long(0),3); spList1->ApplyFilter();
54. How can I can I programmatically filter the checked items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exCheck); var_Column->PutFilter(L"0"); spList1->GetItems()->Add(long(0)); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCellState(var_Items->Add(long(1)),long(0),1); spList1->GetItems()->Add(long(2)); spList1->ApplyFilter();
53. How can I can I filter programmatically the items based on some numerichal rules
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exNumeric); var_Column->PutFilter(L"> 0 <= 1"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2)); spList1->ApplyFilter();
52. How can I can I filter programmatically the items based on a range/interval of dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exDate); var_Column->PutFilter(L"1/1/2001 to 1/1/2002"); spList1->GetItems()->Add("1/1/2001"); spList1->GetItems()->Add("2/1/2002"); spList1->ApplyFilter();
51. How can I can I filter programmatically given a specified pattern using wild characters like * or
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exPattern); var_Column->PutFilter(L"0*"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add("00"); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add("11"); spList1->ApplyFilter();
50. How can I can I select programmatically "Blanks/NonBlanks" option in the column's drop down filter
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->ApplyFilter();
49. How can I display the column's filter
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutDisplayFilterButton(VARIANT_TRUE);
48. How can I show only the vertical scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutColumnAutoResize(VARIANT_TRUE); spList1->PutScrollBars(EXLISTLib::DisableNoVertical); spList1->GetColumns()->Add(L"1"); spList1->GetColumns()->Add(L"2");
47. How can I change the "IsChecked/IsUnchecked" caption in the control's filter bar, when I filter for checked items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exCheck); var_Column->PutFilter(L"0"); spList1->PutDescription(EXLISTLib::exFilterBarIsChecked,L"Check_On"); spList1->PutDescription(EXLISTLib::exFilterBarIsUnchecked,L"Check_Off"); spList1->ApplyFilter();
46. How can I change the "Checked" caption in the drop down filter window, when I filter for checked items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exCheck); spList1->PutDescription(EXLISTLib::exFilterBarChecked,L"with check on"); spList1->PutDescription(EXLISTLib::exFilterBarUnchecked,L"with check off");
45. How can I change the name of the week days in the drop down calendar window, being displayed when I filter items between dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarDateWeekDays,L"Du Lu Ma Mi Jo Vi Si"); spList1->ApplyFilter();
44. How can I change the name of the months in the drop down calendar window, being displayed when I filter items between dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarDateMonths,L"Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre"); spList1->ApplyFilter();
43. Can I change the "Today" caption being displayed in the drop down calendar, when I filter for dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarDateTodayCaption,L"Azi"); spList1->ApplyFilter();
42. The drop down filter window displays a "to" string between two datem when I filter dates. Can I change that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarDateTo,L"->"); spList1->ApplyFilter();
41. How can I filter the items that are between an interval/range of dates
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->ApplyFilter();
40. Can I change the "Date:" caption when the column's drop down filter window is shown
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterDate(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarDate,L"Range"); spList1->ApplyFilter();
39. Can I filter for values using OR - NOT , instead AND operator
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutFilterType(EXLISTLib::exBlanks); EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 3"))); var_Column2->PutDisplayFilterButton(VARIANT_TRUE); var_Column2->PutFilterType(EXLISTLib::exBlanks); spList1->PutFilterCriteria(L"%0 or not %1 and %2"); spList1->ApplyFilter();
38. Can I change the NOT string in the filter bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutFilterType(EXLISTLib::exNonBlanks); spList1->PutFilterCriteria(L"not %0 or %1"); spList1->PutDescription(EXLISTLib::exFilterBarNot,L" ! "); spList1->PutDescription(EXLISTLib::exFilterBarIsNonBlank,L" ! IsBlank"); spList1->ApplyFilter();
37. Can I change the OR string in the filter bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutFilterType(EXLISTLib::exNonBlanks); spList1->PutFilterCriteria(L"%0 or %1"); spList1->PutDescription(EXLISTLib::exFilterBarOr,L" | "); spList1->ApplyFilter();
36. Can I change the AND string in the filter bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutFilterType(EXLISTLib::exNonBlanks); spList1->PutDescription(EXLISTLib::exFilterBarAnd,L" & "); spList1->ApplyFilter();
35. The "IsBlank" caption shown in the control's filterbar when I select "Blanks" or "NonBlanks" items in the column's drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXLISTLib::exBlanks); spList1->PutDescription(EXLISTLib::exFilterBarIsBlank,L"Is Empty"); spList1->PutDescription(EXLISTLib::exFilterBarIsNonBlank,L"Is Not Empty"); spList1->ApplyFilter();
34. Is there any option to remove the tooltip when the cursor hovers the column's drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarFilterTitle,L""); spList1->PutDescription(EXLISTLib::exFilterBarPatternFilterTitle,L""); spList1->PutDescription(EXLISTLib::exFilterBarTooltip,L""); spList1->PutDescription(EXLISTLib::exFilterBarPatternTooltip,L""); spList1->PutDescription(EXLISTLib::exFilterBarFilterForTooltip,L""); spList1->PutDescription(EXLISTLib::exFilterBarDateTooltip,L""); spList1->PutDescription(EXLISTLib::exFilterBarDateTitle,L"");
33. How can I change the "Filter For" caption in the column's drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarFilterForCaption,L"new caption");
32. Can I remove the "All", "Blanks" and "NonBlanks" items in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarAll,L""); spList1->PutDescription(EXLISTLib::exFilterBarBlanks,L""); spList1->PutDescription(EXLISTLib::exFilterBarNonBlanks,L"");
31. How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE); spList1->PutDescription(EXLISTLib::exFilterBarAll,L"new name for (All)");
30. How can I change the position of the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column 1"); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2")))->PutPosition(0);
29. Can I make strikeout the column's header
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHeaderStrikeOut(VARIANT_TRUE);
28. How can I apply an strikeout font only a portion of the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<s>Col</s>umn 1");
27. How can I get underlined only a portion of column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<u>Col</u>umn 1");
26. How can I underline the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHeaderUnderline(VARIANT_TRUE);
25. How can I apply an italic font only a portion of the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<i>Col</i>umn 1");
24. Is there any option to make italic the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHeaderItalic(VARIANT_TRUE);
23. How can I bold only a portion of the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<b>Col</b>umn 1");
22. Is there any option to bold the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHeaderBold(VARIANT_TRUE);
21. Is there any option to change the color for the grid lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L""); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->PutGridLineColor(RGB(255,0,0));
20. Can I change the font to display the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHeaderHeight(34); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<font Tahoma;14>Column</font> 1");
19. Can I change the height of the header bar
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHeaderHeight(32);
18. Can I display multiple icons to the column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"1<img>1</img> 2 <img>2</img>...");
17. How can I show the control's grid lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->PutDrawGridLines(EXLISTLib::exAllLines); spList1->GetColumns()->Add(L"Column 1"); spList1->GetColumns()->Add(L"Column 2"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2));
16. How can I assign a different background color for the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutDef(EXLISTLib::exCellBackColor,long(255)); spList1->GetColumns()->Add(L"Column 2"); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2));
15. How can I assign a check box for a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->GetColumns()->Add(L"Column 1"); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->Add(long(0)); var_Items->PutCellHasCheckBox(var_Items->Add(long(1)),long(0),VARIANT_TRUE); var_Items->Add(long(2));
14. How can I assign checkboxes for the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE); spList1->GetItems()->Add(long(0)); spList1->GetItems()->Add(long(1)); spList1->GetItems()->Add(long(2));
13. How can I show both scrollbars
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBars(EXLISTLib::DisableBoth);
12. How can I change the column's width
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutColumnAutoResize(VARIANT_FALSE); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 1")))->PutWidth(64); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column 2")))->PutWidth(128);
11. How can I show or hide a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Hidden")))->PutVisible(VARIANT_FALSE);
10. How can I hide the searching column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutMarkSearchColumn(VARIANT_FALSE); spList1->GetColumns()->Add(L"Column 1"); spList1->GetColumns()->Add(L"Column 2"); spList1->GetItems()->Add(vtMissing);
9. Can I disable sorting a column, when the user clicks the column's header, or drag it to the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Unsortable")))->PutAllowSort(VARIANT_FALSE); spList1->GetColumns()->Add(L"Sortable");
8. Is there any option to align the header to the left and the data to the right
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Left")))->PutAlignment(EXLISTLib::LeftAlignment); EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Right"))); var_Column->PutAlignment(EXLISTLib::RightAlignment); var_Column->PutHeaderAlignment(EXLISTLib::RightAlignment); EXLISTLib::IItemsPtr var_Items = spList1->GetItems(); var_Items->PutCaption(var_Items->Add("left"),long(1),"right");
7. Can I displays a custom size picture to column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spList1->PutHeaderHeight(48); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");
6. How can I insert an icon to column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>1</img> Icon");
5. How can I insert an icon to column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHeaderImage(1);
4. How can I use HTML format in column's header
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn");
3. How can I change/rename the column's name
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutCaption(L"NewName");
2. How can I add multiple columns
/* Copy and paste the following directives to your header file as it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library' #import <ExList.dll> using namespace EXLISTLib; */ EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown(); EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns(); var_Columns->Add(L"Column 1"); var_Columns->Add(L"Column 2");
1. How can I add a new column
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
#import <ExList.dll>
using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"ColumnName");