Source/TextBoxItem.cs
(开头部分) 43KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace DevComponents.DotNetBar
{
using System;
using System.Drawing;
using DevComponents.DotNetBar.Controls;
using System.ComponentModel;
using DevComponents.DotNetBar.Rendering;
using System.Windows.Forms;
using DevComponents.Editors;
/// <summary>
/// Summary description for TextBoxItem.
/// </summary>
[System.ComponentModel.ToolboxItem(false), System.ComponentModel.DesignTimeVisible(false), Designer(typeof(Design.TextBoxItemDesigner))]
public class TextBoxItem:ImageItem,IPersonalizedMenuItem
{
public delegate void TextChangedEventHandler(object sender);
public event TextChangedEventHandler InputTextChanged;
public event System.Windows.Forms.KeyEventHandler KeyDown;
public event System.Windows.Forms.KeyPressEventHandler KeyPress;
public event System.Windows.Forms.KeyEventHandler KeyUp;
#if FRAMEWORK20
/// <summary>
/// Occurs when ButtonCustom control is clicked.
/// </summary>
public event EventHandler ButtonCustomClick;
/// <summary>
/// Occurs when ButtonCustom2 control is clicked.
/// </summary>
public event EventHandler ButtonCustom2Click;
#endif
private TextBoxX m_TextBox;
private bool m_MouseOver;
private bool m_AlwaysShowCaption;
private int m_TextBoxWidth;
private string m_ControlText="";
// IPersonalizedMenuItem Implementation
private eMenuVisibility m_MenuVisibility=eMenuVisibility.VisibleAlways;
private bool m_RecentlyUsed=false;
public TextBoxItem():this("","") {}
public TextBoxItem(string sName):this(sName,"") {}
public TextBoxItem(string sName, string ItemText):base(sName,ItemText)
{
CreateTextBox();
m_MouseOver=false;
m_AlwaysShowCaption=false;
m_TextBoxWidth=64;
this.ImageSize=new Size(16,16);
m_SupportedOrientation=eSupportedOrientation.Horizontal;
}
private void CreateTextBox()
{
if(m_TextBox!=null)
{
后面还有 1180 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。