RoundButton.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Newtonsoft.Json.Linq;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace Mind
{
public interface MindNode
{
Point leftPoint { get; set; }
Point rightPoint { get; set; }
bool isRootTopic { get; set; }
JObject Jref { get; set; }
}
public interface NodeTextBox
{
void btnTextBox_KeyDown(object sender, KeyEventArgs e);
Font myFont { get; set; }
}
public enum ControlState { Hover, Normal, Pressed }
public class RoundButton : Button, MindNode, NodeTextBox
{
private int radius;//半径
public TextBox btnTextBox = new TextBox();
public Color _baseColor = Color.FromArgb(51, 161, 224);//基颜色
private Color _hoverColor = Color.FromArgb(51, 0, 224);//基颜色
private Color _normalColor = Color.FromArgb(0, 161, 224);//基颜色
private Color _pressedColor = Color.FromArgb(51, 161, 0);//基颜色
//圆形按钮的半径属性
[CategoryAttribute("布局"), BrowsableAttribute(true), ReadOnlyAttribute(false)]
public int Radius
{
set
{
radius = value;
this.Invalidate();
}
get
{
return radius;
}
}
[DefaultValue(typeof(Color), "51, 161, 224")]
public Color NormalColor
{
get
{
return this._normalColor;
}
set
{
this._normalColor = value;
this.Invalidate();
}
}
// [DefaultValue(typeof(Color), "220, 80, 80")]
public Color HoverColor
{
get
后面还有 222 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。