Click here to Skip to main content
15,892,643 members
Articles / Desktop Programming / Windows Forms

Storm - the world's best IDE framework for .NET

Rate me:
Please Sign up or sign in to vote.
4.96/5 (82 votes)
4 Feb 2010LGPL311 min read 276.8K   6.5K   340  
Create fast, flexible, and extensible IDE applications easily with Storm - it takes nearly no code at all!
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.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)



Comments and Discussions