/// <summary> /// <para>Constructs a new <see cref="T:Xsharp.MdiClientWidget"/> /// instance underneath a specified parent widget.</para> /// </summary> /// /// <param name="parent"> /// <para>The parent of the new widget.</para> /// </param> /// /// <param name="x"> /// <para>The X co-ordinate of the top-left corner of /// the new widget.</para> /// </param> /// /// <param name="y"> /// <para>The Y co-ordinate of the top-left corner of /// the new widget.</para> /// </param> /// /// <param name="width"> /// <para>The width of the new widget.</para> /// </param> /// /// <param name="height"> /// <para>The height of the new widget.</para> /// </param> /// /// <exception cref="T:System.ArgumentNullException"> /// <para>Raised if <paramref name="parent"/> is <see langword="null"/>. /// </para> /// </exception> /// /// <exception cref="T:Xsharp.XException"> /// <para>Raised if <paramref name="x"/>, <paramref name="y"/>, /// <paramref name="width"/>, or <paramref name="height"/> are /// out of range.</para> /// </exception> /// /// <exception cref="T.Xsharp.XInvalidOperationException"> /// <para>Raised if <paramref name="parent"/> is disposed, the /// root window, or an input-only window.</para> /// </exception> public MdiClientWidget(Widget parent, int x, int y, int width, int height) : base(parent, x, y, width, height, new Color(StandardColor.Foreground), new Color(StandardColor.BottomShadow)) { AutoMapChildren = false; Focusable = false; TopLevel.mdiClient = this; cascadeOffset = 0; // Create the button widgets for displaying window controls // in the menu area of the top-level window. minimize = new CaptionButtonWidget (parent, 0, 0, 14, 14, this, CaptionWidget.CaptionFlags.HasMinimize); restore = new CaptionButtonWidget (parent, 0, 0, 14, 14, this, CaptionWidget.CaptionFlags.HasRestore); close = new CaptionButtonWidget (parent, 0, 0, 14, 14, this, CaptionWidget.CaptionFlags.HasClose); }