コード例 #1
0
        public ResourceIconColumn AddIconColumn()
        {
            ResourceIconColumn column = new ResourceIconColumn();

            _jetListView.Columns.Add(column);
            return(column);
        }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: ChooseResTypeDialog.cs プロジェクト: mo5h/omeo
        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);
        }