* 增加控件在工具箱说明文字
This commit is contained in:
parent
42c453820c
commit
8fce03fff2
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||
* CopyRight (C) 2012-2025 ShenYongHua(沈永华).
|
||||
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@QQ.Com
|
||||
/******************************************************************************
|
||||
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||
* CopyRight (C) 2012-2025 ShenYongHua(沈永华).
|
||||
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@QQ.Com
|
||||
*
|
||||
* Blog: https://www.cnblogs.com/yhuse
|
||||
* Gitee: https://gitee.com/yhuse/SunnyUI
|
||||
@ -9,13 +9,13 @@
|
||||
*
|
||||
* SunnyUI can be used for free under the GPL-3.0 license.
|
||||
* If you use this code, please keep this note.
|
||||
* 如果您使用此代码,请保留此说明。
|
||||
* 如果您使用此代码,请保留此说明。
|
||||
******************************************************************************
|
||||
* 文件名称: UIAnalogMeter.cs
|
||||
* 文件说明: 仪表
|
||||
* 文件作者: Luca Bonotto
|
||||
* 开源协议: CPOL
|
||||
* 引用地址: https://www.codeproject.com/Articles/24945/Analog-Meter
|
||||
* 文件名称: UIAnalogMeter.cs
|
||||
* 文件说明: 仪表
|
||||
* 文件作者: Luca Bonotto
|
||||
* 开源协议: CPOL
|
||||
* 引用地址: https://www.codeproject.com/Articles/24945/Analog-Meter
|
||||
******************************************************************************/
|
||||
|
||||
/*
|
||||
@ -42,6 +42,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[Description("仪表控件")]
|
||||
public class UIAnalogMeter : UIControl
|
||||
{
|
||||
#region Enumerator
|
||||
@ -320,9 +321,9 @@ namespace Sunny.UI
|
||||
#region Events delegates
|
||||
|
||||
/// <summary>
|
||||
/// 重载控件尺寸变更
|
||||
/// 重载控件尺寸变更
|
||||
/// </summary>
|
||||
/// <param name="e">参数</param>
|
||||
/// <param name="e">参数</param>
|
||||
protected override void OnSizeChanged(EventArgs e)
|
||||
{
|
||||
base.OnSizeChanged(e);
|
||||
@ -333,9 +334,9 @@ namespace Sunny.UI
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重载绘图
|
||||
/// 重载绘图
|
||||
/// </summary>
|
||||
/// <param name="e">绘图参数</param>
|
||||
/// <param name="e">绘图参数</param>
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
if (Width <= 0 || Height <= 0) return;
|
||||
|
@ -37,6 +37,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Symbol")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("头像控件")]
|
||||
public sealed class UIAvatar : UIControl, ISymbol, IZoomScale
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -35,6 +35,7 @@ namespace Sunny.UI
|
||||
/// </summary>
|
||||
[DefaultProperty("Power")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("电池电量控件")]
|
||||
public sealed class UIBattery : UIControl
|
||||
{
|
||||
private Color colorDanger = UIColor.Orange;
|
||||
|
@ -41,6 +41,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("ItemIndexChanged")]
|
||||
[DefaultProperty("ItemIndex")]
|
||||
[Description("面包屑导航条控件")]
|
||||
public class UIBreadcrumb : UIControl
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -52,6 +52,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("按钮控件")]
|
||||
public class UIButton : UIControl, IButtonControl
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -30,6 +30,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("日历控件")]
|
||||
public class UICalendar : UIUserControl, ITranslate
|
||||
{
|
||||
public UICalendar()
|
||||
|
@ -42,6 +42,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("CheckedChanged")]
|
||||
[DefaultProperty("Checked")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("复选框控件")]
|
||||
public class UICheckBox : UIControl
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -44,6 +44,7 @@ namespace Sunny.UI
|
||||
/// </summary>
|
||||
[DefaultProperty("Items")]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("多选框组控件")]
|
||||
public class UICheckBoxGroup : UIGroupBox
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -41,6 +41,7 @@ namespace Sunny.UI
|
||||
/// </summary>
|
||||
[DefaultProperty("ValueChanged")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("颜色选择框控件")]
|
||||
public sealed class UIColorPicker : UIDropControl
|
||||
{
|
||||
private void InitializeComponent()
|
||||
|
@ -60,6 +60,7 @@ namespace Sunny.UI
|
||||
[DefaultProperty("Items")]
|
||||
[DefaultEvent("SelectedIndexChanged")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("组合框控件")]
|
||||
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")]
|
||||
public sealed partial class UIComboBox : UIDropControl, IToolTip, IHideDropDown
|
||||
{
|
||||
|
@ -46,6 +46,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultProperty("ValueChanged")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("表格列表框控件")]
|
||||
public class UIComboDataGridView : UIDropControl, IToolTip
|
||||
{
|
||||
private void InitializeComponent()
|
||||
|
@ -41,6 +41,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("NodeSelected")]
|
||||
[DefaultProperty("Nodes")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("树形列表框控件")]
|
||||
public class UIComboTreeView : UIDropControl, IToolTip
|
||||
{
|
||||
public UIComboTreeView()
|
||||
|
@ -31,6 +31,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("上下文菜单")]
|
||||
public sealed class UIContextMenuStrip : ContextMenuStrip, IStyleInterface, IZoomScale
|
||||
{
|
||||
private ContextMenuColorTable ColorTable = new ContextMenuColorTable();
|
||||
|
@ -60,6 +60,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("表格控件")]
|
||||
public class UIDataGridView : DataGridView, IStyleInterface, IZoomScale
|
||||
{
|
||||
private readonly UIScrollBar VBar = new UIScrollBar();
|
||||
|
@ -33,6 +33,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("表格页脚控件")]
|
||||
public sealed class UIDataGridViewFooter : UIControl
|
||||
{
|
||||
public UIDataGridViewFooter()
|
||||
|
@ -40,6 +40,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultProperty("Value")]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("日期选择框控件")]
|
||||
public sealed partial class UIDatePicker : UIDropControl, IToolTip
|
||||
{
|
||||
public delegate void OnDateTimeChanged(object sender, DateTime value);
|
||||
|
@ -38,6 +38,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultProperty("Value")]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("日期时间选择框控件")]
|
||||
public sealed class UIDatetimePicker : UIDropControl, IToolTip
|
||||
{
|
||||
private void InitializeComponent()
|
||||
|
@ -40,6 +40,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("冷液晶显示LCD标签控件")]
|
||||
public class UIDigitalLabel : UIControl
|
||||
{
|
||||
public UIDigitalLabel()
|
||||
|
@ -44,6 +44,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[Description("数字上下选择框控件")]
|
||||
public sealed partial class UIDoubleUpDown : UIPanel, IToolTip
|
||||
{
|
||||
public delegate void OnValueChanged(object sender, double value);
|
||||
|
@ -42,6 +42,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("滚动容器控件")]
|
||||
public class UIFlowLayoutPanel : UIPanel, IToolTip
|
||||
{
|
||||
private UIVerScrollBarEx VBar;
|
||||
|
@ -32,6 +32,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("Gif动态头像控件")]
|
||||
public class UIGifAvatar : UIControl, IZoomScale
|
||||
{
|
||||
private Image image;
|
||||
|
@ -34,6 +34,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[DefaultProperty("Text")]
|
||||
[Description("组框控件")]
|
||||
public partial class UIGroupBox : UIPanel
|
||||
{
|
||||
public UIGroupBox()
|
||||
|
@ -43,6 +43,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("顶部图标按钮控件")]
|
||||
public class UIHeaderButton : UIControl, IButtonControl, ISymbol
|
||||
{
|
||||
public UIHeaderButton()
|
||||
|
@ -35,6 +35,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultProperty("Text")]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("IP地址输入框控件")]
|
||||
public sealed partial class UIIPTextBox : UIPanel
|
||||
{
|
||||
private IPAddress _value;
|
||||
|
@ -32,6 +32,7 @@ namespace Sunny.UI
|
||||
/// <summary>
|
||||
/// 图像按钮
|
||||
/// </summary>
|
||||
[Description("图像按钮控件")]
|
||||
public sealed class UIImageButton : PictureBox, IStyleInterface, IZoomScale, IFormTranslator
|
||||
{
|
||||
private bool IsPress;
|
||||
|
@ -38,6 +38,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("ItemClick")]
|
||||
[Description("图片列表框控件")]
|
||||
public sealed partial class UIImageListBox : UIPanel, IToolTip
|
||||
{
|
||||
private readonly ImageListBox listbox = new ImageListBox();
|
||||
|
@ -43,6 +43,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[Description("数字上下选择框控件")]
|
||||
public sealed partial class UIIntegerUpDown : UIPanel, IToolTip
|
||||
{
|
||||
public delegate void OnValueChanged(object sender, int value);
|
||||
|
@ -34,6 +34,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("标签控件")]
|
||||
public class UILabel : Label, IStyleInterface, IZoomScale, IFormTranslator
|
||||
{
|
||||
public UILabel()
|
||||
|
@ -34,6 +34,7 @@ namespace Sunny.UI
|
||||
/// provide a sleek looking representation of an LED light that is sizable,
|
||||
/// has a transparent background and can be set to different colors.
|
||||
/// </summary>
|
||||
[Description("LED灯控件")]
|
||||
public class UILedBulb : Control, IZoomScale
|
||||
{
|
||||
#region Public and Private Members
|
||||
|
@ -31,6 +31,7 @@ namespace Sunny.UI
|
||||
/// LED显示屏
|
||||
/// </summary>
|
||||
[DefaultProperty("Text")]
|
||||
[Description("LED显示屏控件")]
|
||||
public class UILedDisplay : Control
|
||||
{
|
||||
#region 组件设计器生成的代码
|
||||
|
@ -30,6 +30,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("LED标签控件")]
|
||||
public class UILedLabel : UIControl
|
||||
{
|
||||
public UILedLabel()
|
||||
|
@ -29,6 +29,7 @@ namespace Sunny.UI
|
||||
/// </summary>
|
||||
[DefaultEvent("TimerTick")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("LED计时器控件")]
|
||||
public sealed class UILedStopwatch : UILedDisplay
|
||||
{
|
||||
private readonly System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
|
||||
|
@ -40,6 +40,7 @@ namespace Sunny.UI
|
||||
}
|
||||
|
||||
[ToolboxItem(true)]
|
||||
[Description("提示灯控件")]
|
||||
public sealed class UILight : UIControl
|
||||
{
|
||||
private Timer timer;
|
||||
|
@ -34,6 +34,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("分割线控件")]
|
||||
public sealed class UILine : UIControl
|
||||
{
|
||||
public UILine()
|
||||
|
@ -45,6 +45,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("ItemClick")]
|
||||
[DefaultProperty("Items")]
|
||||
[Description("列表框控件")]
|
||||
public sealed class UIListBox : UIPanel, IToolTip
|
||||
{
|
||||
private readonly ListBoxEx listbox = new ListBoxEx();
|
||||
|
@ -29,6 +29,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("带颜色标签控件")]
|
||||
public sealed class UIMarkLabel : UILabel
|
||||
{
|
||||
public UIMarkLabel()
|
||||
|
@ -28,6 +28,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("下拉菜单按钮控件")]
|
||||
public class UIMenuButton : UISymbolButton
|
||||
{
|
||||
private bool _showDropArrow = true;
|
||||
|
@ -19,15 +19,16 @@
|
||||
* 2021-08-15: V3.0.6 增加文件说明
|
||||
******************************************************************************/
|
||||
|
||||
using Sunny.UI.Win32;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
using Sunny.UI.Win32;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("Tick")]
|
||||
[DefaultProperty("Interval")]
|
||||
[Description("毫秒定时器控件")]
|
||||
public class UIMillisecondTimer : Component
|
||||
{
|
||||
public event EventHandler Tick;
|
||||
|
@ -34,6 +34,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("迷你分页控件")]
|
||||
public class UIMiniPagination : UIPanel
|
||||
{
|
||||
public delegate void OnPageChangeEventHandler(object sender, object pagingSource, int pageIndex, int count);
|
||||
|
@ -42,6 +42,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("MenuItemClick")]
|
||||
[DefaultProperty("Nodes")]
|
||||
[Description("导航栏控件")]
|
||||
public sealed partial class UINavBar : ScrollableControl, IStyleInterface, IZoomScale
|
||||
{
|
||||
public readonly TreeView Menu = new TreeView();
|
||||
|
@ -52,6 +52,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("MenuItemClick")]
|
||||
[DefaultProperty("Nodes")]
|
||||
[Description("导航菜单控件")]
|
||||
public sealed class UINavMenu : TreeView, IStyleInterface, IZoomScale
|
||||
{
|
||||
public delegate void OnMenuItemClick(TreeNode node, NavMenuItem item, int pageIndex);
|
||||
|
@ -34,6 +34,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("模拟数字键盘输入框控件")]
|
||||
public class UINumPadTextBox : UIDropControl, IToolTip, IHideDropDown
|
||||
{
|
||||
public UINumPadTextBox()
|
||||
|
@ -36,6 +36,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("分页控件")]
|
||||
public class UIPagination : UIPanel, ITranslate
|
||||
{
|
||||
public delegate void OnPageChangeEventHandler(object sender, object pagingSource, int pageIndex, int count);
|
||||
|
@ -36,6 +36,7 @@ using System.Drawing.Drawing2D;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("面板控件")]
|
||||
public partial class UIPanel : UIUserControl
|
||||
{
|
||||
public UIPanel()
|
||||
|
@ -30,6 +30,7 @@ using System.Drawing.Drawing2D;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("管道控件")]
|
||||
public class UIPipe : UIControl
|
||||
{
|
||||
public UIPipe()
|
||||
|
@ -38,6 +38,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[Description("进度条控件")]
|
||||
public sealed class UIProcessBar : UIControl
|
||||
{
|
||||
private int maximum = 100;
|
||||
|
@ -19,25 +19,25 @@
|
||||
* 2020-01-01: V2.2.0 增加文件说明
|
||||
* 2020-06-27: V2.2.5 重绘左右选择按钮
|
||||
* 2020-08-12: V2.2.7 标题垂直居中
|
||||
* 2021-04-01: V3.0.2 修改第一个TabPage关不掉的Bug
|
||||
* 2021-04-01: V3.0.2 修改第一个 TabPage 关不掉的Bug
|
||||
* 2021-06-08: V3.0.4 Tab页标题选中高亮颜色增加可调整高度
|
||||
* 2021-07-14: V3.0.5 支持Tab在下方显示
|
||||
* 2021-08-14: V3.0.6 增加DisposeTabPageAfterRemove标志,移除TabPage后,是否自动销毁TabPage
|
||||
* 2021-08-14: V3.0.6 增加 DisposeTabPageAfterRemove 标志,移除 TabPage 后,是否自动销毁 TabPage
|
||||
* 2022-01-02: V3.0.9 增加角标
|
||||
* 2022-01-13: V3.1.0 修改删除页面时的页面跳转
|
||||
* 2022-04-18: V3.1.5 关闭按钮增加鼠标移入的效果
|
||||
* 2022-04-20: V3.1.5 不显示标签页时屏蔽左右键
|
||||
* 2022-05-11: V3.1.8 修复屏蔽左右键后其他控件无法使用左右键的问题
|
||||
* 2022-05-17: V3.1.9 修复了一个首页无法关闭的问题
|
||||
* 2022-06-19: V3.2.0 多页面框架关闭页面时执行UIPage的FormClosed事件
|
||||
* 2022-06-19: V3.2.0 多页面框架关闭页面时执行 UIPage 的 FormClosed 事件
|
||||
* 2023-05-12: V3.3.6 重构DrawString函数
|
||||
* 2023-11-06: V3.5.2 重构主题
|
||||
* 2023-12-13: V3.6.2 优化UIPage的Init和Final加载逻辑
|
||||
* 2024-11-29: V3.8.0 修复了SelectedIndex=-1时的报错
|
||||
* 2023-12-13: V3.6.2 优化 UIPage 的 Init 和 Final 加载逻辑
|
||||
* 2024-11-29: V3.8.0 修复了 SelectedIndex = -1时的报错
|
||||
* 2024-12-12: V3.8.0 修复标签文字越界显示 #IB8571
|
||||
* 2024-12-12: V3.8.0 增加未选页签颜色 #IB7U69
|
||||
* 2025-02-07: V3.8.1 修复切换主题色时,TabPage未设置背景色,#IBKDR7
|
||||
* 2025-02-13: V3.8.1 增加标签页分割线属性ShowTabDivider,#IBLERL
|
||||
* 2025-02-07: V3.8.1 修复切换主题色时,TabPage 未设置背景色,#IBKDR7
|
||||
* 2025-02-13: V3.8.1 增加标签页分割线属性 ShowTabDivider,#IBLERL
|
||||
******************************************************************************/
|
||||
|
||||
using System;
|
||||
|
Loading…
x
Reference in New Issue
Block a user