@ work in progress on dockers

This commit is contained in:
codeimp 2009-07-19 20:30:15 +00:00
parent bf8285030b
commit a5ad32d6d3
11 changed files with 190 additions and 53 deletions

View file

@ -1,4 +1,4 @@

#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
@ -33,41 +33,21 @@ using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using CodeImp.DoomBuilder.Map;
using System.Globalization;
using System.Windows.Forms.VisualStyles;
using System.Collections.Specialized;
#endregion
namespace CodeImp.DoomBuilder.Controls
{
public partial class DockersControl : UserControl
internal partial class DockersControl : UserControl
{
#region ================== Constants
private const int TAB_ITEM_LENGTH = 150;
private const int TAB_ITEM_SPACING = 6;
private const int TAB_ITEM_HEIGHT = 26;
public enum DockerOrientation
{
Left,
Right
};
#endregion
#region ================== Variables
private DockerOrientation orientation;
#endregion
#region ================== Properties
public DockerOrientation Orientation { get { return orientation; } set { orientation = value; } }
#region ================== Variables
#endregion
#region ================== Constructor
// Constructor
@ -75,25 +55,15 @@ namespace CodeImp.DoomBuilder.Controls
{
InitializeComponent();
}
#endregion
#region ================== Methods
#endregion
#region ================== Events
// Draw the tabs
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
VisualStyleRenderer tabdrawer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Pressed);
tabdrawer.DrawBackground(e.Graphics, new Rectangle(0, 0, 150, 26));
}
#endregion
}
}