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

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

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

revision 1.24 by drobosson, Tue Dec 28 07:27:55 2004 UTC revision 1.25 by drobosson, Sun Aug 7 12:19:36 2005 UTC
# Line 365  namespace System.Windows.Forms Line 365  namespace System.Windows.Forms
365                          [TODO]                          [TODO]
366                          public override void Remove(Control control)                          public override void Remove(Control control)
367                          {                          {
                                 // TODO  
368                                  base.Remove(control);                                  base.Remove(control);
369                          }                          }
370    
# Line 391  namespace System.Windows.Forms Line 390  namespace System.Windows.Forms
390                                  }                                  }
391                                  set                                  set
392                                  {                                  {
393                                          // TODO                                          // Handle
394                                  }                                  }
395                          }                          }
396    
# Line 1016  namespace System.Windows.Forms Line 1015  namespace System.Windows.Forms
1015                                  }                                  }
1016                          }                          }
1017                  }                  }
1018    
1019                    [TODO]
1020                  // This occurs for each tab needing to be drawn                  // This occurs for each tab needing to be drawn
1021                  protected virtual void OnDrawItem( DrawItemEventArgs e )                  protected virtual void OnDrawItem( DrawItemEventArgs e )
1022                  {                  {
1023                          e.DrawBackground();                          e.DrawBackground();
1024                          Rectangle borderBounds = new Rectangle(e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height+2);                          Rectangle borderBounds = new Rectangle(e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height+2);
1025                                                    
1026                          //TODO: If Appearance is tab then this ok, need to do for button & flat button                          // Fix: If Appearance is tab then this ok, need to do for button & flat button
1027                          // Draw tab edging & clip a border edge above the bottom                          // Draw tab edging & clip a border edge above the bottom
1028                                                    
1029                          DrawTab( e.Graphics, borderBounds, alignment, PositionInfo.positions[e.Index].leftExposed );                          DrawTab( e.Graphics, borderBounds, alignment, PositionInfo.positions[e.Index].leftExposed );
# Line 1031  namespace System.Windows.Forms Line 1031  namespace System.Windows.Forms
1031                          // Owner Draw does their own drawing                          // Owner Draw does their own drawing
1032                          if (drawMode == TabDrawMode.Normal)                          if (drawMode == TabDrawMode.Normal)
1033                          {                          {
1034                                  //TODO: If imageindex & imagelist then draw                                  // Fix: If imageindex & imagelist then draw
1035                                                                    
1036                                  Rectangle textBounds = new Rectangle(e.Bounds.Left + tabTextWidthMargin, e.Bounds.Top + tabTextHeightMargin, e.Bounds.Width - tabTextWidthMargin*2, e.Bounds.Height - tabTextHeightMargin * 2);                                  Rectangle textBounds = new Rectangle(e.Bounds.Left + tabTextWidthMargin, e.Bounds.Top + tabTextHeightMargin, e.Bounds.Width - tabTextWidthMargin*2, e.Bounds.Height - tabTextHeightMargin * 2);
1037                                  Rectangle focusBounds = textBounds;                                  Rectangle focusBounds = textBounds;
# Line 1039  namespace System.Windows.Forms Line 1039  namespace System.Windows.Forms
1039    
1040                                  if ((e.State & DrawItemState.Focus)>0)                                  if ((e.State & DrawItemState.Focus)>0)
1041                                          ControlPaint.DrawFocusRectangle(e.Graphics, focusBounds, ForeColor, BackColor);                                          ControlPaint.DrawFocusRectangle(e.Graphics, focusBounds, ForeColor, BackColor);
1042                                  //TODO: Draw disabled                                  // Fix: Draw disabled
1043                                  DrawText( e.Graphics, tabPageCollection[e.Index].Text, textBounds, e.ForeColor, e.BackColor, hotTrack && e.Index == hotTrackIndex );                                  DrawText( e.Graphics, tabPageCollection[e.Index].Text, textBounds, e.ForeColor, e.BackColor, hotTrack && e.Index == hotTrackIndex );
1044                                                                    
1045                          }                          }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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