|
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Storm.TextEditor.Core.Splitting
{
[ToolboxItem(false)]
public class SplitViewThumbControl
: Control
{
#region Fields
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
#endregion
#region Methods
#region Protected
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// Draws a border that makes the SplitViewThumbControl visible.
/// </summary>
/// <param name="e">PaintEventArgs.</param>
protected override void OnPaint(PaintEventArgs e)
{
ControlPaint.DrawBorder3D(e.Graphics, 0, 0, this.Width, this.Height, Border3DStyle.Raised);
}
#endregion
#endregion
/// <summary>
/// Initializes a new instance of SplitViewThumbControl.
/// </summary>
public SplitViewThumbControl()
{
// Required by the Windows Forms Designer.
InitializeComponent();
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ThumbControl
//
Name = "ThumbControl";
Size = new System.Drawing.Size(24, 24);
BackColor = SystemColors.Control;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.