예제 #1
0
        internal void SetColumnWidth()
        {
            int pixlo = 0, pixhi = 0;

            for (int bar = 0; bar < NumBars; bar++)
            {
                DataGridViewColumn col = DGV.Columns[bar];
                pixhi     = Frm.TicksToPix(BarToBBT[bar + 1].Ticks);
                col.Width = pixhi - pixlo;
                pixlo     = pixhi;
            }
        }
예제 #2
0
        internal void SetColumnWidth(Forms.IFrmDGV frm)
        {
            if (!LyricsExist)
            {
                return;
            }
            DataGridView dgv = frm.Prop_dgvLyrics;
            int          pixlo = 0, pixhi = 0;

            for (int bar = 0; bar < NumBars; bar++)
            {
                DataGridViewColumn col = dgv.Columns[bar];
                col.SortMode = DataGridViewColumnSortMode.NotSortable;
                col.Selected = true;
                pixhi        = frm.TicksToPix(BarToBBT[bar + 1].Ticks);
                col.Width    = pixhi - pixlo;
                pixlo        = pixhi;
            }
        }