Source/Editors/VisualInputBase.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;
using DevComponents.DotNetBar;
namespace DevComponents.Editors
{
public class VisualInputBase : VisualItem
{
#region Private Variables
private int _InputPosition = 0;
private string _InputStack = "";
private bool _InsertMode = true;
private string _UndoInputStack = "";
#endregion
#region Events
/// <summary>
/// Occurs when input on the control has changed.
/// </summary>
public event EventHandler InputChanged;
/// <summary>
/// Occurs when validation of the input is performed and it allows you to deny the input.
/// </summary>
public event InputValidationEventHandler ValidateInput;
/// <summary>
/// Occurs when IsEmpty property has changed.
/// </summary>
public event EventHandler IsEmptyChanged;
#endregion
#region Constructor
public VisualInputBase()
{
this.Focusable = true;
}
#endregion
#region Internal Implementation
internal override void ProcessKeyDown(KeyEventArgs e)
{
if (!_IsReadOnly)
base.ProcessKeyDown(e);
}
internal override void ProcessKeyPress(KeyPressEventArgs e)
{
if (!_IsReadOnly)
base.ProcessKeyPress(e);
}
internal override void ProcessKeyUp(KeyEventArgs e)
{
if (!_IsReadOnly)
base.ProcessKeyUp(e);
}
internal override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (!_IsReadOnly)
后面还有 410 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。