Beispiel #1
0
 protected virtual void ShowList()
 {
     if (this.popup.Visible == false)
     {
         //***********************************************
         this.flexGrid.RowSel = -1;
         //this.list.SelectedIndex = -1;
         this.UpdateList();
         Point p = this.PointToScreen(new Point(0, 0));
         p.X += this.PopupOffset.X;
         p.Y += this.Height + this.PopupOffset.Y;
         this.popup.Location = p;
         if (this.flexGrid.Rows.Count > 1)
         //if (this.list.Items.Count > 0)
         {
             this.popup.Show();
             if (this.hook == null)
             {
                 this.hook = new WinHook(this);
                 this.hook.AssignHandle(this.FindForm().Handle);
             }
             this.Focus();
         }
     }
     else
     {
         this.UpdateList();
     }
 }
Beispiel #2
0
 protected virtual void ShowList()
 {
     if (!autoCompleteEnabled)
     {
         return;
     }
     if (this.popup.Visible == false)
     {
         this.list.SelectedIndex = -1;
         this.UpdateList();
         Point p = this.PointToScreen(new Point(0, 0));
         p.X += this.PopupOffset.X;
         p.Y += this.Height + this.PopupOffset.Y;
         this.popup.Location = p;
         if (this.list.Items.Count > 0)
         {
             this.popup.Show();
             if (this.hook == null)
             {
                 this.hook = new WinHook(this);
                 this.hook.AssignHandle(this.FindForm().Handle);
             }
             this.Focus();
         }
     }
     else
     {
         this.UpdateList();
     }
 }
Beispiel #3
0
 protected virtual void HideList()
 {
     this.Mode = EntryMode.Text;
     if (this.hook != null)
     {
         this.hook.ReleaseHandle();
     }
     this.hook = null;
     this.popup.Hide();
 }
Beispiel #4
0
 protected virtual void HideList()
 {
     //if (!autoCompleteEnabled) return;
     this.Mode = EntryMode.Text;
     if (this.hook != null)
     {
         this.hook.ReleaseHandle();
     }
     this.hook = null;
     this.popup.Hide();
 }
Beispiel #5
0
 protected virtual void ShowList()
 {
     if (this.popup.Visible == false)
     {
         //***********************************************
         this.flexGrid.RowSel = -1;
         //this.list.SelectedIndex = -1;
         this.UpdateList();
         Point p = this.PointToScreen(new Point(0,0));
         p.X += this.PopupOffset.X;
         p.Y += this.Height + this.PopupOffset.Y;
         this.popup.Location = p;
         if(this.flexGrid.Rows.Count>1)
         //if (this.list.Items.Count > 0)
         {
             this.popup.Show();
             if (this.hook == null)
             {
                 this.hook = new WinHook(this);
                 this.hook.AssignHandle(this.FindForm().Handle);
             }
             this.Focus();
         }
     }
     else
     {
         this.UpdateList();
     }
 }
Beispiel #6
0
 protected virtual void HideList()
 {
     this.Mode = EntryMode.Text;
     if (this.hook != null)
         this.hook.ReleaseHandle();
     this.hook = null;
     this.popup.Hide();
 }