// Constructor. public CaptionButtonWidget(Widget parent, int x, int y, int width, int height, MdiClientWidget mdi, CaptionWidget.CaptionFlags flags) : base(parent, x, y, width, height) { this.mdi = mdi; this.flags = flags; this.pressed = false; this.Layer = 10; }