public UI_CoreForm() { InitializeComponent(); thisForm = this; this.FormClosing += UI_CoreForm_FormClosing; cfForm = new UI_CanvasForm { TopLevel = false, Dock = DockStyle.Fill, }; this.Controls.Add(cfForm); cfForm.Location = new Point(0, pnSideBar.Size.Height); cfForm.Show(); cfForm.BringToFront(); //For Horizontal tab-style menu in coreform //xPadding = (Width - cfForm.Width); //coreYPadding = pnTopBar.Height; //yPadding = (Height - cfForm.Height) - coreYPadding; //For Vertical tab-style menu in coreform yPadding = (Height - cfForm.Height); corePadding = pnSideBar.Width; xPadding = (Width - cfForm.Width) - corePadding; //UICore.SetRTCColor(UICore.GeneralColor); }
public static void loadTileFormExtraWindow(CanvasGrid canvasGrid, string WindowHeader = "RTC Extra Form") { UI_CanvasForm extraForm = new UI_CanvasForm(true); extraForm.Controls.Clear(); extraForms.Add(extraForm); extraForm.FormBorderStyle = FormBorderStyle.FixedSingle; extraForm.MaximizeBox = false; extraForm.Text = WindowHeader; loadTileForm(extraForm, canvasGrid); extraForm.Show(); }
public UI_CoreForm() { InitializeComponent(); thisForm = this; cfForm = new UI_CanvasForm(); cfForm.TopLevel = false; cfForm.Dock = DockStyle.Fill; this.Controls.Add(cfForm); cfForm.Location = new Point(0, pnTopBar.Size.Height); cfForm.Show(); cfForm.BringToFront(); //For Horizontal tab-style menu in coreform //xPadding = (Width - cfForm.Width); //coreYPadding = pnTopBar.Height; //yPadding = (Height - cfForm.Height) - coreYPadding; //For Vertical tab-style menu in coreform yPadding = (Height - cfForm.Height); corePadding = pnTopBar.Width; xPadding = (Width - cfForm.Width) - corePadding; }