Exemplo n.º 1
0
        public ResourceIconColumn AddIconColumn()
        {
            ResourceIconColumn column = new ResourceIconColumn();

            _jetListView.Columns.Add(column);
            return(column);
        }
Exemplo n.º 2
0
 public ResourceTreeView2() : base()
 {
     _treeStructureColumn = new TreeStructureColumn();
     Columns.Add(_treeStructureColumn);
     _iconColumn = new ResourceIconColumn();
     Columns.Add(_iconColumn);
     _nameColumn = new JetListViewColumn();
     _nameColumn.SizeToContent = true;
     Columns.Add(_nameColumn);
 }
Exemplo n.º 3
0
 public DecoResourceTreeView() : base()
 {
     _treeStructureColumn = new TreeStructureColumn();
     Columns.Add(_treeStructureColumn);
     _iconColumn = new ResourceIconColumn();
     Columns.Add(_iconColumn);
     _nameColumn          = new RichTextColumn();
     _nameColumn.AutoSize = true;
     Columns.Add(_nameColumn);
 }
Exemplo n.º 4
0
        private static void SetupListView(JetListView listView, ItemTextCallback callback, ref CheckBoxColumn chkCol)
        {
            listView.ControlPainter = new GdiControlPainter();
            listView.NodeCollection.SetItemComparer(null, new TypeByNameComparer());

            chkCol = new CheckBoxColumn();
            chkCol.HandleAllClicks = true;
            listView.Columns.Add(chkCol);

            ResourceIconColumn iconColumn = new ResourceIconColumn();

            iconColumn.Width = 20;
            listView.Columns.Add(iconColumn);

            JetListViewColumn column = new JetListViewColumn();

            column.SizeToContent    = true;
            column.ItemTextCallback = callback;
            listView.Columns.Add(column);
        }