public AutoCompleteTagger()
        {
            asKeyWords = new string[0];

              sbHorz = new HScrollBar();
              sbHorz.Scroll += sbHorz_Scroll;
              sbHorz.Height = 14;
              sbHorz.Hide();

              lbSuggest = new ListBox();
              lbSuggest.MouseUp += lbSuggest_MouseUp;
              lbSuggest.MouseMove += lbSuggest_MouseMove;
              lbSuggest.VisibleChanged += lbSuggest_VisibleChanged;
              lbSuggest.Hide();
        }
示例#2
0
        private void Construct()
        {
            rowHeight = 18;

            //base.BackColor = SystemColors.Window;

            SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.ResizeRedraw|
                ControlStyles.Opaque|ControlStyles.UserPaint|ControlStyles.DoubleBuffer|
                ControlStyles.Selectable|ControlStyles.UserMouse, true);

            this.BackColor = SystemColors.Window;

            columns = new ExtendedListView.Forms.ColumnHeaderCollection();
            items = new ContainerListViewItemCollection();
            selectedIndices = new ArrayList();
            selectedItems = new ContainerListViewItemCollection();

            hscrollBar = new HScrollBar();
            hscrollBar.Parent = this;
            hscrollBar.Minimum = 0;
            hscrollBar.Maximum = 0;
            hscrollBar.SmallChange = 10;
            hscrollBar.Hide();

            vscrollBar = new VScrollBar();
            vscrollBar.Parent = this;
            vscrollBar.Minimum = 0;
            vscrollBar.Maximum = 0;
            vscrollBar.SmallChange = rowHeight;
            vscrollBar.Hide();

            Attach();

            GenerateColumnRects();
            GenerateHeaderRect();
        }