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 |
|
|
390 |
} |
} |
391 |
set |
set |
392 |
{ |
{ |
393 |
// TODO |
// Handle |
394 |
} |
} |
395 |
} |
} |
396 |
|
|
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 ); |
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; |
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 |
} |
} |