-//\r
-// SplitterPanel.cs\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-// Copyright (c) 2006 Jonathan Pobst\r
-//\r
-// Authors:\r
-// Jonathan Pobst (monkey@jpobst.com)\r
-//\r
-\r
-#if NET_2_0\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using System.ComponentModel;\r
-using System.Drawing;\r
-using System.Drawing.Drawing2D;\r
-\r
-namespace System.Windows.Forms\r
-{\r
- [ComVisibleAttribute (true)]\r
- [ClassInterfaceAttribute (ClassInterfaceType.AutoDispatch)]\r
- public sealed class SplitterPanel : Panel\r
- {\r
- private SplitContainer owner;\r
-\r
- public SplitterPanel (SplitContainer owner)\r
- {\r
- this.owner = owner;\r
- }\r
-\r
- #region Public Properties\r
- // All of these are overriden just to hide them from the IDE :/\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public AnchorStyles Anchor {\r
- get { return base.Anchor; }\r
- set { base.Anchor = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public bool AutoSize {\r
- get { return base.AutoSize; }\r
- set { base.AutoSize = value; }\r
- }\r
-\r
- //Uncomment once this has been implemented in ContainerControl.cs\r
- //[Browsable (false)]\r
- //[EditorBrowsable (EditorBrowsableState.Never)]\r
- //[Localizable(false)]\r
- //public override AutoSizeMode AutoSizeMode {\r
- // get { return base.AutoSizeMode; }\r
- // set { base.AutoSizeMode = value; }\r
- //}\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public BorderStyle BorderStyle {\r
- get { return base.BorderStyle; }\r
- set { base.BorderStyle = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public DockStyle Dock {\r
- get { return base.Dock; }\r
- set { base.Dock = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public DockPaddingEdges DockPadding {\r
- get { return base.DockPadding; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public int Height {\r
- get { return this.Visible ? base.Height : 0; }\r
- set { throw new NotSupportedException ("The height cannot be set"); }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public Point Location {\r
- get { return base.Location; }\r
- set { base.Location = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public Size MaximumSize {\r
- get { return base.MaximumSize; }\r
- set { base.MaximumSize = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public Size MinimumSize {\r
- get { return base.MinimumSize; }\r
- set { base.MinimumSize = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public string Name {\r
- get { return base.name; }\r
- set { base.name = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public Control Parent {\r
- get { return base.Parent; }\r
- set { throw new NotSupportedException ("The parent cannot be set"); }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public Size Size {\r
- get { return base.Size; }\r
- set { base.Size = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public int TabIndex {\r
- get { return base.TabIndex; }\r
- set { base.TabIndex = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public bool TabStop {\r
- get { return base.TabStop; }\r
- set { base.TabStop = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public bool Visible {\r
- get { return base.Visible; }\r
- set { base.Visible = value; }\r
- }\r
-\r
- [Browsable (false)]\r
- [EditorBrowsable (EditorBrowsableState.Never)]\r
- new public int Width {\r
- get { return this.Visible ? base.Width : 0; }\r
- set { throw new NotSupportedException ("The width cannot be set"); }\r
- }\r
- #endregion\r
-\r
- #region Internal Properties\r
- internal int InternalHeight { set { base.Height = value; } }\r
-\r
- internal int InternalWidth { set { base.Width = value; } }\r
- #endregion\r
- }\r
-}\r
-#endif
\ No newline at end of file
+//
+// SplitterPanel.cs
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2006 Jonathan Pobst
+//
+// Authors:
+// Jonathan Pobst (monkey@jpobst.com)
+//
+
+using System;
+using System.Runtime.InteropServices;
+using System.ComponentModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+
+namespace System.Windows.Forms
+{
+ [ToolboxItem (false)]
+ [ComVisibleAttribute (true)]
+ [ClassInterfaceAttribute (ClassInterfaceType.AutoDispatch)]
+ [Docking (DockingBehavior.Never)]
+ [Designer ("System.Windows.Forms.Design.SplitterPanelDesigner, " + Consts.AssemblySystem_Design)]
+ public sealed class SplitterPanel : Panel
+ {
+ //private SplitContainer owner;
+
+ public SplitterPanel (SplitContainer owner)
+ {
+ //this.owner = owner;
+ }
+
+ #region Public Properties
+ // All of these are overriden just to hide them from the IDE :/
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public AnchorStyles Anchor {
+ get { return base.Anchor; }
+ set { base.Anchor = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public bool AutoSize {
+ get { return base.AutoSize; }
+ set { base.AutoSize = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [Localizable(false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public override AutoSizeMode AutoSizeMode {
+ get { return base.AutoSizeMode; }
+ set { } // Does not change, always GrowOnly
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public BorderStyle BorderStyle {
+ get { return base.BorderStyle; }
+ set { base.BorderStyle = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public DockStyle Dock {
+ get { return base.Dock; }
+ set { base.Dock = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public DockPaddingEdges DockPadding {
+ get { return base.DockPadding; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Always)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public int Height {
+ get { return this.Visible ? base.Height : 0; }
+ set { throw new NotSupportedException ("The height cannot be set"); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public Point Location {
+ get { return base.Location; }
+ set { base.Location = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public Size MaximumSize {
+ get { return base.MaximumSize; }
+ set { base.MaximumSize = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public Size MinimumSize {
+ get { return base.MinimumSize; }
+ set { base.MinimumSize = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public string Name {
+ get { return base.Name; }
+ set { base.Name = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public Control Parent {
+ get { return base.Parent; }
+ set { throw new NotSupportedException ("The parent cannot be set"); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public Size Size {
+ get { return base.Size; }
+ set { base.Size = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public int TabIndex {
+ get { return base.TabIndex; }
+ set { base.TabIndex = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public bool TabStop {
+ get { return base.TabStop; }
+ set { base.TabStop = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public bool Visible {
+ get { return base.Visible; }
+ set { base.Visible = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Always)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ new public int Width {
+ get { return this.Visible ? base.Width : 0; }
+ set { throw new NotSupportedException ("The width cannot be set"); }
+ }
+ #endregion
+
+ #region Public Events
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public new event EventHandler AutoSizeChanged {
+ add { base.AutoSizeChanged += value; }
+ remove { base.AutoSizeChanged -= value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public new event EventHandler DockChanged {
+ add { base.DockChanged += value; }
+ remove { base.DockChanged -= value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public new event EventHandler LocationChanged {
+ add { base.LocationChanged += value; }
+ remove { base.LocationChanged -= value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public new event EventHandler TabIndexChanged {
+ add { base.TabIndexChanged += value; }
+ remove { base.TabIndexChanged -= value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public new event EventHandler TabStopChanged {
+ add { base.TabStopChanged += value; }
+ remove { base.TabStopChanged -= value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public new event EventHandler VisibleChanged {
+ add { base.VisibleChanged += value; }
+ remove { base.VisibleChanged -= value; }
+ }
+ #endregion
+
+ #region Protected Properties
+ protected override Padding DefaultMargin { get { return new Padding (0); } }
+ #endregion
+
+ #region Internal Properties
+ internal int InternalHeight { set { base.Height = value; } }
+ internal int InternalWidth { set { base.Width = value; } }
+ #endregion
+ }
+}