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

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

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

revision 1.87 by darkdust, Tue Mar 22 12:20:54 2005 UTC revision 1.88 by darkdust, Fri Apr 8 14:27:02 2005 UTC
# Line 361  public class Control : IWin32Window, IDi Line 361  public class Control : IWin32Window, IDi
361    
362                                  if(toolkitWindow == null)                                  if(toolkitWindow == null)
363                                  {                                  {
364                                          CreateHandle();                                          CreateControl();
365                                  }                                  }
366    
367                                  lock(this)      // this may not be necessary                                  lock(this)      // this may not be necessary
# Line 2497  public class Control : IWin32Window, IDi Line 2497  public class Control : IWin32Window, IDi
2497    
2498          public void Invalidate(Region region, bool invalidateChildren)          public void Invalidate(Region region, bool invalidateChildren)
2499                          {                          {
2500                                  if (toolkitWindow == null || !Visible)                                  if (!Visible)
2501                                  {                                  {
2502                                          return;                                          return;
2503                                  }                                  }
2504    
2505                                    if (toolkitWindow == null)
2506                                    {
2507                                            if ((parent == null) || (!parent.IsHandleCreated))
2508                                            {
2509                                                    return;
2510                                            }
2511                                            
2512                                            CreateControl ();
2513                                    }
2514    
2515                                  using (Region region1 = region.Clone())                                  using (Region region1 = region.Clone())
2516                                  {                                  {
2517                                          InvalidateInternal(region1, invalidateChildren);                                          InvalidateInternal(region1, invalidateChildren);
# Line 2556  public class Control : IWin32Window, IDi Line 2566  public class Control : IWin32Window, IDi
2566                                          {                                          {
2567                                                  if(toolkitWindow == null)                                                  if(toolkitWindow == null)
2568                                                  {                                                  {
2569                                                          CreateHandle();                                                          CreateControl();
2570                                                  }                                                  }
2571                                                  toolkitWindow.Invalidate(b.X, b.Y, b.Width, b.Height);                                                  toolkitWindow.Invalidate(b.X, b.Y, b.Width, b.Height);
2572                                          }                                          }
# Line 5147  public class Control : IWin32Window, IDi Line 5157  public class Control : IWin32Window, IDi
5157          protected virtual void OnParentVisibleChanged(EventArgs e)          protected virtual void OnParentVisibleChanged(EventArgs e)
5158                          {                          {
5159                                  bool parentVisible = parent.Visible;                                  bool parentVisible = parent.Visible;
5160                                  if((!parentVisible && visible) != (parentVisible && visible))                                  OnVisibleChanged(e);
                                 {  
                                         OnVisibleChanged(e);  
                                 }  
5161                          }                          }
5162          internal virtual void OnPrimaryEnter(EventArgs e)          internal virtual void OnPrimaryEnter(EventArgs e)
5163                          {                          {

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88

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