Ejemplo n.º 1
0
 public virtual void DrawVerticalGridLines(TreeListColumnCollection columns, Graphics dc, Rectangle r, int hScrollOffset)
 {
     foreach (TreeListColumn col in columns.VisibleColumns)
     {
         int rightPos = col.CalculatedRect.Right - hScrollOffset;
         if (rightPos < 0)
         {
             continue;
         }
         dc.DrawLine(TreeListPainter.GridLinePen, rightPos, r.Top, rightPos, r.Bottom);
     }
 }
Ejemplo n.º 2
0
        public TreeListView()
        {
            this.DoubleBuffered = true;
            this.BackColor      = SystemColors.Window;
            this.TabStop        = true;

            m_rowPainter  = new RowPainter();
            m_cellPainter = new CellPainter(this);

            m_nodes       = new TreeListViewNodes(this);
            m_columns     = new TreeListColumnCollection(this);
            m_rowSetting  = new TreeList.RowSetting(this);
            m_viewSetting = new TreeList.ViewSetting(this);
            AddScroolBars();
        }