} // ClientMargins #endregion #region Constructor public ClipControl() { ClientArea = new ClipBox { MinimumWidth = 0, MinimumHeight = 0, Left = ClientLeft, Top = ClientTop, Width = ClientWidth, Height = ClientHeight }; base.Add(ClientArea); } // ClipControl
//////////////////////////////////////////////////////////////////////////// #endregion public ListView(Manager manager, String[] _headers) : base(manager) { Width = 610; Height = 64; MinimumHeight = 16; CreateHeaders(_headers, Width); Headers.Init(); Headers.Parent = this; sbVert = new ScrollBar(Manager, Orientation.Vertical); sbVert.Init(); sbVert.Parent = this; sbVert.Left = Left + Width - sbVert.Width - Skin.Layers["Control"].ContentMargins.Right; sbVert.Top = Top + Skin.Layers["Control"].ContentMargins.Top + Headers.Height; sbVert.Height = Height - Skin.Layers["Control"].ContentMargins.Vertical - Headers.Height; sbVert.Anchor = Anchors.Top | Anchors.Right | Anchors.Bottom; sbVert.PageSize = 25; sbVert.Range = 1; sbVert.PageSize = 1; sbVert.StepSize = 10; pane = new ClipBox(manager); pane.Init(); pane.Parent = this; pane.Top = Skin.Layers["Control"].ContentMargins.Top + Headers.Height; pane.Left = Skin.Layers["Control"].ContentMargins.Left; pane.Width = Width - sbVert.Width - Skin.Layers["Control"].ContentMargins.Horizontal - 1; pane.Height = Height - Skin.Layers["Control"].ContentMargins.Vertical - Headers.Height; pane.Anchor = Anchors.All; pane.Passive = true; pane.CanFocus = false; pane.Draw += new DrawEventHandler(DrawPane); CanFocus = true; Passive = false; }
public override void decodeCssString(string cssString) { if (cssString == "border-box") { Clip = ClipBox.border; } else if (cssString == "padding-box") { Clip = ClipBox.padding; } else if (cssString == "content-box") { Clip = ClipBox.content; } }