454. How can I add a horizontal scroll bar
excombobox1.BeginUpdate(); excombobox1.ScrollBySingleLine = true; excombobox1.ColumnAutoResize = false; excombobox1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column); var_Column.Width = 512; var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine,false); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Exontrol is devoted to create innovative user interface components for Windows applications, on" + " COM or .NET platforms, since 1999. \"eXontrol\" comes from e(s)pecial (c)ontrol, where sc makes" + " the X. We are a vendor not a reseller, and this is the single site where you can try or buy our" + " products. If you are tired of looking for \"powerful\" components now it's time to show you rea" + "l components. No registration required, no nag screens, no limitations, unlimited evaluation tim" + "e."); var_Items.AddItem("A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box an" + "d a single-line textbox, allowing the user either to type a value directly into the control or c" + "hoose from the list of existing options."); excombobox1.EndUpdate();
453. Does the control have the option to have a horizontal scroll to show entries which are longer than the display
excombobox1.BeginUpdate(); excombobox1.ColumnAutoResize = false; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).Width = 512; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Exontrol is devoted to create innovative user interface components for Windows applications, on" + " COM or .NET platforms, since 1999. \"eXontrol\" comes from e(s)pecial (c)ontrol, where sc makes" + " the X. We are a vendor not a reseller, and this is the single site where you can try or buy our" + " products. If you are tired of looking for \"powerful\" components now it's time to show you rea" + "l components. No registration required, no nag screens, no limitations, unlimited evaluation tim" + "e."); var_Items.AddItem("A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box an" + "d a single-line textbox, allowing the user either to type a value directly into the control or c" + "hoose from the list of existing options."); excombobox1.EndUpdate();
452. Is it possible to auto-numbering the children items but still keeps the position after filtering
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Items") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "Child 2"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Pos.1") as exontrol.EXCOMBOBOXLib.Column); var_Column1.FormatColumn = "1 ropos ''"; var_Column1.Position = 0; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Pos.2") as exontrol.EXCOMBOBOXLib.Column); var_Column2.FormatColumn = "1 ropos ':'"; var_Column2.Position = 1; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Pos.3") as exontrol.EXCOMBOBOXLib.Column); var_Column3.FormatColumn = "1 ropos ':|A-Z'"; var_Column3.Position = 2; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("Pos.4") as exontrol.EXCOMBOBOXLib.Column); var_Column4.FormatColumn = "1 ropos '|A-Z|'"; var_Column4.Position = 3; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column5 = (excombobox1.Columns.Add("Pos.5") as exontrol.EXCOMBOBOXLib.Column); var_Column5.FormatColumn = "'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'"; var_Column5.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 4; var_Column5.Width = 32; var_Column5.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column6 = (excombobox1.Columns.Add("Pos.6") as exontrol.EXCOMBOBOXLib.Column); var_Column6.FormatColumn = "'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column6.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column6.Position = 5; var_Column6.Width = 48; var_Column6.AllowSizing = false; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); excombobox1.ApplyFilter(); excombobox1.EndUpdate();
451. How do I prevent scrolling the control's data after user does the sort
excombobox1.EnsureOnSort = false; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); excombobox1.PutItems(excombobox1.GetItems(0),null); excombobox1.PutItems(excombobox1.GetItems(0),null); excombobox1.PutItems(excombobox1.GetItems(0),null); excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending;
450. Is it possible to auto-numbering the children items too
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Pos.1") as exontrol.EXCOMBOBOXLib.Column); var_Column.FormatColumn = "1 rpos ''"; var_Column.Position = 0; var_Column.Width = 32; var_Column.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Pos.2") as exontrol.EXCOMBOBOXLib.Column); var_Column1.FormatColumn = "1 rpos ':'"; var_Column1.Position = 1; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Pos.3") as exontrol.EXCOMBOBOXLib.Column); var_Column2.FormatColumn = "1 rpos ':|A-Z'"; var_Column2.Position = 2; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Pos.4") as exontrol.EXCOMBOBOXLib.Column); var_Column3.FormatColumn = "1 rpos '|A-Z|'"; var_Column3.Position = 3; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("Pos.5") as exontrol.EXCOMBOBOXLib.Column); var_Column4.FormatColumn = "'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'"; var_Column4.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column4.Position = 4; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXCOMBOBOXLib.Column var_Column5 = (excombobox1.Columns.Add("Pos.6") as exontrol.EXCOMBOBOXLib.Column); var_Column5.FormatColumn = "'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column5.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 5; var_Column5.Width = 48; var_Column5.AllowSizing = false; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); excombobox1.EndUpdate();
449. How can I show the child items with no identation
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesOutside; excombobox1.Indent = 12; excombobox1.HasLines = exontrol.EXCOMBOBOXLib.HierarchyLineEnum.exThinLine; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3");
448. Is there other ways of showing the hierarchy lines (exGroupLinesAtRoot)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
447. Is there other ways of showing the hierarchy lines (exGroupLinesOutside)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesOutside; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3");
446. Is there other ways of showing the hierarchy lines (exGroupLinesInsideLeaf)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesInsideLeaf; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
445. Is there other ways of showing the hierarchy lines (exGroupLinesInside)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesInside; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
444. Is there other ways of showing the hierarchy lines (exGroupLines)
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLines; excombobox1.Indent = 12; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(var_Items.InsertItem(h,0,"Child 2"),0,"SubChild 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
443. Is it possible display numbers in the same format no matter of regional settings in the control panel
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default positive)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default negative)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); excombobox1.EndUpdate();
442. Is it possible to add a 0 for numbers less than 1 instead .7 to show 0.8
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '|||||0') + ' <fgcolor=808080>(Display no leading zeros)'"); excombobox1.EndUpdate();
441. How can I specify the format for negative numbers
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"); excombobox1.EndUpdate();
440. Is it possible to change the grouping character when display numbers
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '|||-') + ' <fgcolor=808080>(grouping character is -)'"); excombobox1.EndUpdate();
439. How can I display numbers with 2 digits in each group
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '||2') + ' <fgcolor=808080>(grouping by 2 digits)'"); excombobox1.EndUpdate();
438. How can I display my numbers using a different decimal separator
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '|;') + ' <fgcolor=808080>(decimal separator is <b>;</b>)'"); excombobox1.EndUpdate();
437. Is it possible to display the numbers using 3 (three) digits
excombobox1.BeginUpdate(); (excombobox1.Columns.Add("Def") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '3') + ' <fgcolor=808080>(3 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 2) + ' <fgcolor=808080>(2 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 1) + ' <fgcolor=808080>(1 digit)'"); excombobox1.EndUpdate();
436. Is it possible to format numbers
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Name"); exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("A") as exontrol.EXCOMBOBOXLib.Column); var_Column.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 36; var_Column.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXCOMBOBOXLib.Column var_Column1 = (var_Columns.Add("B") as exontrol.EXCOMBOBOXLib.Column); var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column1.AllowSizing = false; var_Column1.Width = 36; var_Column1.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXCOMBOBOXLib.Column var_Column2 = (var_Columns.Add("C") as exontrol.EXCOMBOBOXLib.Column); var_Column2.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column2.AllowSizing = false; var_Column2.Width = 36; var_Column2.FormatColumn = "len(value) ? value + ' ='"; exontrol.EXCOMBOBOXLib.Column var_Column3 = (var_Columns.Add("A+B+C") as exontrol.EXCOMBOBOXLib.Column); var_Column3.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; var_Column3.Width = 64; var_Column3.ComputedField = "dbl(%1)+dbl(%2)+dbl(%3)"; var_Column3.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' " + ") : (dbl(value)>0 ? '<fgcolor=0000FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column3.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.set_CellCaptionFormat(h,4,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exComputedField); int h1 = var_Items.InsertItem(h,0,"Child 1"); var_Items.set_CellCaption(h1,1,7); var_Items.set_CellCaption(h1,2,3); var_Items.set_CellCaption(h1,3,1); h1 = var_Items.InsertItem(h,0,"Child 2"); var_Items.set_CellCaption(h1,1,-2); var_Items.set_CellCaption(h1,2,-2); var_Items.set_CellCaption(h1,3,-4); h1 = var_Items.InsertItem(h,0,"Child 3"); var_Items.set_CellCaption(h1,1,2); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,-4); var_Items.set_ExpandItem(h,true); excombobox1.EndUpdate();
435. Is it possible to limit the height of the item while resizing
// InsertItem event - Occurs after a new item has been inserted to Items collection. private void excombobox1_InsertItem(object sender,int Item) { excombobox1.Items.set_ItemMinHeight(Item,18); excombobox1.Items.set_ItemMaxHeight(Item,72); } //this.excombobox1.InsertItem += new exontrol.EXCOMBOBOXLib.exg2antt.InsertItemEventHandler(this.excombobox1_InsertItem); excombobox1.BeginUpdate(); excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeItem; excombobox1.ScrollBySingleLine = false; excombobox1.BackColorAlternate = Color.FromArgb(240,240,240); excombobox1.Columns.Add("Names"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Mantel"); var_Items.AddItem("Mechanik"); var_Items.AddItem("Motor"); var_Items.AddItem("Murks"); var_Items.AddItem("Märchen"); var_Items.AddItem("Möhren"); var_Items.AddItem("Mühle"); excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending; excombobox1.EndUpdate();
434. How can I simulate displaying groups
excombobox1.HasLines = exontrol.EXCOMBOBOXLib.HierarchyLineEnum.exNoLine; excombobox1.ScrollBySingleLine = true; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Name"); var_Columns.Add("A"); var_Columns.Add("B"); var_Columns.Add("C"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth); var_Items.set_ItemHeight(h,24); var_Items.set_SortableItem(h,false); int h1 = var_Items.InsertItem(h,0,"Child 1"); var_Items.set_CellCaption(h1,1,1); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,3); h1 = var_Items.InsertItem(h,0,"Child 2"); var_Items.set_CellCaption(h1,1,4); var_Items.set_CellCaption(h1,2,5); var_Items.set_CellCaption(h1,3,6); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Group 2"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth); var_Items.set_ItemHeight(h,24); var_Items.set_SortableItem(h,false); h1 = var_Items.InsertItem(h,0,"Child 1"); var_Items.set_CellCaption(h1,1,1); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,3); h1 = var_Items.InsertItem(h,0,"Child 2"); var_Items.set_CellCaption(h1,1,4); var_Items.set_CellCaption(h1,2,5); var_Items.set_CellCaption(h1,3,6); var_Items.set_ExpandItem(h,true);
433. How can I specify an item to be always the first item
excombobox1.BeginUpdate(); excombobox1.TreeColumnIndex = -1; (excombobox1.Columns.Add("Numbers") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); var_Items.AddItem(4); int h = var_Items.AddItem("first"); var_Items.set_ItemPosition(h,0); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment); var_Items.set_SortableItem(h,false); var_Items.SortChildren(0,0,false); excombobox1.EndUpdate();
432. How can I specify an item to be always the last item
excombobox1.BeginUpdate(); excombobox1.TreeColumnIndex = -1; (excombobox1.Columns.Add("Numbers") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); var_Items.AddItem(4); int h = var_Items.AddItem("last"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment); var_Items.set_SortableItem(h,false); var_Items.SortChildren(0,0,true); excombobox1.EndUpdate();
431. Can I allow sorting only the child items
excombobox1.BeginUpdate(); excombobox1.Columns.Add("Childs"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.set_SortableItem(h,false); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.set_SortableItem(h,false); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); excombobox1.EndUpdate();
430. Can I specify a terminal item so it will mark the end of childs
excombobox1.BeginUpdate(); excombobox1.ScrollBySingleLine = true; excombobox1.Columns.Add("P1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.InsertItem(h,"",""); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,2); var_Items.set_SelectableItem(h,false); var_Items.set_SortableItem(h,false); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.InsertItem(h,"",""); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,2); var_Items.set_SelectableItem(h,false); var_Items.set_SortableItem(h,false); excombobox1.EndUpdate();
429. Is it possible to specify an item being unsortable so its position won't be changed after sorting
excombobox1.BeginUpdate(); excombobox1.TreeColumnIndex = -1; (excombobox1.Columns.Add("Numbers") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); var_Items.AddItem(4); int h = var_Items.AddItem("top 3"); var_Items.set_ItemPosition(h,3); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment); var_Items.set_SortableItem(h,false); var_Items.SortChildren(0,0,false); excombobox1.EndUpdate();
428. Can I specify an item to be a separator
excombobox1.BeginUpdate(); excombobox1.TreeColumnIndex = -1; excombobox1.SortOnClick = exontrol.EXCOMBOBOXLib.SortOnClickEnum.exNoSort; excombobox1.Columns.Add("Numbers"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); int h = var_Items.AddItem("separator"); var_Items.set_SelectableItem(h,false); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.ThinLine); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.AddItem(3); var_Items.AddItem(4); excombobox1.EndUpdate();
427. How can I collapse all items
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(0,false); excombobox1.EndUpdate();
426. How can I expand all items
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Items"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(0,true); excombobox1.EndUpdate();
425. Is it possible to specify the cell's value but still want to display some formatted text instead the value
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; excombobox1.Columns.Add("Value"); excombobox1.Columns.Add("FormatCell"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(1); var_Items.set_CellCaption(h,1,12); var_Items.set_FormatCell(h,1,"currency(value)"); h = var_Items.AddItem(Convert.ToDateTime("1/1/2001")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001")); var_Items.set_CellCaptionFormat(h,1,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML); var_Items.set_FormatCell(h,1,"longdate(value) replace '2001' with '<b>2001</b>'"); excombobox1.EndUpdate();
424. How can I change the foreground color for a particular column
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderForeColor,8439039); var_Columns.Add("Column 3");
423. How can I change the background color for a particular column
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderBackColor,8439039); var_Columns.Add("Column 3");
422. How can I display the column using currency format and enlarge the font for certain values
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("9.94"); var_Items.AddItem("11.94"); var_Items.AddItem("1000");
421. How can I highlight only parts of the cells
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
420. How can I get the number of occurrences of a specified string in the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("occurrences") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "lower(%0) count 'o'"; var_Column.FormatColumn = "'contains ' + value + ' of \\'o\\' chars'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1 oooof the root"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
419. How can I display dates in my format
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0" + ") +')'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/21/2001")); var_Items.AddItem(Convert.ToDateTime("2/22/2002")); var_Items.AddItem(Convert.ToDateTime("3/13/2003")); var_Items.AddItem(Convert.ToDateTime("4/24/2004"));
418. How can I display dates in short format
(excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "shortdate(value)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001")); var_Items.AddItem(Convert.ToDateTime("2/2/2002")); var_Items.AddItem(Convert.ToDateTime("3/3/2003")); var_Items.AddItem(Convert.ToDateTime("4/4/2004"));
417. How can I display dates in long format
(excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "longdate(value)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001")); var_Items.AddItem(Convert.ToDateTime("2/2/2002")); var_Items.AddItem(Convert.ToDateTime("3/3/2003")); var_Items.AddItem(Convert.ToDateTime("4/4/2004"));
416. How can I display only the right part of the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Right") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "%0 right 2"; var_Column.FormatColumn = "'\"' + value + '\"'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"SChild 3"); var_Items.set_ExpandItem(h,true);
415. How can I display true or false instead 0 and -1
(excombobox1.Columns.Add("Boolean") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "value != 0 ? 'true' : 'false'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(true); var_Items.AddItem(false); var_Items.AddItem(true); var_Items.AddItem(0); var_Items.AddItem(1);
414. How can I display icons or images instead numbers
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Icons") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3);
413. How can I display the column using currency
(excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "currency(dbl(value))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("0"); var_Items.AddItem(5); var_Items.AddItem("10000.99");
412. How can I filter programatically using more columns
excombobox1.BeginUpdate(); excombobox1.MarkSearchColumn = false; exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Car"); var_Columns.Add("Equipment"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); exontrol.EXCOMBOBOXLib.Column var_Column = excombobox1.Columns["Car"]; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter; var_Column.Filter = "Mazda"; exontrol.EXCOMBOBOXLib.Column var_Column1 = excombobox1.Columns["Equipment"]; var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern; var_Column1.Filter = "*ABS*|*ESP*"; excombobox1.ApplyFilter(); excombobox1.EndUpdate();
411. I need a combobox that supports selecting multiple items, preferably with checkboxes. I can't find an example of how to do this. Does your control support it
// CellStateChanged event - Fired after cell's state has been changed.
private void excombobox1_CellStateChanged(object sender,exontrol.EXCOMBOBOXLib.HCELL Cell)
{
excombobox1.LabelText = Cell.ToString();
System.Diagnostics.Debug.Print(excombobox1.Items.get_CellCaption(0,Cell).ToString());
System.Diagnostics.Debug.Print(excombobox1.Items.get_CellState(0,Cell).ToString());
}
//this.excombobox1.CellStateChanged += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangedEventHandler(this.excombobox1_CellStateChanged);
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
excombobox1.IntegralHeight = true;
excombobox1.HeaderVisible = false;
excombobox1.SingleEdit = true;
excombobox1.SearchColumnIndex = -1;
excombobox1.AdjustSearchColumn = false;
(excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true);
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("English");
var_Items.AddItem("Hebrew");
var_Items.AddItem("Spanish");
excombobox1.EndUpdate();
410. How can I display a different caption in the label area, when I click the cell's check box
// CellStateChanged event - Fired after cell's state has been changed.
private void excombobox1_CellStateChanged(object sender,exontrol.EXCOMBOBOXLib.HCELL Cell)
{
excombobox1.LabelText = Cell.ToString();
System.Diagnostics.Debug.Print(excombobox1.Items.get_CellCaption(0,Cell).ToString());
System.Diagnostics.Debug.Print(excombobox1.Items.get_CellState(0,Cell).ToString());
}
//this.excombobox1.CellStateChanged += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangedEventHandler(this.excombobox1_CellStateChanged);
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
excombobox1.IntegralHeight = true;
excombobox1.HeaderVisible = false;
excombobox1.SingleEdit = true;
excombobox1.SearchColumnIndex = -1;
excombobox1.AdjustSearchColumn = false;
(excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true);
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("English");
var_Items.AddItem("Hebrew");
var_Items.AddItem("Spanish");
excombobox1.LabelText = " <b>custom</b> text ";
excombobox1.EndUpdate();
409. How can I display a different caption in the label area
excombobox1.BeginUpdate(); excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList; excombobox1.IntegralHeight = true; excombobox1.HeaderVisible = false; excombobox1.SingleEdit = true; excombobox1.SearchColumnIndex = -1; excombobox1.AdjustSearchColumn = false; (excombobox1.Columns.Add("Language") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("English"); var_Items.AddItem("Hebrew"); var_Items.AddItem("Spanish"); excombobox1.LabelText = " <b>custom</b> text "; excombobox1.EndUpdate();
408. How can I change the background appearance (ebn) for the filter field in the bottom part of the drop down portion
excombobox1.BeginUpdate(); excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); excombobox1.FilterForVisible = true; excombobox1.FilterForBackColor32 = 0x1000000; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); excombobox1.EndUpdate();
407. How can I change the background color for the filter field in the bottom part of the drop down portion
excombobox1.BeginUpdate(); excombobox1.FilterForVisible = true; excombobox1.FilterForBackColor = Color.FromArgb(240,240,240); excombobox1.IntegralHeight = true; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); excombobox1.EndUpdate();
406. How can I display a filter field in the bottom part of the drop down portion
excombobox1.BeginUpdate(); excombobox1.FilterForVisible = true; excombobox1.IntegralHeight = true; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); excombobox1.EndUpdate();
405. Does your control support RightToLeft property for RTL languages or right to left
excombobox1.BeginUpdate(); excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("P1") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.PartialCheck = true; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); excombobox1.RightToLeft = true; excombobox1.EndUpdate();
404. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
excombobox1.BeginUpdate(); exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); var_Columns.Add("C3"); var_Columns.Add("C4"); var_Columns.Add("C5"); var_Columns.Add("C6"); var_Columns.Add("C7"); var_Columns.Add("C8"); excombobox1.RightToLeft = true; excombobox1.EndUpdate();
403. Can I display the cell's check box after the text
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 1"),0,true); var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 2"),0,true);
402. Can I change the order of the parts in the cell, as checkbox after the text, and so on
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check,icon,icons,picture"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Text"); var_Items.set_CellImage(h,0,1); var_Items.set_CellHasCheckBox(h,0,true);
401. Can I have an image displayed after the text. Can I get that effect without using HTML content
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellDrawPartsOrder,"caption,icon,check,icons,picture"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Text"); var_Items.set_CellImage(h,0,1);
400. How can I display the column using currency format and enlarge the font for certain values
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("9.94"); var_Items.AddItem("11.94"); var_Items.AddItem("1000");
399. How can I get the number of occurrences of a specified string in the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("occurrences") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "lower(%0) count 'o'"; var_Column.FormatColumn = "'contains ' + value + ' of \\'o\\' chars'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1 oooof the root"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
398. How can I display dates in my format
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0" + ") +')'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/21/2001")); var_Items.AddItem(Convert.ToDateTime("2/22/2002")); var_Items.AddItem(Convert.ToDateTime("3/13/2003")); var_Items.AddItem(Convert.ToDateTime("4/24/2004"));
397. How can I display dates in short format
(excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "shortdate(value)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001")); var_Items.AddItem(Convert.ToDateTime("2/2/2002")); var_Items.AddItem(Convert.ToDateTime("3/3/2003")); var_Items.AddItem(Convert.ToDateTime("4/4/2004"));
396. How can I display dates in long format
(excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "longdate(value)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001")); var_Items.AddItem(Convert.ToDateTime("2/2/2002")); var_Items.AddItem(Convert.ToDateTime("3/3/2003")); var_Items.AddItem(Convert.ToDateTime("4/4/2004"));
395. How can I display only the right part of the cell
excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Right") as exontrol.EXCOMBOBOXLib.Column); var_Column.ComputedField = "%0 right 2"; var_Column.FormatColumn = "'\"' + value + '\"'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"SChild 3"); var_Items.set_ExpandItem(h,true);
394. How can I display only the left part of the cell
excombobox1.Columns.Add(""); (excombobox1.Columns.Add("Left") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "%0 left 2"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"SChild 3"); var_Items.set_ExpandItem(h,true);
393. How can I display true or false instead 0 and -1
(excombobox1.Columns.Add("Boolean") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "value != 0 ? 'true' : 'false'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(true); var_Items.AddItem(false); var_Items.AddItem(true); var_Items.AddItem(0); var_Items.AddItem(1);
392. How can I display icons or images instead numbers
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Icons") as exontrol.EXCOMBOBOXLib.Column); var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3);
391. How can I display the column using currency
(excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "currency(dbl(value))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("0"); var_Items.AddItem(5); var_Items.AddItem("10000.99");
390. How can I display the currency only for not empty cells
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "len(%0) ? currency(dbl(%0)) : ''"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("0"); var_Items.set_ItemBackColor(var_Items.AddItem(null),Color.FromArgb(255,128,128)); var_Items.AddItem("10000.99");
389. Is there a function to display the number of days between two date including the number of hours
(excombobox1.Columns.Add("Start") as exontrol.EXCOMBOBOXLib.Column).Width = 32; excombobox1.Columns.Add("End"); (excombobox1.Columns.Add("Duration") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "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)' : '' )"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/14/2001")); h = var_Items.AddItem(Convert.ToDateTime("2/22/2002 12:00:00 PM")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("3/14/2002 1:00:00 PM")); h = var_Items.AddItem(Convert.ToDateTime("3/13/2003")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("4/11/2003 11:00:00 AM"));
388. Is there a function to display the number of days between two date including the number of hours
excombobox1.Columns.Add("Start"); excombobox1.Columns.Add("End"); (excombobox1.Columns.Add("Duration") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%" + "0))))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/14/2001 11:00:00 PM")); h = var_Items.AddItem(Convert.ToDateTime("2/22/2002 12:00:00 PM")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("3/14/2002 1:00:00 PM")); h = var_Items.AddItem(Convert.ToDateTime("3/13/2003")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("4/11/2003 11:00:00 AM"));
387. How can I display the number of days between two dates
excombobox1.Columns.Add("Start"); excombobox1.Columns.Add("End"); (excombobox1.Columns.Add("Duration") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "(date(%1)-date(%0)) + ' days'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/14/2001")); h = var_Items.AddItem(Convert.ToDateTime("2/22/2002")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("3/14/2002")); h = var_Items.AddItem(Convert.ToDateTime("3/13/2003")); var_Items.set_CellCaption(h,1,Convert.ToDateTime("4/11/2003"));
386. How can I get second part of the date
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Second") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "sec(date(%0))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:10:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:01:22 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:23:01 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:11:59 PM"));
385. How can I get minute part of the date
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Minute") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "min(date(%0))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:10:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:01:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:23:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:11:00 PM"));
384. How can I check the hour part only so I know it was afternoon
excombobox1.ConditionalFormats.Add("hour(%0)>=12",null).Bold = true; excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Hour") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "hour(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:00:00 PM"));
383. What about a function to get the day in the week, or days since Sunday
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("WeekDay") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "weekday(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:00:00 PM"));
382. Is there any function to get the day of the year or number of days since January 1st
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Day since January 1st") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "yearday(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:00:00 PM"));
381. How can I display only the day of the date
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Day") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "day(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/14/2004 1:00:00 PM"));
380. How can I display only the month of the date
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Month") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "month(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/4/2004 1:00:00 PM"));
379. How can I get only the year part from a date expression
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Year") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "year(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/4/2004 1:00:00 PM"));
378. Can I convert the expression to date
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "date(dbl(%0))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("30000.99"); var_Items.AddItem("3561.23"); var_Items.AddItem("1232.34");
377. Can I convert the expression to a number, double or float
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Number + 2") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "dbl(%0)+2"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
376. How can I display dates in long format
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("LongFormat") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "longdate(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/4/2004 1:00:00 PM"));
375. How can I display dates in short format
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("ShortFormat") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "shortdate(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/4/2004 1:00:00 PM"));
374. How can I display the time only of a date expression
excombobox1.Columns.Add("Date"); (excombobox1.Columns.Add("Time") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "'time is:' + time(date(%0))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00 AM")); var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00 PM")); var_Items.AddItem(Convert.ToDateTime("4/4/2004 1:00:00 PM"));
373. Is there any function to display currencies, or money formatted as in the control panel
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Currency") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "currency(dbl(%0))"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("1.23"); var_Items.AddItem("2.34"); var_Items.AddItem("10000.99");
372. How can I convert the expression to a string so I can look into the date string expression for month's name
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Str") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "str(%0) + ' AA'"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
371. Can I display the absolute value or positive part of the number
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Abs") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "abs(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
370. Is there any function to get largest number with no fraction part that is not greater than the value
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Floor") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "floor(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
369. Is there any function to round the values base on the .5 value
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Round") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "round(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
368. How can I get or display the integer part of the cell
excombobox1.Columns.Add("Number"); (excombobox1.Columns.Add("Int") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "int(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("-1.98"); var_Items.AddItem("0.99"); var_Items.AddItem("1.23"); var_Items.AddItem("2.34");
367. How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
(excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "proper(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("root"); var_Items.InsertItem(h,0,"child child"); var_Items.InsertItem(h,0,"child child"); var_Items.InsertItem(h,0,"child child"); var_Items.set_ExpandItem(h,true);
366. Is there any option to display cells in uppercase
(excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "upper(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Chld 3"); var_Items.set_ExpandItem(h,true);
365. Is there any option to display cells in lowercase
(excombobox1.Columns.Add("") as exontrol.EXCOMBOBOXLib.Column).ComputedField = "lower(%0)"; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Chld 3"); var_Items.set_ExpandItem(h,true);
364. How can I mark the cells that has a specified type, ie strings only
excombobox1.ConditionalFormats.Add("type(%0) = 8",null).ForeColor = Color.FromArgb(255,0,0); excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,2); var_Items.InsertItem(h,0,"Chld 3"); var_Items.set_ExpandItem(h,true);
363. How can I bold the items that contains data or those who displays empty strings
excombobox1.ConditionalFormats.Add("not len(%1)=0",null).Bold = true; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); int hC = var_Items.InsertItem(h,0,"Child 2"); var_Items.set_CellCaption(hC,1,"1"); var_Items.InsertItem(h,0,"Child 3"); var_Items.set_ExpandItem(h,true);
362. Can I change the background color for items or cells that contains a specified string
excombobox1.ConditionalFormats.Add("%0 contains 'hi'",null).BackColor = Color.FromArgb(255,0,0); excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"Chld 3"); var_Items.set_ExpandItem(h,true);
361. Is there any option to change the fore color for cells or items that ends with a specified string
excombobox1.ConditionalFormats.Add("%0 endwith '22'",null).ForeColor = Color.FromArgb(255,0,0); excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 1.22"); var_Items.InsertItem(h,0,"Child 2.22"); var_Items.set_ExpandItem(h,true);
360. How can I highlight the cells or items that starts with a specified string
excombobox1.ConditionalFormats.Add("%0 startwith 'C'",null).Underline = true; excombobox1.Columns.Add(""); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.InsertItem(h,0,"SChild 3"); var_Items.set_ExpandItem(h,true);
359. How can I change the background color or the visual appearance using ebn for a particular column
excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderBackColor,16777216); (var_Columns.Add("Column 3") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderBackColor,16777471); var_Columns.Add("Column 4");
358. How can I change the background color for a particular column
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderBackColor,8439039); var_Columns.Add("Column 3");
357. Does your control support prompt feature
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); excombobox1.AutoComplete = false; (excombobox1.Columns.Add("Column 1") as exontrol.EXCOMBOBOXLib.Column).Prompt = "<img>1</img><i><fgcolor=808080>type to search</fgcolor></i>"; excombobox1.Items.AddItem(0); excombobox1.Items.AddItem(1); excombobox1.Items.AddItem(2);
356. How can I display the column's header using multiple lines
excombobox1.HeaderHeight = 128; excombobox1.HeaderSingleLine = false; (excombobox1.Columns.Add("This is just a column that should break the header.") as exontrol.EXCOMBOBOXLib.Column).Width = 32; excombobox1.Columns.Add("This is just another column that should break the header.");
355. How can I sort the value gets listed in the drop down filter window
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.MarkSearchColumn = false; excombobox1.set_Description(exontrol.EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,""); excombobox1.set_Description(exontrol.EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarBlanks,""); excombobox1.set_Description(exontrol.EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarNonBlanks,""); exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("P1") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc; exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("P2") as exontrol.EXCOMBOBOXLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsAsc; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Z3"); var_Items.set_CellCaption(h,1,"C"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Z1"),1,"B"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Z2"),1,"A"); var_Items.set_ExpandItem(h,true);
354. Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area
(excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).AllowEditContextMenu = false; excombobox1.Items.AddItem(0); excombobox1.Items.AddItem(1); excombobox1.Items.AddItem(2);
353. How can I align the text/caption on the scroll bar
excombobox1.set_ScrollPartCaption(exontrol.EXCOMBOBOXLib.ScrollBarEnum.exHScroll,exontrol.EXCOMBOBOXLib.ScrollPartEnum.exLowerBackPart,"left"); excombobox1.set_ScrollPartCaptionAlignment(exontrol.EXCOMBOBOXLib.ScrollBarEnum.exHScroll,exontrol.EXCOMBOBOXLib.ScrollPartEnum.exLowerBackPart,exontrol.EXCOMBOBOXLib.AlignmentEnum.LeftAlignment); excombobox1.set_ScrollPartCaption(exontrol.EXCOMBOBOXLib.ScrollBarEnum.exHScroll,exontrol.EXCOMBOBOXLib.ScrollPartEnum.exUpperBackPart,"right"); excombobox1.set_ScrollPartCaptionAlignment(exontrol.EXCOMBOBOXLib.ScrollBarEnum.exHScroll,exontrol.EXCOMBOBOXLib.ScrollPartEnum.exUpperBackPart,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment); excombobox1.ColumnAutoResize = false; excombobox1.Columns.Add(1.ToString()); excombobox1.Columns.Add(2.ToString()); excombobox1.Columns.Add(3.ToString()); excombobox1.Columns.Add(4.ToString()); excombobox1.Columns.Add(5.ToString()); excombobox1.Columns.Add(6.ToString());
352. Does you control support RTL languages or if there is a property RightToLeft
excombobox1.RightToLeft = true; excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeItem; excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exHLines; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.ScrollBySingleLine = true; excombobox1.DefaultItemHeight = 64; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.Alignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; var_Column.HeaderAlignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; var_Column.EditAlignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.set_ItemHeight(var_Items.InsertItem(var_Items.AddItem("Parent"),0,"Item 2"),48); var_Items.AddItem("Item 3"); var_Items.set_ExpandItem(var_Items[1],true);
351. How do I enable resizing all the items at runtime
excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeAllItems; excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exHLines; excombobox1.Columns.Add("Column"); excombobox1.Items.AddItem("Item 1"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_ItemHeight(var_Items.AddItem("Item 2"),48); excombobox1.Items.AddItem("Item 3");
350. How can I remove the filter
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exBlanks; excombobox1.ApplyFilter(); excombobox1.ClearFilter();
349. How do I display the icons being selected in the control's label
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellImage(var_Items.AddItem("Image 1"),0,1); var_Items.set_CellImage(var_Items.AddItem("Image 2"),0,2); var_Items.set_CellImage(var_Items.AddItem("Image 3"),0,3); excombobox1.set_AssignEditImageOnSelect(0,true); excombobox1.Value = "Image 2";
348. How do I select a value
excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); excombobox1.Value = "Root 1.1";
347. How do I select a value
excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); excombobox1.set_Select(1,"Root 1.2");
346. How do change the visual appearance for the drop down border, using EBN
excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); excombobox1.DropDownBorder = (exontrol.EXCOMBOBOXLib.AppearanceEnum)0x1000000;
345. How do I remove the drop down's border
excombobox1.DropDownBorder = exontrol.EXCOMBOBOXLib.AppearanceEnum.None2;
344. How can I change the foreground color for edit controls
excombobox1.ForeColorEdit = Color.FromArgb(255,0,0); excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); excombobox1.set_Select(0,"Root 1.1");
343. How can I change the background color for edit controls
excombobox1.BackColorEdit = Color.FromArgb(255,0,0); excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); excombobox1.set_Select(0,"Root 1.1");
342. How can I hide the drop down buttons when the control loses the focus
excombobox1.HideDropDownButton = true; excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2");
341. How can I ensure that the drop down portions doesn't show partial items
excombobox1.IntegralHeight = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2");
340. How can I close the drop down window when user double clicks it
excombobox1.CloseOnDblClk = true; excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot; excombobox1.TreeColumnIndex = 1; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1.1"); var_Items.set_CellCaption(h,1,"Root 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 2.1"),1,"Child 2.2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2.1"); var_Items.set_CellCaption(h,1,"Root 2.2"); var_Items.set_CellCaption(var_Items.InsertItem(h,0,"Child 1.1"),1,"Child 1.2");
339. How do I get the handle of the drop down window
excombobox1.Columns.Add(0.ToString());
338. How do I specify the height of the control's label
excombobox1.LabelHeight = 34; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
337. The control selects the portion of text that doesn't match with the selected item. How can I avoid that
excombobox1.AutoSelect = false; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
336. How can I show the drop down window as soon as user starts typing in the control
excombobox1.AutoDropDown = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
335. How do I change the text in the edit or label area
excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); excombobox1.set_EditText(0,"Test");
334. How do I lock or make read-only the control
excombobox1.Locked = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
333. How do I let user to resize only the height of the drop down window, at runtime
excombobox1.AllowSizeGrip = true; excombobox1.AllowHResize = false; excombobox1.MinWidthList = 100; excombobox1.MinHeightList = 100; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
332. How do I let user to resize only the width of the drop down window, at runtime
excombobox1.AllowSizeGrip = true; excombobox1.AllowVResize = false; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
331. How do I let user to resize the drop down window, at runtime
excombobox1.AllowSizeGrip = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
330. How do I specify the height of the drop down window
excombobox1.set_HeightList(null,400); excombobox1.MinWidthList = 100; excombobox1.AllowSizeGrip = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
329. How do I specify the minimum height of the drop down window
excombobox1.MinHeightList = 100; excombobox1.AllowSizeGrip = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
328. How do I specify the width of the drop down window
excombobox1.set_WidthList(null,100); excombobox1.AllowSizeGrip = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
327. How do I specify the minimum width of the drop down window
excombobox1.MinWidthList = 100; excombobox1.AllowSizeGrip = true; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
326. I have multiple columns, how can I display a single edit in the control's label
excombobox1.SingleEdit = true; excombobox1.Columns.Add("Column 1"); excombobox1.Columns.Add("Column 2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item 1"),1,"SubItem 1"); var_Items.set_CellCaption(var_Items.AddItem("Item 2"),1,"SubItem 2"); var_Items.set_CellCaption(var_Items.AddItem("Item 3"),1,"SubItem 3");
325. How do I turn off the auto complete feature
excombobox1.AutoComplete = false; excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 3"); var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2");
324. The control supports three styles: Simple, DropDown and DropDownList. How can I change the style
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
323. Is there any option to align the header to the left and the data to the right
(excombobox1.Columns.Add("Left") as exontrol.EXCOMBOBOXLib.Column).Alignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.LeftAlignment; exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Right") as exontrol.EXCOMBOBOXLib.Column); var_Column.Alignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; var_Column.HeaderAlignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; var_Column.EditAlignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaption(var_Items.AddItem("left"),1,"right");
322. How do I change the control's border, using your EBN files
excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); excombobox1.Appearance = (exontrol.EXCOMBOBOXLib.AppearanceEnum)0x1000000;
321. Can I change the default border of the tooltip, using your EBN files
excombobox1.ToolTipDelay = 1; excombobox1.ToolTipWidth = 364; excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exToolTipAppearance,16777216); (excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip assigned to a column";
320. Can I change the background color for the tooltip
excombobox1.ToolTipDelay = 1; excombobox1.ToolTipWidth = 364; excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exToolTipBackColor,Color.FromArgb(255,0,0)); (excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip assigned to a column";
319. Does the tooltip support HTML format
excombobox1.ToolTipDelay = 1; excombobox1.ToolTipWidth = 364; (excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgc" + "olor>";
318. Can I change the forecolor for the tooltip
excombobox1.ToolTipDelay = 1; excombobox1.ToolTipWidth = 364; excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exToolTipForeColor,Color.FromArgb(255,0,0)); (excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip assigned to a column";
317. Can I change the foreground color for the tooltip
excombobox1.ToolTipDelay = 1; excombobox1.ToolTipWidth = 364; (excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>";
316. How can I merge cells
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exAllLines; excombobox1.MarkSearchColumn = false; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); excombobox1.Columns.Add("C3"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("this cell merges the first two columns"); var_Items.set_CellMerge(h,0,1); h = var_Items.AddItem(null); var_Items.set_CellCaption(h,1,"this cell merges the last two columns"); var_Items.set_CellMerge(h,1,2); h = var_Items.AddItem("this cell merges the all three columns"); var_Items.set_CellMerge(h,0,1); var_Items.set_CellMerge(h,0,2); h = var_Items.AddItem("this draws a divider item"); var_Items.set_ItemDivider(h,0);
315. How can I merge cells
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem("This is bit of text merges all cells in the item"); var_Items.set_ItemDivider(h,0); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment);
314. How can I change the color for separator / dividers items
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.ScrollBySingleLine = false; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem(null); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.DoubleDotLine); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,6); var_Items.set_SelectableItem(h,false); h = var_Items.AddItem("Cell 2"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false);
313. How can I add separator - dividers items
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.ScrollBySingleLine = false; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem(null); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.DoubleDotLine); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXCOMBOBOXLib.DividerAlignmentEnum.DividerCenter); var_Items.set_ItemHeight(h,6); var_Items.set_SelectableItem(h,false); h = var_Items.AddItem("Cell 2"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false);
312. Can I change the style of the line being displayed by a divider item
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.ScrollBySingleLine = false; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.DoubleDotLine); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemHeight(h,24);
311. Can I remove the line being displayed by a divider item
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); var_Items.set_ItemDivider(h,0); var_Items.set_ItemDividerLine(h,exontrol.EXCOMBOBOXLib.DividerLineEnum.EmptyLine); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment);
310. How can I display a divider item, merging all cells
excombobox1.MarkSearchColumn = false; excombobox1.TreeColumnIndex = -1; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); h = var_Items.AddItem("This is bit of text that's displayed on the entire item, divider."); var_Items.set_ItemDivider(h,0); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment);
309. How can I fix or lock items
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_LockedItemCount(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop,1); var_Items.set_CellCaption(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop,0),0,"This is a locked item, fixed to the top side of the control."); var_Items.set_ItemBackColor(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop,0),Color.FromArgb(196,196,186)); var_Items.set_LockedItemCount(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,2); var_Items.set_CellCaption(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,0),0,"This is a locked item, fixed to the top side of the control."); var_Items.set_ItemBackColor(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,0),Color.FromArgb(196,196,186)); var_Items.set_CellCaption(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,1),0,"This is a locked item, fixed to the top side of the control."); var_Items.set_ItemBackColor(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,1),Color.FromArgb(186,186,186));
308. How can I fix or lock an item on the bottom side of the control
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_LockedItemCount(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,1); var_Items.set_CellCaption(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom,0),0,"This is a locked item, fixed to the bottom side of the control."); int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true);
307. How can I fix or lock an item on the top of the control
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_LockedItemCount(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop,1); var_Items.set_CellCaption(var_Items.get_LockedItem(exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop,0),0,"This is a locked item, fixed to the top side of the control."); int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true);
306. Is there any function to limit the height of the items when I display it using multiple lines
excombobox1.ScrollBySingleLine = true; excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"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.set_CellSingleLine(h,1,false); var_Items.set_ItemMaxHeight(h,48);
305. Why I cannot center my cells in the column
excombobox1.TreeColumnIndex = -1; excombobox1.DrawGridLines = (exontrol.EXCOMBOBOXLib.GridLinesEnum)0xfffffffc | exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; (excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).Alignment = exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment; excombobox1.Items.AddItem("item 1"); excombobox1.Items.AddItem("item 2"); excombobox1.Items.AddItem("item 3");
304. How can I align the cell to the left, center or to the right
excombobox1.TreeColumnIndex = -1; excombobox1.DrawGridLines = (exontrol.EXCOMBOBOXLib.GridLinesEnum)0xfffffffc | exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellHAlignment(var_Items.AddItem("left"),0,exontrol.EXCOMBOBOXLib.AlignmentEnum.LeftAlignment); var_Items.set_CellHAlignment(var_Items.AddItem("center"),0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); var_Items.set_CellHAlignment(var_Items.AddItem("right"),0,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment);
303. How do I apply HTML format to a cell
excombobox1.TreeColumnIndex = -1; excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); excombobox1.set_HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); excombobox1.set_HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("The following item shows some of the HTML format supported:"); var_Items.set_CellHAlignment(h,0,exontrol.EXCOMBOBOXLib.AlignmentEnum.CenterAlignment); h = var_Items.AddItem("<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.set_CellCaptionFormat(h,0,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML); var_Items.set_CellSingleLine(h,0,false);
302. How can I change the font for a cell
excombobox1.Columns.Add("Default"); excombobox1.Items.AddItem("std font"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),0,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML);
301. How can I change the font for a cell
excombobox1.Columns.Add("Default"); excombobox1.Items.AddItem("default font"); stdole.IFontDisp f = new stdole.StdFont(); f.Name = "Tahoma"; f.Size = 12; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellFont(var_Items.AddItem("new font"),0,f);
300. How can I change the font for entire item
excombobox1.Columns.Add("Default"); excombobox1.Items.AddItem("default font"); stdole.IFontDisp f = new stdole.StdFont(); f.Name = "Tahoma"; f.Size = 12; exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_ItemFont(var_Items.AddItem("new font"),f);
299. How do I vertically align a cell
excombobox1.DrawGridLines = (exontrol.EXCOMBOBOXLib.GridLinesEnum)0xfffffffc | exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; (excombobox1.Columns.Add("MultipleLine") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine,false); excombobox1.Columns.Add("VAlign"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("This is a bit of long text that should break the line"); var_Items.set_CellCaption(h,1,"top"); var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop); h = var_Items.AddItem("This is a bit of long text that should break the line"); var_Items.set_CellCaption(h,1,"middle"); var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exMiddle); h = var_Items.AddItem("This is a bit of long text that should break the line"); var_Items.set_CellCaption(h,1,"bottom"); var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom);
298. How can I change the position of an item
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.set_ItemPosition(var_Items.AddItem("Item 3"),0);
297. How do I find an item based on a path
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.set_ItemData(var_Items.InsertItem(h,0,"Child 2"),1234); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.get_FindPath("Root 1\\Child 1"),true);
296. How do I find an item
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.get_FindItem("Child 2",0,null),true);
295. How can I insert a hyperlink or an anchor element
excombobox1.Columns.Add("Column"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML); exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items; var_Items1.set_CellCaptionFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML);
294. How do I find the index of the item based on its handle
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items[var_Items.get_ItemToIndex(h)],true);
293. How do I find the handle of the item based on its index
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items[1],true);
292. How can I find the cell being clicked in a radio group
excombobox1.MarkSearchColumn = false; excombobox1.SelBackColor = Color.FromArgb(255,255,128); excombobox1.SelForeColor = Color.FromArgb(0,0,0); excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); excombobox1.Columns.Add("C3"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"Radio 1"); var_Items.set_CellHasRadioButton(h,1,true); var_Items.set_CellRadioGroup(h,1,1234); var_Items.set_CellCaption(h,2,"Radio 2"); var_Items.set_CellHasRadioButton(h,2,true); var_Items.set_CellRadioGroup(h,2,1234); var_Items.set_CellState(h,1,1); var_Items.set_CellBold(0,var_Items.get_CellChecked(1234),true);
291. Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_ItemHasChildren(var_Items.AddItem("parent item with no child items"),true); var_Items.AddItem("next item");
290. Can I let the user to resize at runtime the specified item
excombobox1.ScrollBySingleLine = true; excombobox1.DrawGridLines = (exontrol.EXCOMBOBOXLib.GridLinesEnum)0xfffffffc | exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines; excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; var_Items.set_ItemAllowSizing(var_Items.AddItem("resizable item"),true); var_Items.AddItem("not resizable item");
289. How can I change the size ( width, height ) of the picture
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.set_CellPicture(h,0,excombobox1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); var_Items.set_CellPictureWidth(h,0,24); var_Items.set_CellPictureHeight(h,0,24); var_Items.set_ItemHeight(h,32); h = var_Items.AddItem("Root 2"); var_Items.set_CellPicture(h,0,excombobox1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); var_Items.set_ItemHeight(h,48);
288. How do I unselect an item
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,false);
287. How do I find the selected item
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true); var_Items.set_ItemBold(var_Items.get_SelectedItem(0),true);
286. How do I select an item
excombobox1.Columns.Add("Default"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,0,"Child 1"); var_Items.InsertItem(h,0,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_SelectItem(h,true);
285. Can I display a button with some picture or icon inside
excombobox1.set_HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif");
excombobox1.Columns.Add("C1");
excombobox1.Columns.Add("C2");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Cell 1");
var_Items.set_CellCaption(h,1," Button <img>p1</img> ");
var_Items.set_CellCaptionFormat(h,1,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML);
var_Items.set_CellHAlignment(h,1,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment);
var_Items.set_CellHasButton(h,1,true);
var_Items.set_ItemHeight(h,48);
284. Can I display a button with some picture or icon inside
excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" + "/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" + "/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" + "x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); excombobox1.Columns.Add("C1"); excombobox1.Columns.Add("C2"); exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1," Button <img>1</img> "); var_Items.set_CellCaptionFormat(h,1,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML); var_Items.set_CellHAlignment(h,1,exontrol.EXCOMBOBOXLib.AlignmentEnum.RightAlignment); var_Items.set_CellHasButton(h,1,true);
283. Can I display a button with some icon inside
excombobox1.