SVN-Revision: r891
This commit is contained in:
wyf
2025-07-24 06:01:16 +00:00
parent 5ebde4c564
commit cf35995f85
4 changed files with 82 additions and 68 deletions
+3 -29
View File
@@ -146,7 +146,7 @@ namespace Lskj.Main.Control
//(sender as Button).BackgroundImageLayout = ImageLayout.Center;
try
{
this.BackColor = Color.White;
this.BackColor = Color.FromArgb(240, 240, 240);
this.Cursor = Cursors.Hand;
}
catch (Exception ex)
@@ -171,7 +171,7 @@ namespace Lskj.Main.Control
{
try
{
this.BackColor = Color.FromArgb(240, 240, 240);
this.BackColor = Color.White;
}
catch (Exception ex)
{
@@ -214,30 +214,4 @@ namespace Lskj.Main.Control
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
int x = 0;
int y = 0;
int thisWidth = this.Width;
int thisHeight = this.Height;
int angle = _radius;
if (angle > 0)
{
System.Drawing.Graphics g = CreateGraphics();
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
oPath.CloseAllFigures();
Region = new System.Drawing.Region(oPath);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}
int thisWi