public ZenTabbedForm(ITextProvider tprov) : base(null) { this.tprov = tprov; this.zenTimer = new ZenTimer(this); this.form = new ZenWinForm(getCanvas); headerHeight = (int)(ZenParams.HeaderHeight * Scale); innerPadding = (int)(ZenParams.InnerPadding * Scale); sysBtnPadding = (int)(ZenParams.SysBtnPadding * Scale); tooltipPadding = (int)(ZenParams.TooltipPadding * Scale); createZenControls(); tabs = new ZenTabCollection(this); form.Deactivate += onFormDeactivate; form.KeyDown += onFormKeyDown; form.MouseDown += onFormMouseDown; form.MouseMove += onFormMouseMove; form.MouseUp += onFormMouseUp; form.MouseClick += onFormMouseClick; form.MouseEnter += onFormMouseEnter; form.MouseLeave += onFormMouseLeave; form.FormClosed += onFormClosed; form.Load += onFormLoaded; }