* 增加控件在工具箱说明文字

This commit is contained in:
Sunny 2025-03-17 23:50:55 +08:00
parent 42c453820c
commit 8fce03fff2
47 changed files with 68 additions and 22 deletions

View File

@ -1,7 +1,7 @@
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2025 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@QQ.Com
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2025 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@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;

View File

@ -37,6 +37,7 @@ namespace Sunny.UI
[DefaultEvent("Click")]
[DefaultProperty("Symbol")]
[ToolboxItem(true)]
[Description("头像控件")]
public sealed class UIAvatar : UIControl, ISymbol, IZoomScale
{
/// <summary>

View File

@ -35,6 +35,7 @@ namespace Sunny.UI
/// </summary>
[DefaultProperty("Power")]
[ToolboxItem(true)]
[Description("电池电量控件")]
public sealed class UIBattery : UIControl
{
private Color colorDanger = UIColor.Orange;

View File

@ -41,6 +41,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultEvent("ItemIndexChanged")]
[DefaultProperty("ItemIndex")]
[Description("面包屑导航条控件")]
public class UIBreadcrumb : UIControl
{
/// <summary>

View File

@ -52,6 +52,7 @@ namespace Sunny.UI
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[ToolboxItem(true)]
[Description("按钮控件")]
public class UIButton : UIControl, IButtonControl
{
/// <summary>

View File

@ -30,6 +30,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[Description("日历控件")]
public class UICalendar : UIUserControl, ITranslate
{
public UICalendar()

View File

@ -42,6 +42,7 @@ namespace Sunny.UI
[DefaultEvent("CheckedChanged")]
[DefaultProperty("Checked")]
[ToolboxItem(true)]
[Description("复选框控件")]
public class UICheckBox : UIControl
{
/// <summary>

View File

@ -44,6 +44,7 @@ namespace Sunny.UI
/// </summary>
[DefaultProperty("Items")]
[DefaultEvent("ValueChanged")]
[Description("多选框组控件")]
public class UICheckBoxGroup : UIGroupBox
{
/// <summary>

View File

@ -41,6 +41,7 @@ namespace Sunny.UI
/// </summary>
[DefaultProperty("ValueChanged")]
[ToolboxItem(true)]
[Description("颜色选择框控件")]
public sealed class UIColorPicker : UIDropControl
{
private void InitializeComponent()

View File

@ -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
{

View File

@ -46,6 +46,7 @@ namespace Sunny.UI
{
[DefaultProperty("ValueChanged")]
[ToolboxItem(true)]
[Description("表格列表框控件")]
public class UIComboDataGridView : UIDropControl, IToolTip
{
private void InitializeComponent()

View File

@ -41,6 +41,7 @@ namespace Sunny.UI
[DefaultEvent("NodeSelected")]
[DefaultProperty("Nodes")]
[ToolboxItem(true)]
[Description("树形列表框控件")]
public class UIComboTreeView : UIDropControl, IToolTip
{
public UIComboTreeView()

View File

@ -31,6 +31,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[Description("上下文菜单")]
public sealed class UIContextMenuStrip : ContextMenuStrip, IStyleInterface, IZoomScale
{
private ContextMenuColorTable ColorTable = new ContextMenuColorTable();

View File

@ -60,6 +60,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[Description("表格控件")]
public class UIDataGridView : DataGridView, IStyleInterface, IZoomScale
{
private readonly UIScrollBar VBar = new UIScrollBar();

View File

@ -33,6 +33,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[Description("表格页脚控件")]
public sealed class UIDataGridViewFooter : UIControl
{
public UIDataGridViewFooter()

View File

@ -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);

View File

@ -38,6 +38,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultProperty("Value")]
[DefaultEvent("ValueChanged")]
[Description("日期时间选择框控件")]
public sealed class UIDatetimePicker : UIDropControl, IToolTip
{
private void InitializeComponent()

View File

@ -40,6 +40,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")]
[DefaultProperty("Value")]
[ToolboxItem(true)]
[Description("冷液晶显示LCD标签控件")]
public class UIDigitalLabel : UIControl
{
public UIDigitalLabel()

View File

@ -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);

View File

@ -42,6 +42,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[Description("滚动容器控件")]
public class UIFlowLayoutPanel : UIPanel, IToolTip
{
private UIVerScrollBarEx VBar;

View File

@ -32,6 +32,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[Description("Gif动态头像控件")]
public class UIGifAvatar : UIControl, IZoomScale
{
private Image image;

View File

@ -34,6 +34,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[DefaultProperty("Text")]
[Description("组框控件")]
public partial class UIGroupBox : UIPanel
{
public UIGroupBox()

View File

@ -43,6 +43,7 @@ namespace Sunny.UI
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[ToolboxItem(true)]
[Description("顶部图标按钮控件")]
public class UIHeaderButton : UIControl, IButtonControl, ISymbol
{
public UIHeaderButton()

View File

@ -35,6 +35,7 @@ namespace Sunny.UI
{
[DefaultProperty("Text")]
[DefaultEvent("ValueChanged")]
[Description("IP地址输入框控件")]
public sealed partial class UIIPTextBox : UIPanel
{
private IPAddress _value;

View File

@ -32,6 +32,7 @@ namespace Sunny.UI
/// <summary>
/// 图像按钮
/// </summary>
[Description("图像按钮控件")]
public sealed class UIImageButton : PictureBox, IStyleInterface, IZoomScale, IFormTranslator
{
private bool IsPress;

View File

@ -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();

View File

@ -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);

View File

@ -34,6 +34,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[Description("标签控件")]
public class UILabel : Label, IStyleInterface, IZoomScale, IFormTranslator
{
public UILabel()

View File

@ -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

View File

@ -31,6 +31,7 @@ namespace Sunny.UI
/// LED显示屏
/// </summary>
[DefaultProperty("Text")]
[Description("LED显示屏控件")]
public class UILedDisplay : Control
{
#region

View File

@ -30,6 +30,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[Description("LED标签控件")]
public class UILedLabel : UIControl
{
public UILedLabel()

View File

@ -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();

View File

@ -40,6 +40,7 @@ namespace Sunny.UI
}
[ToolboxItem(true)]
[Description("提示灯控件")]
public sealed class UILight : UIControl
{
private Timer timer;

View File

@ -34,6 +34,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[Description("分割线控件")]
public sealed class UILine : UIControl
{
public UILine()

View File

@ -45,6 +45,7 @@ namespace Sunny.UI
{
[DefaultEvent("ItemClick")]
[DefaultProperty("Items")]
[Description("列表框控件")]
public sealed class UIListBox : UIPanel, IToolTip
{
private readonly ListBoxEx listbox = new ListBoxEx();

View File

@ -29,6 +29,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[Description("带颜色标签控件")]
public sealed class UIMarkLabel : UILabel
{
public UIMarkLabel()

View File

@ -28,6 +28,7 @@ namespace Sunny.UI
{
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[Description("下拉菜单按钮控件")]
public class UIMenuButton : UISymbolButton
{
private bool _showDropArrow = true;

View File

@ -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;

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -34,6 +34,7 @@ namespace Sunny.UI
{
[ToolboxItem(true)]
[DefaultEvent("ValueChanged")]
[Description("模拟数字键盘输入框控件")]
public class UINumPadTextBox : UIDropControl, IToolTip, IHideDropDown
{
public UINumPadTextBox()

View File

@ -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);

View File

@ -36,6 +36,7 @@ using System.Drawing.Drawing2D;
namespace Sunny.UI
{
[Description("面板控件")]
public partial class UIPanel : UIUserControl
{
public UIPanel()

View File

@ -30,6 +30,7 @@ using System.Drawing.Drawing2D;
namespace Sunny.UI
{
[ToolboxItem(true)]
[Description("管道控件")]
public class UIPipe : UIControl
{
public UIPipe()

View File

@ -38,6 +38,7 @@ namespace Sunny.UI
[ToolboxItem(true)]
[DefaultEvent("ValueChanged")]
[DefaultProperty("Value")]
[Description("进度条控件")]
public sealed class UIProcessBar : UIControl
{
private int maximum = 100;

View File

@ -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标志TabPageTabPage
* 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;