/[dotgnu-pnet]/pnetlib/System.Windows.Forms/ComboBox.cs
ViewVC logotype

Diff of /pnetlib/System.Windows.Forms/ComboBox.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by drobosson, Sun Apr 3 13:24:45 2005 UTC revision 1.18 by drobosson, Wed Apr 13 10:54:18 2005 UTC
# Line 77  namespace System.Windows.Forms Line 77  namespace System.Windows.Forms
77                          textEntry.BorderStyle = BorderStyle.None;                          textEntry.BorderStyle = BorderStyle.None;
78                          textEntry.TabStop = false;                          textEntry.TabStop = false;
79                          textEntry.LostFocus += new EventHandler(textentry_LostFocus);                          textEntry.LostFocus += new EventHandler(textentry_LostFocus);
80                            textEntry.GotFocus += new EventHandler(textentry_GotFocus);
81                          this.Controls.Add(textEntry);                          this.Controls.Add(textEntry);
82                                    
83                          popup = new PopupControl();                          popup = new PopupControl();
# Line 592  namespace System.Windows.Forms Line 593  namespace System.Windows.Forms
593                          base.OnEnter (e);                          base.OnEnter (e);
594                          if (DropDownStyle == ComboBoxStyle.DropDownList)                          if (DropDownStyle == ComboBoxStyle.DropDownList)
595                                  Invalidate();                                  Invalidate();
                         else  
                         {  
                                 textEntry.Focus();  
                                 textEntry.SelectAll();  
                         }  
596                  }                  }
597    
598                  protected override void OnLeave(EventArgs e)                  protected override void OnLeave(EventArgs e)
# Line 958  namespace System.Windows.Forms Line 954  namespace System.Windows.Forms
954                  {                  {
955                          OnLostFocus(e);                          OnLostFocus(e);
956                  }                  }
957                    
958                    private void textentry_GotFocus(object sender, EventArgs e)
959                    {
960                            OnGotFocus(e);
961                    }
962            
963                  private void scrollbar_ValueChanged(object sender, EventArgs e)                  private void scrollbar_ValueChanged(object sender, EventArgs e)
964                  {                  {
965                          using (Graphics g = popup.CreateGraphics())                          using (Graphics g = popup.CreateGraphics())

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26