private void DockingManager1_TabGroupCreated(object sender, TabGroupCreatedEventArgs arg) { if (arg.CurrentTabGroup == arg.PreviousTabGroup) { tabControlAdv = arg.CurrentTabGroup; } }
/// <summary> /// Adds new tab page to the control and adds it before specified page. /// </summary> private static TabPageAdv AddTab( this TabControlAdv tabControl, string caption, Bitmap icon, TabPageAdv insertBefore) { var tab = new TabPageAdv(caption) { Image = icon, ImageSize = new Size(24, 24), Location = new Point(123, 1), ShowCloseButton = true, ThemesEnabled = false }; // insert panel with autoscrolling, which will serve as a container for controls var panel = new Panel { AutoScroll = true, Dock = DockStyle.Fill, Location = new Point(0, 0), Padding = new Padding(20, 10, 20, 25), Size = new Size(425, 387), }; tab.Controls.Add(panel); int index = tabControl.TabPages.IndexOf(insertBefore); // insert before the help page tabControl.TabPages.Insert(index, tab); return(tab); }
public static void TagControl(TabControlAdv tabControl) { foreach (TabPageAdv page in tabControl.TabPages) { // [20200415] fdragons Trace.WriteLine($"static class Appearances TagControl({page.Name})"); } }
// Triggered when a tabgroup host is created. private void tabbedMDIManager_TabControlAdded(object sender, Syncfusion.Windows.Forms.Tools.TabbedMDITabControlEventArgs args) { tabControl = args.TabControl; if (barItem18.Checked) { args.TabControl.Office2007ColorScheme = Office2007Theme.Blue; } else if (barItem19.Checked) { args.TabControl.Office2007ColorScheme = Office2007Theme.Black; } else if (barItem20.Checked) { args.TabControl.Office2007ColorScheme = Office2007Theme.Silver; } }
private void TabCtlLaserMaint_Click(object sender, EventArgs e) { int nIndex = 0; TabControlAdv Tab = sender as TabControlAdv; nIndex = Tab.SelectedTab.TabIndex; if (nIndex == 1) { BtnConfigureSave.Show(); TmrScannerTest.Stop(); } else if (nIndex == 2) { BtnConfigureSave.Hide(); TmrScannerTest.Start(); } }
public void CreateCompanyControlsAndLoadUsers(CSMessengerContext dbContext, byte companyID, short userID, ref TabControlAdv tabUsers, ref ContextMenuStrip contextmenuControl, EventHandler DoubleClickEventHandler) { foreach (UserCompany UserCompanyCurrent in dbContext.UserCompany.Where(uc => uc.CompanyID == companyID && uc.UserID == userID).OrderBy(uc => uc.CompanyGranted.Name)) { // Add a new Tab Page to the Tab control TabPageAdv tabpageNew = new TabPageAdv(UserCompanyCurrent.CompanyGranted.Name); tabUsers.TabPages.Add(tabpageNew); // Add a ListView to the TabPage ListView ListViewNew = AddControlsToTabPage(Constants.ListView_Company_Prefix + UserCompanyCurrent.CompanyID, ref tabpageNew, ref contextmenuControl, DoubleClickEventHandler); // Load Users LoadUsersOfCompany(dbContext, companyID, userID, UserCompanyCurrent.AccessCompanyID, ref ListViewNew); } }
/// <summary> /// Occurs before a form is displayed for the first time. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event data with information about the type.</param> private void Form1_Load(object sender, EventArgs e) { this.dockingManager1.DockControl(this.toolbox, this, DockingStyle.Left, 100); this.dockingManager1.DockControl(this.solutionExplorer, this, DockingStyle.Right, 150); this.dockingManager1.DockControl(this.teamExplorer, this, DockingStyle.Top, 175); this.dockingManager1.DockControl(this.serverExplorer, this.teamExplorer, DockingStyle.Left, 175); this.dockingManager1.DockControl(this.properties, this.teamExplorer, DockingStyle.Right, 175); this.dockingManager1.EnableDocumentMode = true; this.dockingManager1.DockAsDocument(this.startPage); this.startPage.BackColor = Color.White; this.dockingManager1.DockControl(this.findResults, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Right, 125); this.dockingManager1.DockControl(this.errorList, this.properties, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 175); int height = (int)((this.toolbox.Height / 3) * (1.5)); this.dockingManager1.SetControlSize(this.toolbox, new Size(this.Width / 5, this.Height)); this.dockingManager1.SetControlSize(this.solutionExplorer, new Size(this.Width / 5, this.Height)); this.dockingManager1.SetControlSize(this.teamExplorer, new Size(this.Width / 5, height)); this.dockingManager1.SetControlSize(this.serverExplorer, new Size(this.Width / 5, height)); this.dockingManager1.SetControlSize(this.properties, new Size(this.Width / 5, height)); this.dockingManager1.SetControlSize(this.errorList, new Size(this.Width / 5, (this.properties.Height / 2))); this.dockingManager1.SetControlSize(this.startPage, new Size(this.teamExplorer.Width + this.serverExplorer.Width, this.toolbox.Height / 3)); this.dockingManager1.SetControlSize(this.findResults, new Size(this.properties.Width, this.toolbox.Height / 3)); this.dockingManager1.DockStateChanging += DockingManager1_DockStateChanging; this.dockingManager1.DockContextMenu += DockingManager1_DockContextMenu; foreach (Control control in dockingManager1.ControlsArray) { if (control != null && control.HasChildren && control.Controls != null && control.Controls.Count > 0 && control.Controls.Count == 1 && control.Controls[0] is Label) { Label label = ((control.Controls[0]) as Label); label.ForeColor = ColorTranslator.FromHtml("#6d6d6d"); label.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); label.Padding = new Padding(0, 30, 0, 0); label.TextAlign = ContentAlignment.MiddleCenter; UpdateCaptionCustomization(control, label); } } if (dockingManager1.GetType() != null) { PropertyInfo property = dockingManager1.GetType().GetProperty("DocumentContainer", BindingFlags.Instance | BindingFlags.NonPublic); if (property != null) { var source = property.GetValue(dockingManager1, null); if (source != null) { TabbedMDIManager documentContainer = (TabbedMDIManager)source; if (documentContainer != null && documentContainer.TabGroupHosts != null) { foreach (TabHost tabHost in documentContainer.TabGroupHosts) { if (tabHost != null && tabHost.MDITabPanel != null) { TabControlAdv tabControl = tabHost.MDITabPanel as TabControlAdv; if (tabControl != null) { tabControl.ShowTabCloseButton = false; } } } if (documentContainer.ContextMenuItem != null) { documentContainer.ContextMenuItem.BeforePopup += ContextMenuItem_BeforePopup; } } } } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.imageList2 = new System.Windows.Forms.ImageList(this.components); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.xpTaskBar1 = new TaskBar.GradientTaskBar(this.components); this.xpTaskBarBox1 = new Syncfusion.Windows.Forms.Tools.XPTaskBarBox(); this.xpTaskBarBox2 = new Syncfusion.Windows.Forms.Tools.XPTaskBarBox(); this.label1 = new System.Windows.Forms.Label(); this.tabControlAdv1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv(); this.tabPageAdv1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv(); this.tabPageAdv2 = new Syncfusion.Windows.Forms.Tools.TabPageAdv(); this.label2 = new System.Windows.Forms.Label(); this.xpTaskBarStyles = new Syncfusion.Windows.Forms.Tools.XPTaskBar(); this.xpTaskBarBox3 = new TaskBar.StyleTaskBox(); this.xpTaskBarBox4 = new TaskBar.StyleTaskBox(); this.xpTaskBarBox5 = new TaskBar.StyleTaskBox(); ((System.ComponentModel.ISupportInitialize)(this.xpTaskBar1)).BeginInit(); this.xpTaskBar1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit(); this.tabControlAdv1.SuspendLayout(); this.tabPageAdv1.SuspendLayout(); this.tabPageAdv2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xpTaskBarStyles)).BeginInit(); this.xpTaskBarStyles.SuspendLayout(); this.SuspendLayout(); // // imageList2 // this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream"))); this.imageList2.TransparentColor = System.Drawing.Color.Transparent; this.imageList2.Images.SetKeyName(0, ""); this.imageList2.Images.SetKeyName(1, ""); // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, ""); this.imageList1.Images.SetKeyName(1, ""); this.imageList1.Images.SetKeyName(2, ""); this.imageList1.Images.SetKeyName(3, ""); this.imageList1.Images.SetKeyName(4, ""); // // xpTaskBar1 // this.xpTaskBar1.AutoScroll = true; this.xpTaskBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(78)))), ((int)(((byte)(129))))); this.xpTaskBar1.BlendImage = ((System.Drawing.Image)(resources.GetObject("xpTaskBar1.BlendImage"))); this.xpTaskBar1.BorderColor = System.Drawing.Color.Black; this.xpTaskBar1.Controls.Add(this.xpTaskBarBox1); this.xpTaskBar1.Controls.Add(this.xpTaskBarBox2); this.xpTaskBar1.Dock = System.Windows.Forms.DockStyle.Right; this.xpTaskBar1.GradientEndColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(78)))), ((int)(((byte)(129))))); this.xpTaskBar1.GradientStartColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(241)))), ((int)(((byte)(242))))); this.xpTaskBar1.HeaderImageList = this.imageList2; this.xpTaskBar1.Location = new System.Drawing.Point(280, 0); this.xpTaskBar1.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218))))); this.xpTaskBar1.MinimumSize = new System.Drawing.Size(0, 0); this.xpTaskBar1.Name = "xpTaskBar1"; this.xpTaskBar1.Padding = new System.Windows.Forms.Padding(10, 5, 10, 0); this.xpTaskBar1.Size = new System.Drawing.Size(240, 400); this.xpTaskBar1.TabIndex = 0; // // xpTaskBarBox1 // this.xpTaskBarBox1.BackColor = System.Drawing.Color.Transparent; this.xpTaskBarBox1.DrawFocusRect = false; this.xpTaskBarBox1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.xpTaskBarBox1.ForeColor = System.Drawing.Color.White; this.xpTaskBarBox1.HeaderBackColor = System.Drawing.Color.Transparent; this.xpTaskBarBox1.HeaderForeColor = System.Drawing.Color.White; this.xpTaskBarBox1.HeaderImageIndex = 0; this.xpTaskBarBox1.HeaderImageList = this.imageList2; this.xpTaskBarBox1.HitTaskBoxArea = false; this.xpTaskBarBox1.HotTrackColor = System.Drawing.Color.Empty; this.xpTaskBarBox1.ItemBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(242)))), ((int)(((byte)(241))))); this.xpTaskBarBox1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPTaskBarItem[] { new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item 1", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item2", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item 3", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item 4", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item 5", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Item 6", System.Drawing.Color.Black, -1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0) }); this.xpTaskBarBox1.Location = new System.Drawing.Point(10, 5); this.xpTaskBarBox1.Name = "xpTaskBarBox1"; this.xpTaskBarBox1.Size = new System.Drawing.Size(220, 179); this.xpTaskBarBox1.TabIndex = 0; this.xpTaskBarBox1.Text = "Tasks"; this.xpTaskBarBox1.ProvideHeaderBackgroundBrush += new Syncfusion.Windows.Forms.Tools.ProvideBrushEventHandler(this.xpTaskBarBox1_ProvideHeaderBackgroundBrush); // // xpTaskBarBox2 // this.xpTaskBarBox2.BackColor = System.Drawing.Color.Transparent; this.xpTaskBarBox2.ForeColor = System.Drawing.Color.White; this.xpTaskBarBox2.HeaderBackColor = System.Drawing.Color.Transparent; this.xpTaskBarBox2.HeaderForeColor = System.Drawing.Color.White; this.xpTaskBarBox2.HeaderImageIndex = 1; this.xpTaskBarBox2.HitTaskBoxArea = false; this.xpTaskBarBox2.HotTrackColor = System.Drawing.Color.Empty; this.xpTaskBarBox2.ImageList = this.imageList1; this.xpTaskBarBox2.ItemBackColor = System.Drawing.Color.Transparent; this.xpTaskBarBox2.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPTaskBarItem[] { new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Canada", System.Drawing.Color.Empty, 0, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("France", System.Drawing.Color.Empty, 1, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Germany", System.Drawing.Color.Empty, 2, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("UK", System.Drawing.Color.Empty, 3, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("USA", System.Drawing.Color.Empty, 4, null, null, true, true, "", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0) }); this.xpTaskBarBox2.Location = new System.Drawing.Point(10, 184); this.xpTaskBarBox2.Name = "xpTaskBarBox2"; this.xpTaskBarBox2.Size = new System.Drawing.Size(220, 152); this.xpTaskBarBox2.TabIndex = 1; this.xpTaskBarBox2.Text = "Countries..."; // // label1 // this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(143)))), ((int)(((byte)(196)))), ((int)(((byte)(250))))); this.label1.Location = new System.Drawing.Point(0, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(280, 400); this.label1.TabIndex = 1; this.label1.Text = "MSN like TaskBar"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tabControlAdv1 // this.tabControlAdv1.ActiveTabColor = System.Drawing.SystemColors.Highlight; this.tabControlAdv1.BackColor = System.Drawing.Color.White; this.tabControlAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tabControlAdv1.Controls.Add(this.tabPageAdv1); this.tabControlAdv1.Controls.Add(this.tabPageAdv2); this.tabControlAdv1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControlAdv1.FixedSingleBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(141)))), ((int)(((byte)(178)))), ((int)(((byte)(227))))); this.tabControlAdv1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.tabControlAdv1.Location = new System.Drawing.Point(10, 10); this.tabControlAdv1.Name = "tabControlAdv1"; this.tabControlAdv1.Size = new System.Drawing.Size(526, 427); this.tabControlAdv1.TabIndex = 2; this.tabControlAdv1.TabPanelBackColor = System.Drawing.Color.White; this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererMetro); this.tabControlAdv1.ThemesEnabled = true; // // tabPageAdv1 // this.tabPageAdv1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(237)))), ((int)(((byte)(248))))); this.tabPageAdv1.Controls.Add(this.label1); this.tabPageAdv1.Controls.Add(this.xpTaskBar1); this.tabPageAdv1.Image = null; this.tabPageAdv1.ImageSize = new System.Drawing.Size(16, 16); this.tabPageAdv1.Location = new System.Drawing.Point(3, 24); this.tabPageAdv1.Name = "tabPageAdv1"; this.tabPageAdv1.ShowCloseButton = true; this.tabPageAdv1.Size = new System.Drawing.Size(520, 400); this.tabPageAdv1.TabIndex = 1; this.tabPageAdv1.Text = "MSN TaskBar"; this.tabPageAdv1.ThemesEnabled = false; // // tabPageAdv2 // this.tabPageAdv2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(237)))), ((int)(((byte)(248))))); this.tabPageAdv2.Controls.Add(this.label2); this.tabPageAdv2.Controls.Add(this.xpTaskBarStyles); this.tabPageAdv2.Image = null; this.tabPageAdv2.ImageSize = new System.Drawing.Size(16, 16); this.tabPageAdv2.Location = new System.Drawing.Point(3, 24); this.tabPageAdv2.Name = "tabPageAdv2"; this.tabPageAdv2.ShowCloseButton = true; this.tabPageAdv2.Size = new System.Drawing.Size(520, 400); this.tabPageAdv2.TabIndex = 2; this.tabPageAdv2.Text = "Custom TaskBar"; this.tabPageAdv2.ThemesEnabled = false; // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Dock = System.Windows.Forms.DockStyle.Fill; this.label2.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(143)))), ((int)(((byte)(196)))), ((int)(((byte)(250))))); this.label2.Location = new System.Drawing.Point(184, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(336, 400); this.label2.TabIndex = 2; this.label2.Text = "Custom TaskBar "; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // xpTaskBarStyles // this.xpTaskBarStyles.BackColor = System.Drawing.Color.White; this.xpTaskBarStyles.BorderColor = System.Drawing.Color.Black; this.xpTaskBarStyles.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.xpTaskBarStyles.Controls.Add(this.xpTaskBarBox3); this.xpTaskBarStyles.Controls.Add(this.xpTaskBarBox4); this.xpTaskBarStyles.Controls.Add(this.xpTaskBarBox5); this.xpTaskBarStyles.Dock = System.Windows.Forms.DockStyle.Left; this.xpTaskBarStyles.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.xpTaskBarStyles.Location = new System.Drawing.Point(0, 0); this.xpTaskBarStyles.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218))))); this.xpTaskBarStyles.MinimumSize = new System.Drawing.Size(0, 0); this.xpTaskBarStyles.Name = "xpTaskBarStyles"; this.xpTaskBarStyles.Padding = new System.Windows.Forms.Padding(10, 15, 10, 0); this.xpTaskBarStyles.Size = new System.Drawing.Size(184, 400); this.xpTaskBarStyles.Style = Syncfusion.Windows.Forms.Tools.XPTaskBarStyle.Metro; this.xpTaskBarStyles.TabIndex = 3; this.xpTaskBarStyles.VerticalPadding = 15; // // xpTaskBarBox3 // this.xpTaskBarBox3.DrawFocusRect = false; this.xpTaskBarBox3.HeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218))))); this.xpTaskBarBox3.HeaderImageIndex = -1; this.xpTaskBarBox3.HitTaskBoxArea = false; this.xpTaskBarBox3.HotTrackColor = System.Drawing.Color.Empty; this.xpTaskBarBox3.ItemBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(187)))), ((int)(((byte)(240))))); this.xpTaskBarBox3.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPTaskBarItem[] { new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Make a New Folder", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem0", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Publish this Folder to the web", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem1", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Copy", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem6", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Paste", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem7", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0) }); this.xpTaskBarBox3.Location = new System.Drawing.Point(10, 15); this.xpTaskBarBox3.Name = "xpTaskBarBox3"; this.xpTaskBarBox3.PADY = 2; this.xpTaskBarBox3.Size = new System.Drawing.Size(162, 99); this.xpTaskBarBox3.TabIndex = 0; this.xpTaskBarBox3.Text = "Files And Folder Task"; this.xpTaskBarBox3.Paint += new System.Windows.Forms.PaintEventHandler(this.xpTaskBarBox_Paint); // // xpTaskBarBox4 // this.xpTaskBarBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(223)))), ((int)(((byte)(242))))); this.xpTaskBarBox4.DrawFocusRect = false; this.xpTaskBarBox4.HeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218))))); this.xpTaskBarBox4.HeaderImageIndex = -1; this.xpTaskBarBox4.HitTaskBoxArea = false; this.xpTaskBarBox4.HotTrackColor = System.Drawing.Color.Empty; this.xpTaskBarBox4.ItemBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(187)))), ((int)(((byte)(240))))); this.xpTaskBarBox4.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPTaskBarItem[] { new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("My Documents", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem2", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Desktop", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem5", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("My Computer", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem8", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("My Network Places", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem9", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("My Music", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem10", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0) }); this.xpTaskBarBox4.Location = new System.Drawing.Point(10, 129); this.xpTaskBarBox4.Name = "xpTaskBarBox4"; this.xpTaskBarBox4.PADY = 2; this.xpTaskBarBox4.Size = new System.Drawing.Size(162, 118); this.xpTaskBarBox4.TabIndex = 1; this.xpTaskBarBox4.Text = "Other Places"; this.xpTaskBarBox4.Paint += new System.Windows.Forms.PaintEventHandler(this.xpTaskBarBox_Paint); // // xpTaskBarBox5 // this.xpTaskBarBox5.DrawFocusRect = false; this.xpTaskBarBox5.HeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218))))); this.xpTaskBarBox5.HeaderImageIndex = -1; this.xpTaskBarBox5.HitTaskBoxArea = false; this.xpTaskBarBox5.HotTrackColor = System.Drawing.Color.Empty; this.xpTaskBarBox5.ItemBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(187)))), ((int)(((byte)(240))))); this.xpTaskBarBox5.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPTaskBarItem[] { new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Cut", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem3", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Copy", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem4", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Paste", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem11", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0), new Syncfusion.Windows.Forms.Tools.XPTaskBarItem("Delete", System.Drawing.Color.Empty, -1, null, "", true, true, "XPTaskBarItem12", new System.Drawing.Font("Microsoft Sans Serif", 8.25F), 0) }); this.xpTaskBarBox5.Location = new System.Drawing.Point(10, 262); this.xpTaskBarBox5.Name = "xpTaskBarBox5"; this.xpTaskBarBox5.PADY = 2; this.xpTaskBarBox5.Size = new System.Drawing.Size(162, 99); this.xpTaskBarBox5.TabIndex = 2; this.xpTaskBarBox5.Text = "ClipBoard"; this.xpTaskBarBox5.Paint += new System.Windows.Forms.PaintEventHandler(this.xpTaskBarBox_Paint); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.White; this.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.CaptionAlign = System.Windows.Forms.HorizontalAlignment.Center; this.ClientSize = new System.Drawing.Size(546, 447); this.Controls.Add(this.tabControlAdv1); this.DropShadow = true; this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.IconAlign = System.Windows.Forms.HorizontalAlignment.Left; this.MetroColor = System.Drawing.Color.White; this.Name = "Form1"; this.Padding = new System.Windows.Forms.Padding(10); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "XpTaskBar"; ((System.ComponentModel.ISupportInitialize)(this.xpTaskBar1)).EndInit(); this.xpTaskBar1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).EndInit(); this.tabControlAdv1.ResumeLayout(false); this.tabPageAdv1.ResumeLayout(false); this.tabPageAdv2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.xpTaskBarStyles)).EndInit(); this.xpTaskBarStyles.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.comboBox2 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv(); this.splitter1 = new System.Windows.Forms.Splitter(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.textLog = new System.Windows.Forms.TextBox(); this.tabPage1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv(); this.comboBoxAdvSampleControl1 = new ComboTest.MultiColumnComboBoxSampleControl(); this.tabControl1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).BeginInit(); this.groupBox1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit(); this.tabControl1.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.Controls.Add(this.comboBox2); this.panel1.Controls.Add(this.splitter1); this.panel1.Dock = System.Windows.Forms.DockStyle.Right; this.panel1.Location = new System.Drawing.Point(456, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(176, 517); this.panel1.TabIndex = 6; // // comboBox2 // this.comboBox2.Dock = System.Windows.Forms.DockStyle.Top; this.comboBox2.Location = new System.Drawing.Point(3, 0); this.comboBox2.Name = "comboBox2"; this.comboBox2.Size = new System.Drawing.Size(173, 21); this.comboBox2.TabIndex = 1; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(0, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 517); this.splitter1.TabIndex = 0; this.splitter1.TabStop = false; // // groupBox1 // this.groupBox1.BackColor = System.Drawing.Color.White; this.groupBox1.Controls.Add(this.textLog); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom; this.groupBox1.Location = new System.Drawing.Point(0, 262); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(512, 192); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; this.groupBox1.Text = "Events:"; // // textLog // this.textLog.Dock = System.Windows.Forms.DockStyle.Fill; this.textLog.Location = new System.Drawing.Point(3, 16); this.textLog.Multiline = true; this.textLog.Name = "textLog"; this.textLog.Size = new System.Drawing.Size(506, 173); this.textLog.TabIndex = 0; // // tabPage1 // this.tabPage1.BackColor = System.Drawing.Color.White; this.tabPage1.Controls.Add(this.comboBoxAdvSampleControl1); this.tabPage1.Image = null; this.tabPage1.ImageSize = new System.Drawing.Size(16, 16); this.tabPage1.Location = new System.Drawing.Point(1, 18); this.tabPage1.Name = "tabPage1"; this.tabPage1.ShowCloseButton = true; this.tabPage1.Size = new System.Drawing.Size(509, 242); this.tabPage1.TabIndex = 1; this.tabPage1.Text = "ComboBoxAdv"; this.tabPage1.ThemesEnabled = false; // // comboBoxAdvSampleControl1 // this.comboBoxAdvSampleControl1.BackColor = System.Drawing.Color.White; this.comboBoxAdvSampleControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.comboBoxAdvSampleControl1.Location = new System.Drawing.Point(0, 0); this.comboBoxAdvSampleControl1.Name = "comboBoxAdvSampleControl1"; this.comboBoxAdvSampleControl1.Size = new System.Drawing.Size(509, 242); this.comboBoxAdvSampleControl1.TabIndex = 0; // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.ItemSize = new System.Drawing.Size(82, 18); this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Name = "tabControl1"; this.tabControl1.Size = new System.Drawing.Size(512, 262); this.tabControl1.TabIndex = 7; this.tabControl1.TabPanelBackColor = System.Drawing.Color.White; this.tabControl1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererMetro); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 15); this.BackColor = System.Drawing.Color.White; this.CaptionFont = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ClientSize = new System.Drawing.Size(512, 453); this.Controls.Add(this.tabControl1); this.Controls.Add(this.groupBox1); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MinimumSize = new System.Drawing.Size(524, 486); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Multi Column ComboBox"; this.Load += new System.EventHandler(this.Form1_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.tabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).EndInit(); this.tabControl1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Handles the TabControlRemoved event of the mdiManager control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">The <see cref="TabbedMDITabControlEventArgs"/> instance containing the event data.</param> private void mdiManager_TabControlRemoved(object sender, TabbedMDITabControlEventArgs args) { tabControl = null; }
/// <summary> /// Handles the TabControlAdded event of the mdiManager control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">The <see cref="TabbedMDITabControlEventArgs"/> instance containing the event data.</param> private void mdiManager_TabControlAdded(object sender, TabbedMDITabControlEventArgs args) { tabControl = args.TabControl; }
/// <summary> /// Adds new tab page to the control. /// </summary> public static TabPageAdv AddTab(this TabControlAdv tabControl, string caption, Bitmap icon) { var page = tabControl.TabPages[tabControl.TabPages.Count - 1]; return(AddTab(tabControl, caption, icon, page)); }
public static void TagControl(TabControlAdv tabControl) { foreach (TabPageAdv page in tabControl.TabPages) { } }