达人广场邀约达人功能
This commit is contained in:
1 parent
c489c30bf1
commit
b502c6a2ed
20 files changed
+3224
-193
No files matched your search
@@ -87,6 +87,18 @@ namespace TemuKJD.UserComponent
|
||||
}
|
||||
}
|
||||
|
||||
private Color tabSelectTextColor = Color.Gray;
|
||||
[Browsable(true), Category("自定义分组"), Description("Tab选中颜色")]
|
||||
public Color TabSelectTextColor
|
||||
{
|
||||
get { return tabSelectTextColor; }
|
||||
set
|
||||
{
|
||||
tabSelectTextColor = value;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private bool showCloseButton = false;
|
||||
[Browsable(true), Category("自定义分组"), Description("显示关闭页面按钮")]
|
||||
public bool ShowCloseButton
|
||||
@@ -162,7 +174,10 @@ namespace TemuKJD.UserComponent
|
||||
textPoint.X -= 5;
|
||||
// 绘制标题
|
||||
e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
|
||||
e.Graphics.DrawString(this.TabPages[i].Text, this.Font, new SolidBrush(tabTextColor), textPoint.X, textPoint.Y);
|
||||
if (this.SelectedIndex == i)
|
||||
e.Graphics.DrawString(this.TabPages[i].Text, this.Font, new SolidBrush(TabSelectTextColor), textPoint.X, textPoint.Y);
|
||||
else
|
||||
e.Graphics.DrawString(this.TabPages[i].Text, this.Font, new SolidBrush(tabTextColor), textPoint.X, textPoint.Y);
|
||||
|
||||
// 绘制tab框
|
||||
//e.Graphics.DrawRectangle(Pens.Red, this.GetTabRect(i));
|
||||
|
||||
Reference in new issue
Block a user