コード例 #1
0
        public IntelliTextBox()
        {
            triggerColors = new System.Collections.Generic.Dictionary <char, Color>();

            this.TextChanged += new EventHandler(IntelliTextBox_TextChanged);
            this.KeyPress    += new KeyPressEventHandler(IntelliTextBox_KeyPress);
            this.MouseDown   += new MouseEventHandler(IntelliTextBox_MouseDown);
            this.Leave       += new EventHandler(IntelliTextBox_Leave);

            listBox               = new ListBoxEx();
            listBox.ItemMargin    = 2;
            listBox.Width         = 200;
            listBox.AntiAliasText = false;
            listBox.BorderStyle   = BorderStyle.FixedSingle;
            listBox.Click        += new EventHandler(listBox_Click);
            listBox.Visible       = false;

            popupWindow             = new Controls.Popup.Popup(listBox);
            popupWindow.AutoClose   = false;
            popupWindow.AcceptAlt   = false;
            popupWindow.FocusOnOpen = false;
            popupWindow.Visible     = false;
            popupWindow.Close();
        }
コード例 #2
0
ファイル: IntelliTextBox.cs プロジェクト: hostitherepc/Fork-1
        public IntelliTextBox()
        {
            triggerColors = new System.Collections.Generic.Dictionary<char, Color>();

            this.TextChanged += new EventHandler(IntelliTextBox_TextChanged);
            this.KeyPress += new KeyPressEventHandler(IntelliTextBox_KeyPress);
            this.MouseDown += new MouseEventHandler(IntelliTextBox_MouseDown);
            this.Leave += new EventHandler(IntelliTextBox_Leave);

            listBox = new ListBoxEx();
            listBox.ItemMargin = 2;
            listBox.Width = 200;
            listBox.AntiAliasText = false;
            listBox.BorderStyle = BorderStyle.FixedSingle;
            listBox.Click += new EventHandler(listBox_Click);
            listBox.Visible = false;

            popupWindow = new Controls.Popup.Popup(listBox);
            popupWindow.AutoClose = false;
            popupWindow.AcceptAlt = false;
            popupWindow.FocusOnOpen = false;
            popupWindow.Visible = false;
            popupWindow.Close();
        }
コード例 #3
0
 private void HideListBox()
 {
     startSelectionPos = -1;
     startChar         = '\0';
     popupWindow.Close();
 }