Example #1
0
		protected virtual void PaintTab(Graphics g, TabItem tab, bool first, bool last)
		{
			if(!tab.Visible)
				return;

            if (tab.Parent!=null && tab.Parent.HasPreRenderTabItem)
            {
                RenderTabItemEventArgs re = new RenderTabItemEventArgs(tab, g);
                tab.Parent.InvokePreRenderTabItem(re);
                if (re.Cancel) return;
            }

            using (GraphicsPath path = GetTabItemPath(tab, first, last))
            {
                TabColors colors = tab.Parent.GetTabColors(tab);

                DrawTabItemBackground(tab, path, colors, g);

                DrawTabText(tab, colors, g);
            }

            if (tab.Parent != null && tab.Parent.HasPostRenderTabItem)
            {
                RenderTabItemEventArgs re = new RenderTabItemEventArgs(tab, g);
                tab.Parent.InvokePostRenderTabItem(re);
            }
		}
Example #2
0
        public void openWindow(Form frm, string Name)
        {
            DevComponents.DotNetBar.TabItem         tp  = new DevComponents.DotNetBar.TabItem();
            DevComponents.DotNetBar.TabControlPanel tcp = new DevComponents.DotNetBar.TabControlPanel();
            tp.MouseDown += new MouseEventHandler(tp_MouseDown);
            tcp.Dock      = System.Windows.Forms.DockStyle.Fill;
            tcp.Location  = new System.Drawing.Point(0, 0);

            frm.TopLevel        = false;
            frm.Dock            = System.Windows.Forms.DockStyle.Fill;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Show();
            tcp.Controls.Add(frm);
            tp.Text = frm.Text;
            tp.Name = Name;

            if (!IsOpenTab(Name))
            {
                tcp.TabItem        = tp;
                tp.AttachedControl = tcp;
                tabMain.Controls.Add(tcp);
                tabMain.Tabs.Add(tp);
                tabMain.SelectedTab = tp;
            }
            tabMain.Refresh();
        }
Example #3
0
        //创建新tab控件
        private TabItem newTab(string title, string url, string id)
        {
            TabItem ti = new TabItem();
            TabControlPanel panel = new TabControlPanel();
            WebBrowser tb = new WebBrowser();

            panel.Dock = DockStyle.Fill;
            panel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
            panel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
            panel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
            panel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
            panel.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) | DevComponents.DotNetBar.eBorderSide.Bottom)));
            panel.Style.GradientAngle = 90;

            tb.Tag = id;
            tb.Dock = DockStyle.Fill;
            tb.ScrollBarsEnabled = false;
            tb.Navigate(url);
            tb.Visible = true;
            panel.Controls.Add(tb);
            panel.Tag = tb;
            tabControl1.Controls.Add(panel);

            ti.Text = title;
            ti.Tag = tb;
            panel.TabItem = ti;
            ti.AttachedControl = panel;
            tabControl1.Tabs.Add(ti);

            return (ti);
        }
Example #4
0
        private TabItem AddANewTab(string typeName)
        {
            // 通过数据库的值获得要打开的模块对应的窗体类型。
            System.Type type = System.Type.GetType(typeName);
            if (type == null)
            {
                MessageBox.Show("需要增加的窗体不存在,请确认", "注意", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(null);
            }

            object obj     = (object)Activator.CreateInstance(type, null);
            Form   mdiForm = obj as Form;

            DevComponents.DotNetBar.TabItem         tabItemNew         = new DevComponents.DotNetBar.TabItem();
            DevComponents.DotNetBar.TabControlPanel tabControlPanelNew = new DevComponents.DotNetBar.TabControlPanel();
            tabControlPanelNew.Dock             = System.Windows.Forms.DockStyle.Fill;
            tabControlPanelNew.Name             = typeName;
            tabControlPanelNew.TabItem          = tabItemNew;
            tabControlPanelNew.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
            tabItemNew.AttachedControl          = tabControlPanelNew;
            tabItemNew.Name         = typeName;
            mdiForm.FormBorderStyle = FormBorderStyle.None;
            mdiForm.TopLevel        = false;
            mdiForm.Parent          = tabControlPanelNew;
            mdiForm.Dock            = DockStyle.Fill;
            tabControlPanelNew.Controls.Add(mdiForm);
            mdiForm.Show();
            tabItemNew.Text = mdiForm.Text;
            tabControlMain.Controls.Add(tabControlPanelNew);
            tabControlMain.Tabs.Add(tabItemNew);
            tabControlMain.Refresh();
            tabControlMain.SelectedTab = tabItemNew;

            return(tabItemNew);
        }
Example #5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="chartMode">绘图的编辑模式</param>
 /// <param name="tabItem">标签页</param>
 /// <param name="id">绘图的id</param>
 /// <param name="name">绘图的名称</param>
 /// <param name="path">绘图的路径</param>
 public FlowChartManager(string chartMode, TabItem tabItem, string id, string name, string path)
 {
     this.chartMode = chartMode;
     this.tabItem = tabItem;
     this.id = id;
     this.name = name;
     this.path = path;            
 }
Example #6
0
 private Rectangle GetAdjustedRect(TabItem item)
 {
     Rectangle r = item.DisplayRectangle;
     if (item.TabAlignment == eTabStripAlignment.Top || item.TabAlignment == eTabStripAlignment.Bottom)
         r.Width -= (r.Height - 6);
     else
         r.Height -= (r.Width - 6);
     return r;
 }
Example #7
0
        private PanelEx createBhikkuPanel()
        {
            DevComponents.DotNetBar.TabItem tabItem1 = new DevComponents.DotNetBar.TabItem();
            tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
            DevComponents.DotNetBar.PanelEx bhikkuNamelistPanel = new PanelEx();

            tabControlPanel1.SuspendLayout();
            tabControlPanel1.ResumeLayout(false);

            tabItem1.AttachedControl = tabControlPanel1;
            tabItem1.Name            = "tabItem1";
            tabItem1.Text            = "Page " + tabControl1.Controls.Count;


            tabControlPanel1.Controls.Add(bhikkuNamelistPanel);
            tabControlPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            tabControlPanel1.Location = new System.Drawing.Point(0, 26);
            tabControlPanel1.Name     = "tabControlPanel1";
            tabControlPanel1.Padding  = new System.Windows.Forms.Padding(1);
            tabControlPanel1.Size     = new System.Drawing.Size(320, 772);
            tabControlPanel1.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
            tabControlPanel1.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
            tabControlPanel1.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
            tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
            tabControlPanel1.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                               | DevComponents.DotNetBar.eBorderSide.Bottom)));
            tabControlPanel1.Style.GradientAngle = 90;
            tabControlPanel1.TabIndex            = 1;
            tabControlPanel1.TabItem             = tabItem1;

            this.tabControl1.Controls.Add(tabControlPanel1);
            this.tabControl1.Tabs.Add(tabItem1);

            // panel
            bhikkuNamelistPanel.AutoScroll       = true;
            bhikkuNamelistPanel.CanvasColor      = System.Drawing.SystemColors.Control;
            bhikkuNamelistPanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
            bhikkuNamelistPanel.Dock             = System.Windows.Forms.DockStyle.Fill;
            bhikkuNamelistPanel.Location         = new System.Drawing.Point(1, 1);
            bhikkuNamelistPanel.Name             = "bhikkuNamelistPanel";
            bhikkuNamelistPanel.Size             = new System.Drawing.Size(318, 770);
            bhikkuNamelistPanel.Style.Alignment  = System.Drawing.StringAlignment.Center;
            bhikkuNamelistPanel.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
            bhikkuNamelistPanel.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
            bhikkuNamelistPanel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
            bhikkuNamelistPanel.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
            bhikkuNamelistPanel.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.PanelText;
            bhikkuNamelistPanel.Style.GradientAngle = 90;
            bhikkuNamelistPanel.TabIndex            = 3;
            bhikkuNamelistPanel.MouseEnter         += new System.EventHandler(this.bhikkuNamelistPanel_MouseEnter);

            return(bhikkuNamelistPanel);
        }
Example #8
0
 internal void _Insert(int index, TabItem value)
 {
     m_IgnoreEvents = true;
     try
     {
         value.Visible = true;
         m_Owner.NeedRecalcSize = true;
         List.Insert(index, value);
     }
     finally
     {
         m_IgnoreEvents = false;
     }
 }
Example #9
0
		protected override Region GetTabsRegion(TabsCollection tabs, TabItem lastTab)
		{
			bool bFirstVisible=true;
			Region tabRegion=new Region();
			tabRegion.MakeEmpty();
			foreach(TabItem tab in tabs)
			{
				if(!tab.Visible)
					continue;				
				GraphicsPath path=GetTabItemPath(tab,bFirstVisible,(tab==lastTab));
				tabRegion.Union(path);
				bFirstVisible=false;
			}
			return tabRegion;
		}
Example #10
0
        private void btnKham_Click(object sender, EventArgs e)
        {
            Truyendulieu.idchitietdangkykham = gridView1.GetFocusedRowCellDisplayText(IDCHITIETDANGKYKHAM);
            Truyendulieu.PhongKhamID         = sluPhongKham.EditValue.ToString();
            Truyendulieu.idkhambenh          = gridView1.GetFocusedRowCellDisplayText(idkhambenh);
            Main f1 = (Main)this.ParentForm;

            if (f1.checkTab(gridView1.GetFocusedRowCellDisplayText(tenbenhnhan)) == false)
            {
                DevComponents.DotNetBar.TabItem  t1     = f1.TabCtrl_main.CreateTab(gridView1.GetFocusedRowCellDisplayText(idkhambenh) + " - " + gridView1.GetFocusedRowCellDisplayText(tenbenhnhan));
                KhamBenhPro.KhamBenh.frmKhamBenh frmkb1 = new KhamBenhPro.KhamBenh.frmKhamBenh();
                frmkb1.FormBorderStyle = FormBorderStyle.None;
                frmkb1.TopLevel        = false;
                frmkb1.Dock            = DockStyle.Fill;
                t1.AttachedControl.Controls.Add(frmkb1);
                frmkb1.Show();
                f1.TabCtrl_main.SelectedTabIndex = f1.TabCtrl_main.Tabs.Count - 1;
            }
        }
Example #11
0
        private void gridControl1_Click_1(object sender, EventArgs e)
        {
            Truyendulieu.idchitietdangkykham = gridView1.GetFocusedRowCellDisplayText(idchitietdangkykham);
            Truyendulieu.idkhambenh          = gridView1.GetFocusedRowCellDisplayText(IDKhamBenh);
            Truyendulieu.PhongKhamID         = searchLookUpEdit1.EditValue.ToString();
            Truyendulieu.TypeName            = gridView1.GetFocusedRowCellDisplayText(TypeName);
            Main f = (Main)this.ParentForm;

            if (f.checkTab(gridView1.GetFocusedRowCellDisplayText(tenbenhnhan)) == false)
            {
                DevComponents.DotNetBar.TabItem  t      = f.TabCtrl_main.CreateTab(gridView1.GetFocusedRowCellDisplayText(IDKhamBenh) + " - " + gridView1.GetFocusedRowCellDisplayText(tenbenhnhan));
                KhamBenhPro.KhamBenh.frmKhamBenh frmkb1 = new KhamBenhPro.KhamBenh.frmKhamBenh();
                frmkb1.FormBorderStyle = FormBorderStyle.None;
                frmkb1.TopLevel        = false;
                frmkb1.Dock            = DockStyle.Fill;
                t.AttachedControl.Controls.Add(frmkb1);
                frmkb1.Show();
                f.TabCtrl_main.SelectedTabIndex = f.TabCtrl_main.Tabs.Count - 1;
            }
        }
Example #12
0
        /// <summary>
        /// 自动生成定制页面
        /// </summary>
        public void CreateCustomPage()
        {
            groupBox1.Visible = false;
            DevComponents.DotNetBar.TabControlPanel tabctpnDoc = new DevComponents.DotNetBar.TabControlPanel();
            tabctpnDoc.AutoScroll = true;
            DevComponents.DotNetBar.TabItem page = new DevComponents.DotNetBar.TabItem();
            page.Name   = "100:Custom";
            page.Text   = "定制";
            page.Click += new EventHandler(Item_Click);

            ucTemplateTimeSet uc = new ucTemplateTimeSet(myRecord.Id);

            uc.Dock = DockStyle.Fill;
            tabctpnDoc.Controls.Add(uc);
            page.AttachedControl = tabctpnDoc;
            tabctpnDoc.Dock      = DockStyle.Fill;
            tabctpnDoc.TabItem   = page;
            tctlDoc.Controls.Add(tabctpnDoc);
            tctlDoc.Tabs.Add(page);
            tctlDoc.SelectedTab = page;
        }
Example #13
0
        void newtab()
        {
            TabItem tabitem = new TabItem();
            TabControlPanel tabpanel = new TabControlPanel();
            TreeGX newmmap = new TreeGX();

            newmmap.AllowDrop = true;
            newmmap.AutoScrollMinSize = new System.Drawing.Size(60, 33);
            newmmap.BackColor = System.Drawing.Color.White;
            newmmap.CellEdit = true;
            newmmap.CommandBackColorGradientAngle = 90;
            newmmap.CommandMouseOverBackColor2SchemePart = DevComponents.Tree.eColorSchemePart.ItemHotBackground2;
            newmmap.CommandMouseOverBackColorGradientAngle = 90;
            newmmap.Dock = System.Windows.Forms.DockStyle.Fill;
            newmmap.ExpandLineColorSchemePart = DevComponents.Tree.eColorSchemePart.BarDockedBorder;
            newmmap.Font = new System.Drawing.Font("YouYuan", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            newmmap.Location = new System.Drawing.Point(1, 1);
            newmmap.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            newmmap.Name = "新文件";
            newmmap.NodesConnector = this.nodeConnector2;
            newmmap.NodeStyle = this.elementStyle1;
            newmmap.PathSeparator = ";";
            newmmap.RootConnector = this.nodeConnector1;
            newmmap.Size = new System.Drawing.Size(944, 409);
            newmmap.Styles.Add(this.elementStyle1);
            newmmap.Styles.Add(this.elementStyle2);
            newmmap.Styles.Add(this.elementStyle3);
            newmmap.Styles.Add(this.elementStyle4);
            newmmap.SuspendPaint = false;
            newmmap.TabIndex = 0;
            newmmap.Tag = tabs;
            newmmap.Text = "新文件";
            newmmap.AfterNodeSelect += new DevComponents.Tree.TreeGXNodeEventHandler(mindmap_AfterNodeSelect);

            tabitem.AttachedControl = tabpanel;
            tabitem.Name = "tabitem";
            tabitem.Tag = tabs++;
            tabitem.Text = "新文件";
            tabitem.Click += new System.EventHandler(tabitem_Click);

            tabpanel.Controls.Add(newmmap);
            tabpanel.DisabledBackColor = Color.Empty;
            tabpanel.Dock = System.Windows.Forms.DockStyle.Fill;
            tabpanel.Location = new System.Drawing.Point(0, 0);
            tabpanel.Name = "tabpanel";
            tabpanel.Padding = new System.Windows.Forms.Padding(1);
            tabpanel.Size = new System.Drawing.Size(946, 411);
            tabpanel.Style.BackColor1.Color = System.Drawing.Color.White;
            tabpanel.Style.Border = eBorderType.SingleLine;
            tabpanel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(211)))), ((int)(((byte)(211)))));
            tabpanel.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
            | DevComponents.DotNetBar.eBorderSide.Top)));
            tabpanel.Style.GradientAngle = -90;
            tabpanel.TabItem = tabitem;

            tabv.Tabs.Add(tabitem);
            tabv.SelectedTab = tabitem;

            Gib.nowmmap = newmmap;
        }
Example #14
0
 /// <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();
     this.tabControl1         = new DevComponents.DotNetBar.TabControl();
     this.tabControlPanel1    = new DevComponents.DotNetBar.TabControlPanel();
     this.richTextBox1        = new System.Windows.Forms.RichTextBox();
     this.panelEx1            = new DevComponents.DotNetBar.PanelEx();
     this.label1              = new System.Windows.Forms.Label();
     this.panelEx2            = new DevComponents.DotNetBar.PanelEx();
     this.richTextBox2        = new System.Windows.Forms.RichTextBox();
     this.tabItem1            = new DevComponents.DotNetBar.TabItem(this.components);
     this.tabControlPanel3    = new DevComponents.DotNetBar.TabControlPanel();
     this.richTextBox5        = new System.Windows.Forms.RichTextBox();
     this.panelEx5            = new DevComponents.DotNetBar.PanelEx();
     this.label3              = new System.Windows.Forms.Label();
     this.panelEx6            = new DevComponents.DotNetBar.PanelEx();
     this.richTextBox6        = new System.Windows.Forms.RichTextBox();
     this.tabItem3            = new DevComponents.DotNetBar.TabItem(this.components);
     this.tabControlPanel2    = new DevComponents.DotNetBar.TabControlPanel();
     this.richTextBox3        = new System.Windows.Forms.RichTextBox();
     this.panelEx3            = new DevComponents.DotNetBar.PanelEx();
     this.label2              = new System.Windows.Forms.Label();
     this.panelEx4            = new DevComponents.DotNetBar.PanelEx();
     this.richTextBox4        = new System.Windows.Forms.RichTextBox();
     this.tabItem2            = new DevComponents.DotNetBar.TabItem(this.components);
     this.itemPanel1          = new DevComponents.DotNetBar.ItemPanel();
     this.expandableSplitter1 = new DevComponents.DotNetBar.ExpandableSplitter();
     this.contextMenuBar1     = new DevComponents.DotNetBar.ContextMenuBar();
     ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tabControlPanel1.SuspendLayout();
     this.panelEx1.SuspendLayout();
     this.panelEx2.SuspendLayout();
     this.tabControlPanel3.SuspendLayout();
     this.panelEx5.SuspendLayout();
     this.panelEx6.SuspendLayout();
     this.tabControlPanel2.SuspendLayout();
     this.panelEx3.SuspendLayout();
     this.panelEx4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit();
     this.SuspendLayout();
     //
     // tabControl1
     //
     this.tabControl1.CanReorderTabs = true;
     this.tabControl1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.tabControlPanel1,
         this.tabControlPanel3,
         this.tabControlPanel2
     });
     this.tabControl1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location         = new System.Drawing.Point(128, 0);
     this.tabControl1.Name             = "tabControl1";
     this.tabControl1.SelectedTabFont  = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.tabControl1.SelectedTabIndex = 0;
     this.tabControl1.Size             = new System.Drawing.Size(368, 286);
     this.tabControl1.TabIndex         = 0;
     this.tabControl1.TabLayoutType    = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
     this.tabControl1.Tabs.Add(this.tabItem1);
     this.tabControl1.Tabs.Add(this.tabItem2);
     this.tabControl1.Tabs.Add(this.tabItem3);
     //
     // tabControlPanel1
     //
     this.tabControlPanel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox1,
         this.panelEx1
     });
     this.tabControlPanel1.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.tabControlPanel1.DockPadding.All         = 1;
     this.tabControlPanel1.Location                = new System.Drawing.Point(0, 26);
     this.tabControlPanel1.Name                    = "tabControlPanel1";
     this.tabControlPanel1.Size                    = new System.Drawing.Size(368, 260);
     this.tabControlPanel1.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((System.Byte)(142)), ((System.Byte)(179)), ((System.Byte)(231)));
     this.tabControlPanel1.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(237)), ((System.Byte)(254)));
     this.tabControlPanel1.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((System.Byte)(59)), ((System.Byte)(97)), ((System.Byte)(156)));
     this.tabControlPanel1.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                      | DevComponents.DotNetBar.eBorderSide.Bottom);
     this.tabControlPanel1.Style.GradientAngle = 90;
     this.tabControlPanel1.TabIndex            = 1;
     this.tabControlPanel1.TabItem             = this.tabItem1;
     //
     // richTextBox1
     //
     this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox1.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.richTextBox1.Location    = new System.Drawing.Point(1, 56);
     this.richTextBox1.Name        = "richTextBox1";
     this.richTextBox1.Size        = new System.Drawing.Size(366, 203);
     this.richTextBox1.TabIndex    = 1;
     this.richTextBox1.Text        = "OneNote style on new tab control has 16 predefined  color styles for tabs includi" +
                                     "ng default style that is based on system colors. This sample project is 100% con" +
                                     "structed using DotNetBar design-time interface. Right-click tabs to change their" +
                                     " color.";
     this.richTextBox1.ZoomFactor = 1.199854F;
     //
     // panelEx1
     //
     this.panelEx1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label1,
         this.panelEx2
     });
     this.panelEx1.Dock                              = System.Windows.Forms.DockStyle.Top;
     this.panelEx1.Location                          = new System.Drawing.Point(1, 1);
     this.panelEx1.Name                              = "panelEx1";
     this.panelEx1.Size                              = new System.Drawing.Size(366, 55);
     this.panelEx1.Style.Alignment                   = System.Drawing.StringAlignment.Center;
     this.panelEx1.Style.BackColor1.Color            = System.Drawing.Color.FromArgb(((System.Byte)(221)), ((System.Byte)(230)), ((System.Byte)(247)));
     this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.panelEx1.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx1.Style.GradientAngle               = 90;
     this.panelEx1.TabIndex                          = 0;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.Gray;
     this.label1.Location  = new System.Drawing.Point(8, 40);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(26, 14);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Title";
     //
     // panelEx2
     //
     this.panelEx2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox2
     });
     this.panelEx2.DockPadding.All                 = 6;
     this.panelEx2.Location                        = new System.Drawing.Point(8, 8);
     this.panelEx2.Name                            = "panelEx2";
     this.panelEx2.Size                            = new System.Drawing.Size(192, 32);
     this.panelEx2.Style.BackColor1.Color          = System.Drawing.Color.White;
     this.panelEx2.Style.Border                    = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelEx2.Style.BorderColor.Color         = System.Drawing.Color.Gray;
     this.panelEx2.Style.BorderDashStyle           = System.Drawing.Drawing2D.DashStyle.Dash;
     this.panelEx2.Style.CornerDiameter            = 5;
     this.panelEx2.Style.CornerType                = DevComponents.DotNetBar.eCornerType.Rounded;
     this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx2.Style.GradientAngle             = 90;
     this.panelEx2.TabIndex                        = 0;
     this.panelEx2.Text                            = "panelEx2";
     //
     // richTextBox2
     //
     this.richTextBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox2.Font        = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
     this.richTextBox2.Location    = new System.Drawing.Point(6, 6);
     this.richTextBox2.Name        = "richTextBox2";
     this.richTextBox2.ScrollBars  = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.richTextBox2.Size        = new System.Drawing.Size(180, 20);
     this.richTextBox2.TabIndex    = 0;
     this.richTextBox2.Text        = "DotNetBar";
     //
     // tabItem1
     //
     this.tabItem1.AttachedControl = this.tabControlPanel1;
     this.tabItem1.Name            = "tabItem1";
     this.tabItem1.Text            = "&General";
     //
     // tabControlPanel3
     //
     this.tabControlPanel3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox5,
         this.panelEx5
     });
     this.tabControlPanel3.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.tabControlPanel3.DockPadding.All         = 1;
     this.tabControlPanel3.Location                = new System.Drawing.Point(0, 26);
     this.tabControlPanel3.Name                    = "tabControlPanel3";
     this.tabControlPanel3.Size                    = new System.Drawing.Size(368, 260);
     this.tabControlPanel3.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(248)), ((System.Byte)(224)));
     this.tabControlPanel3.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((System.Byte)(173)), ((System.Byte)(231)), ((System.Byte)(146)));
     this.tabControlPanel3.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((System.Byte)(59)), ((System.Byte)(97)), ((System.Byte)(156)));
     this.tabControlPanel3.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                      | DevComponents.DotNetBar.eBorderSide.Bottom);
     this.tabControlPanel3.Style.GradientAngle = -90;
     this.tabControlPanel3.TabIndex            = 3;
     this.tabControlPanel3.TabItem             = this.tabItem3;
     //
     // richTextBox5
     //
     this.richTextBox5.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox5.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox5.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.richTextBox5.Location    = new System.Drawing.Point(1, 56);
     this.richTextBox5.Name        = "richTextBox5";
     this.richTextBox5.Size        = new System.Drawing.Size(366, 203);
     this.richTextBox5.TabIndex    = 3;
     this.richTextBox5.Text        = "TabStrip control implements all styling capabilities of Tab control including One" +
                                     "Note style. Take a look at modified Notepad sample for an example of TabStrip co" +
                                     "ntrol using OneNote style for MDI child for navigation.";
     this.richTextBox5.ZoomFactor = 1.199854F;
     //
     // panelEx5
     //
     this.panelEx5.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label3,
         this.panelEx6
     });
     this.panelEx5.Dock                              = System.Windows.Forms.DockStyle.Top;
     this.panelEx5.Location                          = new System.Drawing.Point(1, 1);
     this.panelEx5.Name                              = "panelEx5";
     this.panelEx5.Size                              = new System.Drawing.Size(366, 55);
     this.panelEx5.Style.Alignment                   = System.Drawing.StringAlignment.Center;
     this.panelEx5.Style.BackColor1.Color            = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(248)), ((System.Byte)(224)));
     this.panelEx5.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.panelEx5.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx5.Style.GradientAngle               = 90;
     this.panelEx5.TabIndex                          = 2;
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.BackColor = System.Drawing.Color.Transparent;
     this.label3.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label3.ForeColor = System.Drawing.Color.Gray;
     this.label3.Location  = new System.Drawing.Point(8, 40);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(26, 14);
     this.label3.TabIndex  = 1;
     this.label3.Text      = "Title";
     //
     // panelEx6
     //
     this.panelEx6.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox6
     });
     this.panelEx6.DockPadding.All                 = 1;
     this.panelEx6.Location                        = new System.Drawing.Point(8, 8);
     this.panelEx6.Name                            = "panelEx6";
     this.panelEx6.Size                            = new System.Drawing.Size(192, 32);
     this.panelEx6.Style.Alignment                 = System.Drawing.StringAlignment.Center;
     this.panelEx6.Style.BackColor1.Color          = System.Drawing.Color.White;
     this.panelEx6.Style.Border                    = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelEx6.Style.BorderColor.Color         = System.Drawing.Color.Gray;
     this.panelEx6.Style.BorderDashStyle           = System.Drawing.Drawing2D.DashStyle.Dash;
     this.panelEx6.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx6.Style.GradientAngle             = 90;
     this.panelEx6.TabIndex                        = 0;
     this.panelEx6.Text                            = "panelEx2";
     //
     // richTextBox6
     //
     this.richTextBox6.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox6.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox6.Font        = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
     this.richTextBox6.Location    = new System.Drawing.Point(1, 1);
     this.richTextBox6.Name        = "richTextBox6";
     this.richTextBox6.ScrollBars  = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.richTextBox6.Size        = new System.Drawing.Size(190, 30);
     this.richTextBox6.TabIndex    = 0;
     this.richTextBox6.Text        = "TabStrip Control";
     //
     // tabItem3
     //
     this.tabItem3.AttachedControl = this.tabControlPanel3;
     this.tabItem3.BackColor       = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(248)), ((System.Byte)(224)));
     this.tabItem3.BackColor2      = System.Drawing.Color.FromArgb(((System.Byte)(173)), ((System.Byte)(231)), ((System.Byte)(146)));
     this.tabItem3.Name            = "tabItem3";
     this.tabItem3.PredefinedColor = DevComponents.DotNetBar.eTabItemColor.Apple;
     this.tabItem3.Text            = "Project &B";
     //
     // tabControlPanel2
     //
     this.tabControlPanel2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox3,
         this.panelEx3
     });
     this.tabControlPanel2.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.tabControlPanel2.DockPadding.All         = 1;
     this.tabControlPanel2.Location                = new System.Drawing.Point(0, 26);
     this.tabControlPanel2.Name                    = "tabControlPanel2";
     this.tabControlPanel2.Size                    = new System.Drawing.Size(368, 260);
     this.tabControlPanel2.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(244)), ((System.Byte)(213)));
     this.tabControlPanel2.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(216)), ((System.Byte)(105)));
     this.tabControlPanel2.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((System.Byte)(59)), ((System.Byte)(97)), ((System.Byte)(156)));
     this.tabControlPanel2.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                      | DevComponents.DotNetBar.eBorderSide.Bottom);
     this.tabControlPanel2.Style.GradientAngle = -90;
     this.tabControlPanel2.TabIndex            = 2;
     this.tabControlPanel2.TabItem             = this.tabItem2;
     //
     // richTextBox3
     //
     this.richTextBox3.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox3.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox3.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.richTextBox3.Location    = new System.Drawing.Point(1, 56);
     this.richTextBox3.Name        = "richTextBox3";
     this.richTextBox3.Size        = new System.Drawing.Size(366, 203);
     this.richTextBox3.TabIndex    = 3;
     this.richTextBox3.Text        = "The style power in tab panels comes directly from PanelEx control. PanelEx contro" +
                                     "l is a multi-functional container control with powerful visual control.";
     this.richTextBox3.ZoomFactor = 1.199854F;
     //
     // panelEx3
     //
     this.panelEx3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label2,
         this.panelEx4
     });
     this.panelEx3.Dock                              = System.Windows.Forms.DockStyle.Top;
     this.panelEx3.Location                          = new System.Drawing.Point(1, 1);
     this.panelEx3.Name                              = "panelEx3";
     this.panelEx3.Size                              = new System.Drawing.Size(366, 55);
     this.panelEx3.Style.Alignment                   = System.Drawing.StringAlignment.Center;
     this.panelEx3.Style.BackColor1.Color            = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(244)), ((System.Byte)(213)));
     this.panelEx3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.panelEx3.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx3.Style.GradientAngle               = 90;
     this.panelEx3.TabIndex                          = 2;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.Gray;
     this.label2.Location  = new System.Drawing.Point(8, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(26, 14);
     this.label2.TabIndex  = 1;
     this.label2.Text      = "Title";
     //
     // panelEx4
     //
     this.panelEx4.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox4
     });
     this.panelEx4.DockPadding.All                 = 1;
     this.panelEx4.Location                        = new System.Drawing.Point(8, 8);
     this.panelEx4.Name                            = "panelEx4";
     this.panelEx4.Size                            = new System.Drawing.Size(192, 32);
     this.panelEx4.Style.Alignment                 = System.Drawing.StringAlignment.Center;
     this.panelEx4.Style.BackColor1.Color          = System.Drawing.Color.White;
     this.panelEx4.Style.Border                    = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelEx4.Style.BorderColor.Color         = System.Drawing.Color.Gray;
     this.panelEx4.Style.BorderDashStyle           = System.Drawing.Drawing2D.DashStyle.Dash;
     this.panelEx4.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx4.Style.GradientAngle             = 90;
     this.panelEx4.TabIndex                        = 0;
     this.panelEx4.Text                            = "panelEx2";
     //
     // richTextBox4
     //
     this.richTextBox4.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox4.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox4.Font        = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
     this.richTextBox4.Location    = new System.Drawing.Point(1, 1);
     this.richTextBox4.Name        = "richTextBox4";
     this.richTextBox4.ScrollBars  = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.richTextBox4.Size        = new System.Drawing.Size(190, 30);
     this.richTextBox4.TabIndex    = 0;
     this.richTextBox4.Text        = "PanelEx Control";
     //
     // tabItem2
     //
     this.tabItem2.AttachedControl = this.tabControlPanel2;
     this.tabItem2.BackColor       = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(244)), ((System.Byte)(213)));
     this.tabItem2.BackColor2      = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(216)), ((System.Byte)(105)));
     this.tabItem2.Name            = "tabItem2";
     this.tabItem2.PredefinedColor = DevComponents.DotNetBar.eTabItemColor.Yellow;
     this.tabItem2.Text            = "Project &A";
     //
     // itemPanel1
     //
     //
     // itemPanel1.BackgroundStyle
     //
     this.itemPanel1.BackgroundStyle.BackColor         = System.Drawing.Color.White;
     this.itemPanel1.BackgroundStyle.BorderBottom      = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.itemPanel1.BackgroundStyle.BorderBottomWidth = 1;
     this.itemPanel1.BackgroundStyle.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(157)), ((System.Byte)(185)));
     this.itemPanel1.BackgroundStyle.BorderLeft        = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.itemPanel1.BackgroundStyle.BorderLeftWidth   = 1;
     this.itemPanel1.BackgroundStyle.BorderRight       = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.itemPanel1.BackgroundStyle.BorderRightWidth  = 1;
     this.itemPanel1.BackgroundStyle.BorderTop         = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.itemPanel1.BackgroundStyle.BorderTopWidth    = 1;
     this.itemPanel1.BackgroundStyle.PaddingBottom     = 1;
     this.itemPanel1.BackgroundStyle.PaddingLeft       = 1;
     this.itemPanel1.BackgroundStyle.PaddingRight      = 1;
     this.itemPanel1.BackgroundStyle.PaddingTop        = 1;
     this.itemPanel1.Dock = System.Windows.Forms.DockStyle.Left;
     this.itemPanel1.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical;
     this.itemPanel1.Name       = "itemPanel1";
     this.itemPanel1.Size       = new System.Drawing.Size(120, 286);
     this.itemPanel1.TabIndex   = 5;
     this.itemPanel1.Text       = "itemPanel1";
     this.itemPanel1.ItemClick += new System.EventHandler(this.itemPanel1_ItemClick);
     //
     // expandableSplitter1
     //
     this.expandableSplitter1.BackColor                    = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(239)), ((System.Byte)(255)));
     this.expandableSplitter1.BackColor2                   = System.Drawing.Color.FromArgb(((System.Byte)(101)), ((System.Byte)(147)), ((System.Byte)(207)));
     this.expandableSplitter1.BackColor2SchemePart         = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.expandableSplitter1.BackColorSchemePart          = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
     this.expandableSplitter1.ExpandableControl            = this.itemPanel1;
     this.expandableSplitter1.ExpandFillColor              = System.Drawing.Color.FromArgb(((System.Byte)(101)), ((System.Byte)(147)), ((System.Byte)(207)));
     this.expandableSplitter1.ExpandFillColorSchemePart    = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.expandableSplitter1.ExpandLineColor              = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.expandableSplitter1.ExpandLineColorSchemePart    = DevComponents.DotNetBar.eColorSchemePart.ItemText;
     this.expandableSplitter1.GripDarkColor                = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.expandableSplitter1.GripDarkColorSchemePart      = DevComponents.DotNetBar.eColorSchemePart.ItemText;
     this.expandableSplitter1.GripLightColor               = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(239)), ((System.Byte)(255)));
     this.expandableSplitter1.GripLightColorSchemePart     = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
     this.expandableSplitter1.HotBackColor                 = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(151)), ((System.Byte)(61)));
     this.expandableSplitter1.HotBackColor2                = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(184)), ((System.Byte)(94)));
     this.expandableSplitter1.HotBackColor2SchemePart      = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2;
     this.expandableSplitter1.HotBackColorSchemePart       = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground;
     this.expandableSplitter1.HotExpandFillColor           = System.Drawing.Color.FromArgb(((System.Byte)(101)), ((System.Byte)(147)), ((System.Byte)(207)));
     this.expandableSplitter1.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.expandableSplitter1.HotExpandLineColor           = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.expandableSplitter1.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText;
     this.expandableSplitter1.HotGripDarkColor             = System.Drawing.Color.FromArgb(((System.Byte)(101)), ((System.Byte)(147)), ((System.Byte)(207)));
     this.expandableSplitter1.HotGripDarkColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.expandableSplitter1.HotGripLightColor            = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(239)), ((System.Byte)(255)));
     this.expandableSplitter1.HotGripLightColorSchemePart  = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
     this.expandableSplitter1.Location = new System.Drawing.Point(120, 0);
     this.expandableSplitter1.Name     = "expandableSplitter1";
     this.expandableSplitter1.Size     = new System.Drawing.Size(8, 286);
     this.expandableSplitter1.Style    = DevComponents.DotNetBar.eSplitterStyle.Office2007;
     this.expandableSplitter1.TabIndex = 6;
     this.expandableSplitter1.TabStop  = false;
     //
     // contextMenuBar1
     //
     this.contextMenuBar1.Location = new System.Drawing.Point(56, 240);
     this.contextMenuBar1.Name     = "contextMenuBar1";
     this.contextMenuBar1.Size     = new System.Drawing.Size(75, 25);
     this.contextMenuBar1.Style    = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
     this.contextMenuBar1.TabIndex = 7;
     this.contextMenuBar1.TabStop  = false;
     this.contextMenuBar1.Text     = "contextMenuBar1";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(496, 286);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.contextMenuBar1,
         this.tabControl1,
         this.expandableSplitter1,
         this.itemPanel1
     });
     this.MinimumSize = new System.Drawing.Size(360, 250);
     this.Name        = "Form1";
     this.Text        = "Form1";
     this.Load       += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tabControlPanel1.ResumeLayout(false);
     this.panelEx1.ResumeLayout(false);
     this.panelEx2.ResumeLayout(false);
     this.tabControlPanel3.ResumeLayout(false);
     this.panelEx5.ResumeLayout(false);
     this.panelEx6.ResumeLayout(false);
     this.tabControlPanel2.ResumeLayout(false);
     this.panelEx3.ResumeLayout(false);
     this.panelEx4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit();
     this.ResumeLayout(false);
 }
Example #15
0
		public void Remove(TabItem value) 
		{
			List.Remove(value);
		}
Example #16
0
		public int IndexOf(TabItem value) 
		{
			return List.IndexOf(value);
		}
Example #17
0
		public void Insert(int index, TabItem value) 
		{
			value.Visible=true;
			m_Owner.NeedRecalcSize=true;
			List.Insert(index, value);
		}
Example #18
0
		public void CopyTo(TabItem[] array, int index) 
		{
			List.CopyTo(array, index);
		}
Example #19
0
        protected virtual void DrawTabText(TabItem tab, TabColors colors, Graphics g)
        {
            int MIN_TEXT_WIDTH = 4;
            eTextFormat strFormat = eTextFormat.Default | eTextFormat.SingleLine | eTextFormat.EndEllipsis | eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter;
            eTabStripAlignment align = tab.Parent.TabAlignment;
            Rectangle rText = tab.DisplayRectangle;
            bool isVertical = ((align == eTabStripAlignment.Left || align == eTabStripAlignment.Right) && !m_HorizontalText);

            if (m_CloseButtonOnTabs && tab.CloseButtonVisible)
            {
                if (isVertical)
                {
                    rText.Y++;
                    rText.Height--;
                }
                else
                {
                    rText.X += 2;
                    rText.Width -= 2;
                }
                bool renderCloseButton = tab.IsSelected || tab.IsMouseOver || tab.Parent.CloseButtonOnTabsAlwaysDisplayed;
                tab.CloseButtonBounds = DrawCloseButton(g, isVertical, tab.CloseButtonMouseOver, ref rText, tab.Parent, renderCloseButton);
            }

            // Draw image
            CompositeImage image = GetTabImage(tab);
            if (image != null && image.Width + 4 <= rText.Width)
            {
                if (align == eTabStripAlignment.Top || align == eTabStripAlignment.Bottom || m_HorizontalText)
                {
                    image.DrawImage(g, new Rectangle(rText.X + 3, rText.Y + (rText.Height - image.Height) / 2, image.Width, image.Height));
                    int offset = image.Width + 2;
                    rText.X += offset;
                    rText.Width -= offset;
                }
                else
                {
                    image.DrawImage(g, new Rectangle(rText.X + (rText.Width - image.Width) / 2, rText.Y + 3, image.Width, image.Height));
                    int offset = image.Height + 2;
                    rText.Y += offset;
                    rText.Height -= offset;
                }
            }
            if (image != null) image.Dispose();

            // Draw text
            bool isSelected = tab == tab.Parent.SelectedTab;
            if (!tab.Parent.DisplaySelectedTextOnly || isSelected)
            {
                if (!tab.Parent.AntiAlias)
                    g.TextRenderingHint = TextRenderingHint.SystemDefault;

                Font font = tab.Parent.Font;
                if (isSelected && tab.Parent.SelectedTabFont != null)
                    font = tab.Parent.SelectedTabFont;
                AdjustTextRectangle(ref rText, align);
                if (isVertical)
                {
                    g.RotateTransform(90);
                    rText = new Rectangle(rText.Top, -rText.Right, rText.Height, rText.Width);
                }

                if (rText.Width > MIN_TEXT_WIDTH)
                {
                    if ((align == eTabStripAlignment.Left || align == eTabStripAlignment.Right) && !m_HorizontalText)
                        TextDrawing.DrawStringLegacy(g, tab.Text, font, colors.TextColor, rText, strFormat);
                    else
                        TextDrawing.DrawString(g, tab.Text, font, colors.TextColor, rText, strFormat);
                }
                //using (Pen pen = new Pen(Color.Red))
                //    g.DrawRectangle(pen, rText);
                if (isVertical)
                    g.ResetTransform();
                if (!tab.Parent.AntiAlias)
                    g.TextRenderingHint = DisplayHelp.AntiAliasTextRenderingHint;

                if (tab.Parent.ShowFocusRectangle && tab.Parent.Focused && isSelected)
                    ControlPaint.DrawFocusRectangle(g, GetFocusRectangle(tab.DisplayRectangle));
            }
        }
Example #20
0
 protected virtual void DrawTabBorder(TabItem tab, GraphicsPath path, TabColors colors, Graphics g)
 {
     if (!colors.BorderColor.IsEmpty)
     {
         using (Pen pen = new Pen(colors.BorderColor, 1))
             g.DrawPath(pen, path);
     }
 }
Example #21
0
		protected virtual bool ProcessPendingSelection()
		{
			TabStrip tabStrip=this.GetTabStrip();
			if(tabStrip==null || tabStrip.IsDisposed || this.Control.IsDisposed)
				return false;

			if(m_SelectItem!=null)
			{
				tabStrip.DesignTimeSelection=m_SelectItem;
				//Point pos=tabStrip.PointToClient(System.Windows.Forms.Control.MousePosition);
				ISelectionService selection = (ISelectionService) this.GetService(typeof(ISelectionService));
				if(selection==null)
					return false;
				ArrayList arr=new ArrayList(1);
				arr.Add(m_SelectItem);
#if FRAMEWORK20
                selection.SetSelectedComponents(arr, SelectionTypes.Primary);
#else
                selection.SetSelectedComponents(arr,SelectionTypes.Click);
#endif

                m_SelectItem =null;

				IComponentChangeService change=this.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
				if(change!=null)
				{
					change.OnComponentChanging(this.Control,null);
					change.OnComponentChanged(this.Control,null,null,null);
				}
				return true;
			}
			return false;
		}
Example #22
0
 protected override GraphicsPath GetTabItemPath(TabItem tab, bool bFirst, bool bLast)
 {
     return GetTabItemPath(tab.DisplayRectangle, tab.TabAlignment, true);
 }
Example #23
0
        protected override void DrawTabBorder(TabItem tab, GraphicsPath path, TabColors colors, Graphics g)
        {
            Rectangle r = tab.DisplayRectangle;
            eTabStripAlignment align = tab.TabAlignment;
            //Region oldClip = g.Clip;
            //Rectangle rClip = Rectangle.Ceiling(path.GetBounds());
            //if (tab.TabAlignment == eTabStripAlignment.Right || tab.TabAlignment == eTabStripAlignment.Bottom)
            //    rClip.Inflate(1, 1);

            //g.SetClip(rClip);

            if (!colors.BorderColor.IsEmpty)
            {
                using (GraphicsPath borderPath = GetTabItemPath(r, align, false))
                {
                    using (Pen pen = new Pen(colors.BorderColor))
                        g.DrawPath(pen, borderPath);
                }
            }

            if (align == eTabStripAlignment.Top)
            {
                r.Offset(1, 1);
                r.Width-=2;
                r.Height--;
            }
            else if (align == eTabStripAlignment.Bottom)
            {
                r.Offset(1, 0);
                r.Height--;
                r.Width-=2;
            }
            else if (align == eTabStripAlignment.Left)
            {
                r.Offset(1, 1);
                r.Height-=2;
                r.Width-=2;
            }
            else if (align == eTabStripAlignment.Right)
            {
                r.Offset(1, 1);
                r.Height -= 2;
                r.Width -= 2;
            }

            if (!colors.LightBorderColor.IsEmpty)
            {
                using (GraphicsPath borderPath = GetTabItemPath(r, align, false))
                {
                    //rClip = Rectangle.Ceiling(path.GetBounds());
                    //g.SetClip(rClip);

                    using (Pen pen = new Pen(colors.LightBorderColor))
                        g.DrawPath(pen, borderPath);
                }
            }

            //g.Clip = oldClip;
        }
Example #24
0
		protected override GraphicsPath GetTabItemPath(TabItem tab, bool bFirst, bool bLast)
		{
			Rectangle r=tab.DisplayRectangle;
			if(tab.TabAlignment==eTabStripAlignment.Right)
				r=new Rectangle(r.X,r.Y,r.Height,r.Width);
			else if(tab.TabAlignment==eTabStripAlignment.Left)
                r=new Rectangle(r.X,r.Y,r.Height,r.Width);

			r.Offset(0,1);

			GraphicsPath path=new GraphicsPath();
			
			// Left line
			path.AddPath(GetLeftLine(r),true);
//			path.AddLine(r.X-m_xTabOffset,r.Bottom,r.X,r.Y+5);
//			Point[] pc=new Point[3];
//			pc[0]=new Point(r.X,r.Y+5);
//			pc[1]=new Point(r.X+2,r.Y+2);
//			pc[2]=new Point(r.X+5,r.Y);
//			path.AddCurve(pc,.9f);

			// Top line
			path.AddLine(r.X+6,r.Y,r.Right-5,r.Y);

			// Right line
//			pc[0]=new Point(r.Right-5,r.Y);
//			pc[1]=new Point(r.Right-2,r.Y+2);
//			pc[2]=new Point(r.Right,r.Y+5);
//			path.AddCurve(pc,.9f);
//			path.AddLine(r.Right,r.Y+5,r.Right+m_xTabOffset,r.Bottom);
			path.AddPath(GetRightLine(r),true);

			// Bottom line
			path.AddLine(r.Right+m_xTabOffset,r.Bottom,r.X-m_xTabOffset,r.Bottom);

			path.CloseAllFigures();

			if(tab.TabAlignment==eTabStripAlignment.Bottom)
			{
				// Bottom
				Matrix m=new Matrix();
				//RectangleF rf=path.GetBounds();
				m.RotateAt(180,new PointF(r.X+r.Width/2,r.Y+r.Height/2));
				path.Transform(m);
			}
			else if(tab.TabAlignment==eTabStripAlignment.Left)
			{
				// Left
				Matrix m=new Matrix();
				//RectangleF rf=path.GetBounds();
				m.RotateAt(-90,new PointF(r.X,r.Bottom));
				m.Translate(r.Height,r.Width-r.Height,MatrixOrder.Append);
				path.Transform(m);
			}
			else if(tab.TabAlignment==eTabStripAlignment.Right)
			{
				// Right
				Matrix m=new Matrix();
				//RectangleF rf=path.GetBounds();
				m.RotateAt(90,new PointF(r.Right,r.Bottom));
				m.Translate(-r.Width,r.Width-(r.Height-1),MatrixOrder.Append);
				path.Transform(m);
			}

			return path;
		}
Example #25
0
 /// <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();
     this.listSystem = new System.Windows.Forms.ListBox();
     this.listWeb = new System.Windows.Forms.ListBox();
     this.tabStrip1 = new DevComponents.DotNetBar.TabStrip();
     this.tabCustom = new DevComponents.DotNetBar.TabItem(this.components);
     this.colorPanel = new System.Windows.Forms.Panel();
     this.tabWeb = new DevComponents.DotNetBar.TabItem(this.components);
     this.tabSystem = new DevComponents.DotNetBar.TabItem(this.components);
     this.SuspendLayout();
     //
     // listSystem
     //
     this.listSystem.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listSystem.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.listSystem.IntegralHeight = false;
     this.listSystem.Name = "listSystem";
     this.listSystem.Size = new System.Drawing.Size(200, 158);
     this.listSystem.TabIndex = 0;
     this.listSystem.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.DrawSystemItem);
     this.listSystem.SelectedIndexChanged += new System.EventHandler(this.SystemSelectionChange);
     //
     // listWeb
     //
     this.listWeb.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listWeb.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.listWeb.IntegralHeight = false;
     this.listWeb.Name = "listWeb";
     this.listWeb.Size = new System.Drawing.Size(200, 158);
     this.listWeb.TabIndex = 0;
     this.listWeb.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.DrawWebItem);
     this.listWeb.SelectedIndexChanged += new System.EventHandler(this.WebSelectionChange);
     //
     // tabStrip1
     //
     this.tabStrip1.AutoHideSystemBox = true;
     this.tabStrip1.CanReorderTabs = true;
     this.tabStrip1.CloseButtonVisible = false;
     this.tabStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.tabStrip1.ForeColor = System.Drawing.SystemColors.ControlDark;
     this.tabStrip1.Location = new System.Drawing.Point(0, 158);
     this.tabStrip1.Name = "tabStrip1";
     this.tabStrip1.SelectedTab = this.tabCustom;
     this.tabStrip1.ShowFocusRectangle = false;
     this.tabStrip1.Size = new System.Drawing.Size(200, 24);
     this.tabStrip1.Style = DevComponents.DotNetBar.eTabStripStyle.Office2003;
     this.tabStrip1.TabIndex = 1;
     this.tabStrip1.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
     this.tabStrip1.Tabs.Add(this.tabCustom);
     this.tabStrip1.Tabs.Add(this.tabWeb);
     this.tabStrip1.Tabs.Add(this.tabSystem);
     this.tabStrip1.Text = "tabStrip1";
     //
     // tabCustom
     //
     this.tabCustom.AttachedControl = this.colorPanel;
     this.tabCustom.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabCustom.Name = "tabCustom";
     this.tabCustom.Text = "Custom";
     //
     // colorPanel
     //
     this.colorPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.colorPanel.Name = "colorPanel";
     this.colorPanel.Size = new System.Drawing.Size(200, 158);
     this.colorPanel.TabIndex = 2;
     this.colorPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.CustomColorMouseUp);
     this.colorPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.PaintCustomColors);
     //
     // tabWeb
     //
     this.tabWeb.AttachedControl = this.listWeb;
     this.tabWeb.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabWeb.Name = "tabWeb";
     this.tabWeb.Text = "Web";
     //
     // tabSystem
     //
     this.tabSystem.AttachedControl = this.listSystem;
     this.tabSystem.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabSystem.Name = "tabSystem";
     this.tabSystem.Text = "System";
     //
     // ColorPicker
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.listWeb,
                                                                   this.listSystem,
                                                                   this.colorPanel,
                                                                   this.tabStrip1});
     this.ForeColor = System.Drawing.Color.White;
     this.Name = "ColorPicker";
     this.Size = new System.Drawing.Size(200, 182);
     this.ResumeLayout(false);
 }
Example #26
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components             = new System.ComponentModel.Container();
     this.tabItem1               = new DevComponents.DotNetBar.TabItem(this.components);
     this.documentControl1       = new ItopVector.ItopVectorControl();
     this.contextMenuStrip1      = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.合并成像ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2     = new System.Windows.Forms.ToolStripSeparator();
     this.更新图像库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.folderBrowserDialog1   = new System.Windows.Forms.FolderBrowserDialog();
     this.contextMenuStrip2      = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.图片另存ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.图片更换ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.重新下载ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1     = new System.Windows.Forms.ToolStripSeparator();
     this.批量更换ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.显示地图ToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.地图ToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.卫星ToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.地形ToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.contextMenuStrip2.SuspendLayout();
     this.SuspendLayout();
     //
     // tabItem1
     //
     this.tabItem1.Name = "tabItem1";
     this.tabItem1.Text = "tabItem1";
     //
     // documentControl1
     //
     this.documentControl1.CanEdit      = false;
     this.documentControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.documentControl1.FullDrawMode = false;
     this.documentControl1.IsPasteGrid  = false;
     this.documentControl1.IsShowGrid   = true;
     this.documentControl1.IsShowRule   = true;
     this.documentControl1.IsShowTip    = false;
     this.documentControl1.Location     = new System.Drawing.Point(0, 0);
     this.documentControl1.Name         = "documentControl1";
     this.documentControl1.Size         = new System.Drawing.Size(616, 373);
     this.documentControl1.TabIndex     = 0;
     this.documentControl1.MouseMove   += new System.Windows.Forms.MouseEventHandler(this.documentControl1_MouseMove);
     this.documentControl1.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.documentControl1_KeyDown);
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.合并成像ToolStripMenuItem,
         this.toolStripMenuItem2,
         this.更新图像库ToolStripMenuItem
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(135, 54);
     //
     // 合并成像ToolStripMenuItem
     //
     this.合并成像ToolStripMenuItem.Name   = "合并成像ToolStripMenuItem";
     this.合并成像ToolStripMenuItem.Size   = new System.Drawing.Size(134, 22);
     this.合并成像ToolStripMenuItem.Text   = "合并图像";
     this.合并成像ToolStripMenuItem.Click += new System.EventHandler(this.合并成像ToolStripMenuItem_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(131, 6);
     //
     // 更新图像库ToolStripMenuItem
     //
     this.更新图像库ToolStripMenuItem.Name   = "更新图像库ToolStripMenuItem";
     this.更新图像库ToolStripMenuItem.Size   = new System.Drawing.Size(134, 22);
     this.更新图像库ToolStripMenuItem.Text   = "更新图像库";
     this.更新图像库ToolStripMenuItem.Click += new System.EventHandler(this.更新图像库ToolStripMenuItem_Click);
     //
     // contextMenuStrip2
     //
     this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.图片另存ToolStripMenuItem,
         this.图片更换ToolStripMenuItem,
         this.重新下载ToolStripMenuItem,
         this.toolStripMenuItem1,
         this.批量更换ToolStripMenuItem,
         this.显示地图ToolStripMenuItem
     });
     this.contextMenuStrip2.Name = "contextMenuStrip1";
     this.contextMenuStrip2.Size = new System.Drawing.Size(153, 142);
     //
     // 图片另存ToolStripMenuItem
     //
     this.图片另存ToolStripMenuItem.Name   = "图片另存ToolStripMenuItem";
     this.图片另存ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
     this.图片另存ToolStripMenuItem.Text   = "图片另存";
     this.图片另存ToolStripMenuItem.Click += new System.EventHandler(this.图片另存ToolStripMenuItem_Click);
     //
     // 图片更换ToolStripMenuItem
     //
     this.图片更换ToolStripMenuItem.Name   = "图片更换ToolStripMenuItem";
     this.图片更换ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
     this.图片更换ToolStripMenuItem.Text   = "图片更换";
     this.图片更换ToolStripMenuItem.Click += new System.EventHandler(this.图片更换ToolStripMenuItem_Click);
     //
     // 重新下载ToolStripMenuItem
     //
     this.重新下载ToolStripMenuItem.Name   = "重新下载ToolStripMenuItem";
     this.重新下载ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
     this.重新下载ToolStripMenuItem.Text   = "重新下载";
     this.重新下载ToolStripMenuItem.Click += new System.EventHandler(this.重新下载ToolStripMenuItem_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(149, 6);
     //
     // 批量更换ToolStripMenuItem
     //
     this.批量更换ToolStripMenuItem.Name    = "批量更换ToolStripMenuItem";
     this.批量更换ToolStripMenuItem.Size    = new System.Drawing.Size(152, 22);
     this.批量更换ToolStripMenuItem.Text    = "批量更换...";
     this.批量更换ToolStripMenuItem.Visible = false;
     //
     // 显示地图ToolStripMenuItem
     //
     this.显示地图ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.地图ToolStripMenuItem,
         this.卫星ToolStripMenuItem,
         this.地形ToolStripMenuItem
     });
     this.显示地图ToolStripMenuItem.Name = "显示地图ToolStripMenuItem";
     this.显示地图ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.显示地图ToolStripMenuItem.Text = "显示地图";
     //
     // 地图ToolStripMenuItem
     //
     this.地图ToolStripMenuItem.Name   = "地图ToolStripMenuItem";
     this.地图ToolStripMenuItem.Size   = new System.Drawing.Size(98, 22);
     this.地图ToolStripMenuItem.Text   = "地图";
     this.地图ToolStripMenuItem.Click += new System.EventHandler(this.地图ToolStripMenuItem_Click);
     //
     // 卫星ToolStripMenuItem
     //
     this.卫星ToolStripMenuItem.Name   = "卫星ToolStripMenuItem";
     this.卫星ToolStripMenuItem.Size   = new System.Drawing.Size(98, 22);
     this.卫星ToolStripMenuItem.Text   = "卫星";
     this.卫星ToolStripMenuItem.Click += new System.EventHandler(this.卫星ToolStripMenuItem_Click);
     //
     // 地形ToolStripMenuItem
     //
     this.地形ToolStripMenuItem.Name   = "地形ToolStripMenuItem";
     this.地形ToolStripMenuItem.Size   = new System.Drawing.Size(98, 22);
     this.地形ToolStripMenuItem.Text   = "地形";
     this.地形ToolStripMenuItem.Click += new System.EventHandler(this.地形ToolStripMenuItem_Click);
     //
     // frmDocument
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(616, 373);
     this.Controls.Add(this.documentControl1);
     this.Name          = "frmDocument";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.contextMenuStrip1.ResumeLayout(false);
     this.contextMenuStrip2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #27
0
		protected virtual CompositeImage GetTabImage(TabItem tab)
		{
			Image image=tab.GetImage();
			if(image!=null)
				return new CompositeImage(image,false);
			Icon icon=tab.Icon;
			if(icon!=null)
				return new CompositeImage(icon,false,tab.IconSize);

			return null;
		}
Example #28
0
 internal void _Remove(TabItem value)
 {
     m_IgnoreEvents = true;
     try
     {
         List.Remove(value);
     }
     finally
     {
         m_IgnoreEvents = false;
     }
 }
Example #29
0
		protected virtual GraphicsPath GetTabItemPath(TabItem tab, bool bFirst, bool bLast)
		{
			return null;
		}
Example #30
0
		public int Add(TabItem item)
		{
			m_Owner.NeedRecalcSize=true;
			return List.Add(item);
		}
Example #31
0
        /// <summary>
        /// 初始化TabControl
        /// </summary>
        public void InitTabControl()
        {
            #region 常规
            this.tabLayerProperties = new DevComponents.DotNetBar.TabControl();
            this.tabItem1           = new DevComponents.DotNetBar.TabItem();
            this.tabControlPanel1   = new DevComponents.DotNetBar.TabControlPanel();
            this.m_uctrGeneral      = new GeoProperties.UserControls.uctrGeneral(m_pLayer);
            //
            // tabLayerProperties
            //
            this.tabLayerProperties.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.tabLayerProperties.CanReorderTabs = true;
            this.tabLayerProperties.Controls.Add(this.tabControlPanel1);
            this.tabLayerProperties.Dock             = System.Windows.Forms.DockStyle.Fill;
            this.tabLayerProperties.Location         = new System.Drawing.Point(0, 0);
            this.tabLayerProperties.Name             = "tabLayerProperties";
            this.tabLayerProperties.SelectedTabFont  = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
            this.tabLayerProperties.SelectedTabIndex = 0;
            this.tabLayerProperties.Size             = new System.Drawing.Size(464, 311);
            //this.tabLayerProperties.TabIndex = 1;
            this.tabLayerProperties.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
            this.tabLayerProperties.Tabs.Add(this.tabItem1);
            this.tabLayerProperties.Text = "tabControl1";
            //
            // tabItem1
            //
            this.tabItem1.AttachedControl = this.tabControlPanel1;
            this.tabItem1.Name            = "tabItem1";
            this.tabItem1.Text            = "常规";
            //
            // tabControlPanel1
            //
            this.tabControlPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tabControlPanel1.Location = new System.Drawing.Point(0, 26);
            this.tabControlPanel1.Name     = "tabControlPanel1";
            this.tabControlPanel1.Padding  = new System.Windows.Forms.Padding(1);
            this.tabControlPanel1.Size     = new System.Drawing.Size(464, 285);
            this.tabControlPanel1.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
            this.tabControlPanel1.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
            this.tabControlPanel1.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
            this.tabControlPanel1.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                                    | DevComponents.DotNetBar.eBorderSide.Bottom)));
            this.tabControlPanel1.Style.GradientAngle = 90;
            //this.tabControlPanel1.TabIndex = 1;
            this.tabControlPanel1.TabItem = this.tabItem1;
            //
            this.m_uctrGeneral.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_uctrGeneral.Name = "uctrGeneral";
            //this.m_uctrGeneral.TabIndex = 0;
            //this.uctrSource1.Size = new System.Drawing.Size(462, 283);
            //this.uctrSource1.TabIndex = 0;
            this.tabControlPanel1.Controls.Add(this.m_uctrGeneral);

            this.panelEx1.Controls.Add(this.tabLayerProperties);

            #endregion

            #region 数据源
            this.tabItem2         = new DevComponents.DotNetBar.TabItem();
            this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
            this.m_uctrSource     = new GeoProperties.UserControls.uctrSource(m_pLayer);

            //
            // tabItem2
            //
            this.tabItem2.AttachedControl = this.tabControlPanel2;
            this.tabItem2.Name            = "tabItem2";
            this.tabItem2.Text            = "数据源";
            //
            // tabControlPanel2
            //
            this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            //this.tabControlPanel2.Location = new System.Drawing.Point(0, 26);
            this.tabControlPanel2.Name    = "tabControlPanel2";
            this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
            //this.tabControlPanel2.Size = new System.Drawing.Size(464, 285);
            this.tabControlPanel2.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
            this.tabControlPanel2.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
            this.tabControlPanel2.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
            this.tabControlPanel2.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                                    | DevComponents.DotNetBar.eBorderSide.Bottom)));
            this.tabControlPanel2.Style.GradientAngle = 90;
            //this.tabControlPanel2.TabIndex = 1;
            this.tabControlPanel2.TabItem = this.tabItem2;
            //
            this.m_uctrSource.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_uctrSource.Name = "uctrSource";
            //this.m_uctrSource.TabIndex = 1;
            //this.uctrSource1.Size = new System.Drawing.Size(462, 283);
            //this.uctrSource1.TabIndex = 0;
            this.tabLayerProperties.Controls.Add(this.tabControlPanel2);
            this.tabControlPanel2.Controls.Add(this.m_uctrSource);

            this.tabLayerProperties.Tabs.Add(this.tabItem2);
            #endregion

            //如果是栅格数据
            if (m_featureTrue)
            {
                #region 字段
                this.tabItem3         = new DevComponents.DotNetBar.TabItem();
                this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
                this.m_uctrFields     = new GeoProperties.UserControls.uctrFields(m_pLayer);

                //
                // tabItem3
                //
                this.tabItem3.AttachedControl = this.tabControlPanel3;
                this.tabItem3.Name            = "tabItem3";
                this.tabItem3.Text            = "字段";
                //
                // tabControlPanel3
                //
                this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
                //this.tabControlPanel2.Location = new System.Drawing.Point(0, 26);
                this.tabControlPanel3.Name    = "tabControlPanel3";
                this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1);
                //this.tabControlPanel2.Size = new System.Drawing.Size(464, 285);
                this.tabControlPanel3.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
                this.tabControlPanel3.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
                this.tabControlPanel3.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
                this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
                this.tabControlPanel3.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                                        | DevComponents.DotNetBar.eBorderSide.Bottom)));
                this.tabControlPanel3.Style.GradientAngle = 90;
                //this.tabControlPanel3.TabIndex = 2;
                this.tabControlPanel3.TabItem = this.tabItem3;
                //
                this.m_uctrFields.Dock = System.Windows.Forms.DockStyle.Fill;
                this.m_uctrFields.Name = "uctrFields";
                //this.m_uctrFields.TabIndex = 2;
                //this.uctrSource1.Size = new System.Drawing.Size(462, 283);
                //this.uctrSource1.TabIndex = 0;
                this.tabLayerProperties.Controls.Add(this.tabControlPanel3);
                this.tabControlPanel3.Controls.Add(this.m_uctrFields);

                this.tabLayerProperties.Tabs.Add(this.tabItem3);
                #endregion

                #region 定义查询  ygc 2012-9-13 屏蔽右击功能定义查询
                this.tabItem4         = new DevComponents.DotNetBar.TabItem();
                this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel();
                this.m_uctrDefQuery   = new GeoProperties.UserControls.uctrDefinitionQuery(m_pLayer, LayerID);

                //
                // tabItem4
                //
                this.tabItem4.AttachedControl = this.tabControlPanel4;
                this.tabItem4.Name            = "tabItem4";
                this.tabItem4.Text            = "定义显示";
                //
                // tabControlPanel4
                //
                this.tabControlPanel4.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.tabControlPanel2.Location = new System.Drawing.Point(0, 26);
                this.tabControlPanel4.Name     = "tabControlPanel4";
                this.tabControlPanel4.Padding  = new System.Windows.Forms.Padding(1);
                this.tabControlPanel2.Size     = new System.Drawing.Size(464, 285);
                this.tabControlPanel4.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
                this.tabControlPanel4.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
                this.tabControlPanel4.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
                this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
                this.tabControlPanel4.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                                        | DevComponents.DotNetBar.eBorderSide.Bottom)));
                this.tabControlPanel4.Style.GradientAngle = 90;
                this.tabControlPanel4.TabIndex            = 1;
                this.tabControlPanel4.TabItem             = this.tabItem4;

                this.m_uctrDefQuery.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.m_uctrDefQuery.Name     = "uctrSource";
                this.m_uctrDefQuery.TabIndex = 3;
                //this.uctrSource1.Size = new System.Drawing.Size(462, 283);
                //this.uctrSource1.TabIndex = 0;
                this.tabLayerProperties.Controls.Add(this.tabControlPanel4);
                this.tabControlPanel4.Controls.Add(this.m_uctrDefQuery);

                this.tabLayerProperties.Tabs.Add(this.tabItem4);
                #endregion
            }

            #region 空间索引
            this.tabItem5              = new DevComponents.DotNetBar.TabItem();
            this.tabControlPanel5      = new DevComponents.DotNetBar.TabControlPanel();
            this.m_ucSpatialIndex      = new GeoProperties.UserControls.ucSpatialIndex(m_pLayer);
            this.m_ucSpatialIndex.Dock = System.Windows.Forms.DockStyle.Fill;
            //
            // tabItem4
            //
            this.tabItem5.AttachedControl = this.tabControlPanel5;
            this.tabItem5.Name            = "tabItem5";
            this.tabItem5.Text            = "其他设置";
            this.tabItem5.Visible         = false; //added by chulili 2012-10-26 山西这个页面屏蔽掉
            //
            // tabControlPanel4
            //
            this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
            //this.tabControlPanel2.Location = new System.Drawing.Point(0, 26);
            this.tabControlPanel5.Name    = "tabControlPanel5";
            this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(1);
            //this.tabControlPanel2.Size = new System.Drawing.Size(464, 285);
            this.tabControlPanel5.Style.BackColor1.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(179)))), ((int)(((byte)(231)))));
            this.tabControlPanel5.Style.BackColor2.Color  = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254)))));
            this.tabControlPanel5.Style.Border            = DevComponents.DotNetBar.eBorderType.SingleLine;
            this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156)))));
            this.tabControlPanel5.Style.BorderSide        = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
                                                                                                    | DevComponents.DotNetBar.eBorderSide.Bottom)));
            this.tabControlPanel5.Style.GradientAngle = 90;
            //this.tabControlPanel4.TabIndex = 1;
            this.tabControlPanel5.TabItem = this.tabItem5;

            this.tabLayerProperties.Controls.Add(this.tabControlPanel5);
            this.tabControlPanel5.Controls.Add(this.m_ucSpatialIndex);

            this.tabLayerProperties.Tabs.Add(this.tabItem5);
            #endregion
        }
Example #32
0
        /// <summary>
        /// 构建分类面板
        /// </summary>
        public void ConstructClassPanel()
        {
            List<string> list = helper.DiagramNameList;

            foreach (string s in list)
            {                
                TabItem tabItem = new TabItem();
                TabControlPanel tabControlPanel = new TabControlPanel();

                tabControlPanel.SuspendLayout();
                treeTabControl.Controls.Add(tabControlPanel);

                tabControlPanel.Dock = DockStyle.Fill;
                tabControlPanel.Name = "classPanel" + s;
                tabControlPanel.TabItem = tabItem;                
                tabControlPanel.ResumeLayout(false);

                TreeView tree = new TreeView();

                tree.Tag = s;
                tabItem.ImageIndex = 0;

                tree.ImageList = treeImageList;
                ConstructTree(tree, s);
                tree.MouseDown += new MouseEventHandler(tree_MouseDown);
                tree.MouseDoubleClick += new MouseEventHandler(tree_NodeMouseDoubleClick);
                tabControlPanel.Controls.Add(tree);
                tree.Dock = DockStyle.Fill;

                tabItem.AttachedControl = tabControlPanel;
                tabItem.Name = "classTab" + s;
                tabItem.Text = s;
                tabItem.Tag = tree;
                treeTabControl.Tabs.Add(tabItem);                
            }
        }
Example #33
0
        /// <summary>
        /// 创建分页控件对象
        /// </summary>
        /// <param name="id">绘图ID</param>
        /// <param name="panelName">绘图名称</param>
        /// <param name="tabControlPanel">分页面板控件对象</param>
        /// <param name="path">绘图路径</param>
        /// <returns>分页控件对象</returns>        
        private TabItem CreateTabItemInstance(string id, string panelName, TabControlPanel tabControlPanel, string path)
        {
            TabItem tabItem = new TabItem();

            tabControlPanel.SuspendLayout();
            tabControl.Controls.Add(tabControlPanel);

            tabControlPanel.Dock = DockStyle.Fill;
            tabControlPanel.Name = "tabControlPanel" + id.ToString();
            tabControlPanel.TabItem = tabItem;
            tabControlPanel.ResumeLayout(false);

            tabItem.AttachedControl = tabControlPanel;
            tabItem.Name = "tabItem" + id.ToString();
            tabItem.Text = panelName;
            tabItem.Tag = id;
            tabItem.Tooltip = path;
            tabItem.ImageIndex = 0;

            this.tabControl.Tabs.Add(tabItem);

            return tabItem;
        }
Example #34
0
		public bool Contains(TabItem value) 
		{
			return List.Contains(value);
		}
Example #35
0
		protected virtual void DrawTabItemBackground(TabItem tab, GraphicsPath path, TabColors colors, Graphics g)
		{
			RectangleF rf=path.GetBounds();
			Rectangle tabRect=new Rectangle((int)rf.X, (int)rf.Y, (int)rf.Width, (int)rf.Height);

            SmoothingMode sm = g.SmoothingMode;
            g.SmoothingMode = SmoothingMode.Default;

            eBackgroundColorBlendType blendType = colors.BackgroundColorBlend.GetBlendType();
            int ga = colors.BackColorGradientAngle;
            if (tab.TabAlignment == eTabStripAlignment.Left || tab.TabAlignment == eTabStripAlignment.Right)
                ga -= 90;

            if (blendType != eBackgroundColorBlendType.Invalid)
            {
                if (blendType == eBackgroundColorBlendType.Relative)
                {
                    if (!colors.BackColor.IsEmpty || !colors.BackColor2.IsEmpty)
                    {
                        try
                        {
                            Rectangle rb = Rectangle.Ceiling(rf);
                            rb.Inflate(1, 1);
                            using (LinearGradientBrush brush = DisplayHelp.CreateLinearGradientBrush(rb, colors.BackColor, colors.BackColor2, ga))
                            {
                                brush.InterpolationColors = colors.BackgroundColorBlend.GetColorBlend();
                                g.FillPath(brush, path);
                            }
                        }
                        catch
                        {
                            blendType = eBackgroundColorBlendType.Invalid;
                        }
                    }
                }
                else
                {
                    Rectangle bounds = Rectangle.Ceiling(rf);
                    BackgroundColorBlendCollection bc = colors.BackgroundColorBlend;
                    Region oldClip = g.Clip;
                    g.SetClip(path, CombineMode.Intersect);
                    for (int i = 0; i < bc.Count; i += 2)
                    {
                        BackgroundColorBlend b1 = bc[i];
                        BackgroundColorBlend b2 = null;
                        if (i < bc.Count)
                            b2 = bc[i + 1];
                        if (b1 != null && b2 != null)
                        {
                            Rectangle rb = new Rectangle(bounds.X, bounds.Y + (int)b1.Position, bounds.Width,
                                (b2.Position == 1f ? bounds.Height : (int)b2.Position) - (int)b1.Position);
                            using (LinearGradientBrush brush = DisplayHelp.CreateLinearGradientBrush(rb, b1.Color, b2.Color, ga))
                                g.FillRectangle(brush, rb);
                        }
                    }
                    g.Clip = oldClip;
                }
            }

            if (blendType == eBackgroundColorBlendType.Invalid)
            {
                if (colors.BackColor2.IsEmpty)
                {
                    if (!colors.BackColor.IsEmpty)
                    {
                        using (SolidBrush brush = new SolidBrush(colors.BackColor))
                            g.FillPath(brush, path);
                    }
                }
                else
                {
                    using (SolidBrush brush = new SolidBrush(Color.White))
                        g.FillPath(brush, path);
                    using (LinearGradientBrush brush = CreateTabGradientBrush(tabRect, colors.BackColor, colors.BackColor2, ga))
                        g.FillPath(brush, path);
                }
            }

            g.SmoothingMode = sm;

            DrawTabBorder(tab, path, colors, g);
		}
Example #36
0
        /// <summary>
        /// 创建绘图管理器对象
        /// </summary>
        /// <param name="canvas">绘图板对象</param>
        /// <param name="tabItem">分页控件对象</param>
        /// <param name="id">绘图ID</param>
        /// <param name="panelName">绘图名称</param>
        /// <param name="path">绘图路径</param>
        /// <returns>绘图管理器对象</returns>
        private FlowChartManager CreateFlowChartManagerInstance(Canvas canvas, TabItem tabItem, string id, string panelName, string path)
        {
            FlowChartManager newFlowChartManager = new FlowChartManager(chartMode, tabItem, id, panelName, path);
            newFlowChartManager.Init(canvas);

            return newFlowChartManager;
        }
Example #37
0
        /// <summary>
        /// Creates new tab and tab panel and inserts it at specified position inside of Tabs collection.
        /// </summary>
        /// <param name="tabText">Tab text.</param>
        /// <param name="insertAt">Index to insert newly created tab at. -1 will append tab to the end of Tabs collection.</param>
        /// <returns>Reference to newly created TabItem.</returns>
        public TabItem CreateTab(string tabText, int insertAt)
        {
            TabItem tab = new TabItem();
            tab.Text = tabText;
            TabControlPanel panel = new TabControlPanel();
            this.ApplyDefaultPanelStyle(panel);
            tab.AttachedControl = panel;
            panel.TabItem = tab;

            if (insertAt < 0 || insertAt >= tabStrip1.Tabs.Count)
            {
                tabStrip1.Tabs.Add(tab);
                this.Controls.Add(panel);
            }
            else
            {
                tabStrip1.Tabs.Insert(insertAt, tab);
                this.Controls.Add(panel);
            }

            panel.Dock = DockStyle.Fill;
            panel.SendToBack();

            this.RecalcLayout();

            return tab;
        }
Example #38
0
		protected virtual Region GetTabsRegion(TabsCollection tabs, TabItem lastTab)
		{
			return null;
		}
Example #39
0
        private void AddTab(ref PageDesc tab, bool firstTab)
        {
            TabItem tabitem = new TabItem();
            TabControlPanel panel = new TabControlPanel();

            if (!tab.bCustomTab)
            {
                tab.pg.SelectedObject = null;
                tab.pg.Name = "propertyGrid" + tab.id.ToString();
                tab.pg.BackColor = this.BasePg.BackColor;
                tab.pg.CommandsDisabledLinkColor = this.BasePg.CommandsDisabledLinkColor;
                tab.pg.Dock = this.BasePg.Dock;
                tab.pg.LineColor = this.BasePg.LineColor;
                tab.pg.Location = this.BasePg.Location;
                tab.pg.PropertySort = this.BasePg.PropertySort;
                tab.pg.Size = this.BasePg.Size;
                tab.pg.TabIndex = this.BasePg.TabIndex;
                tab.pg.SelectedGridItemChanged += new SelectedGridItemChangedEventHandler(BasePg_SelectedGridItemChanged);
                tab.pg.SelectedObjectsChanged += new EventHandler(BasePg_SelectedObjectsChanged);
                tab.pg.PropertyValueChanged += new PropertyValueChangedEventHandler(this.BasePg_PropertyValueChanged);
                tab.pg.Tag = tab.id;
            }

            panel.SuspendLayout();
            this.tabControl1.Controls.Add(panel);
            if (!tab.bCustomTab)
                panel.Controls.Add(tab.pg);
            else
                this.contextMenuBar1.SetContextMenuEx(/*panel*/tabControl1, this.cmScriptOp);
            panel.Dock = BasePanel.Dock;
            panel.Location = BasePanel.Location;
            panel.Name = "tabControlPanel" + tab.id.ToString();
            panel.Padding = BasePanel.Padding;
            panel.Size = BasePanel.Size;
            panel.Style.BackColor1.Color = BasePanel.Style.BackColor1.Color;
            panel.Style.BackColor2.Color = BasePanel.Style.BackColor2.Color;
            panel.Style.Border = BasePanel.Style.Border;
            panel.Style.BorderColor.Color = BasePanel.Style.BorderColor.Color;
            panel.Style.BorderSide = BasePanel.Style.BorderSide;
            panel.Style.GradientAngle = BasePanel.Style.GradientAngle;
            panel.TabItem = tabitem;
            panel.ResumeLayout(false);

            tabitem.AttachedControl = panel;
            tabitem.Name = "tabItem" + tab.id.ToString();
            tabitem.Text = tab.name_cn;
            if (!tab.bCustomTab)
                tabitem.Tag = tab.pg;
            else
                tabitem.Tag = tab.id; // ModTabID
            this.tabControl1.Tabs.Add(tabitem);

            if (firstTab)
            {
                this.tabControl1.SelectedTab = tabitem;
            }
        }
Example #40
0
 /// <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();
     this.listSystem = new System.Windows.Forms.ListBox();
     this.listWeb    = new System.Windows.Forms.ListBox();
     this.tabStrip1  = new DevComponents.DotNetBar.TabStrip();
     this.tabCustom  = new DevComponents.DotNetBar.TabItem(this.components);
     this.colorPanel = new System.Windows.Forms.Panel();
     this.tabWeb     = new DevComponents.DotNetBar.TabItem(this.components);
     this.tabSystem  = new DevComponents.DotNetBar.TabItem(this.components);
     this.SuspendLayout();
     //
     // listSystem
     //
     this.listSystem.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.listSystem.DrawMode              = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.listSystem.IntegralHeight        = false;
     this.listSystem.Name                  = "listSystem";
     this.listSystem.Size                  = new System.Drawing.Size(200, 158);
     this.listSystem.TabIndex              = 0;
     this.listSystem.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.DrawSystemItem);
     this.listSystem.SelectedIndexChanged += new System.EventHandler(this.SystemSelectionChange);
     //
     // listWeb
     //
     this.listWeb.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.listWeb.DrawMode              = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.listWeb.IntegralHeight        = false;
     this.listWeb.Name                  = "listWeb";
     this.listWeb.Size                  = new System.Drawing.Size(200, 158);
     this.listWeb.TabIndex              = 0;
     this.listWeb.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.DrawWebItem);
     this.listWeb.SelectedIndexChanged += new System.EventHandler(this.WebSelectionChange);
     //
     // tabStrip1
     //
     this.tabStrip1.AutoHideSystemBox  = true;
     this.tabStrip1.CanReorderTabs     = true;
     this.tabStrip1.CloseButtonVisible = false;
     this.tabStrip1.Dock               = System.Windows.Forms.DockStyle.Bottom;
     this.tabStrip1.ForeColor          = System.Drawing.SystemColors.ControlDark;
     this.tabStrip1.Location           = new System.Drawing.Point(0, 158);
     this.tabStrip1.Name               = "tabStrip1";
     this.tabStrip1.SelectedTab        = this.tabCustom;
     this.tabStrip1.ShowFocusRectangle = false;
     this.tabStrip1.Size               = new System.Drawing.Size(200, 24);
     this.tabStrip1.Style              = DevComponents.DotNetBar.eTabStripStyle.Office2003;
     this.tabStrip1.TabIndex           = 1;
     this.tabStrip1.TabLayoutType      = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
     this.tabStrip1.Tabs.Add(this.tabCustom);
     this.tabStrip1.Tabs.Add(this.tabWeb);
     this.tabStrip1.Tabs.Add(this.tabSystem);
     this.tabStrip1.Text = "tabStrip1";
     //
     // tabCustom
     //
     this.tabCustom.AttachedControl   = this.colorPanel;
     this.tabCustom.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabCustom.Name = "tabCustom";
     this.tabCustom.Text = "Custom";
     //
     // colorPanel
     //
     this.colorPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.colorPanel.Name     = "colorPanel";
     this.colorPanel.Size     = new System.Drawing.Size(200, 158);
     this.colorPanel.TabIndex = 2;
     this.colorPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.CustomColorMouseUp);
     this.colorPanel.Paint   += new System.Windows.Forms.PaintEventHandler(this.PaintCustomColors);
     //
     // tabWeb
     //
     this.tabWeb.AttachedControl   = this.listWeb;
     this.tabWeb.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabWeb.Name = "tabWeb";
     this.tabWeb.Text = "Web";
     //
     // tabSystem
     //
     this.tabSystem.AttachedControl   = this.listSystem;
     this.tabSystem.CloseButtonBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.tabSystem.Name = "tabSystem";
     this.tabSystem.Text = "System";
     //
     // ColorPicker
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.listWeb,
         this.listSystem,
         this.colorPanel,
         this.tabStrip1
     });
     this.ForeColor = System.Drawing.Color.White;
     this.Name      = "ColorPicker";
     this.Size      = new System.Drawing.Size(200, 182);
     this.ResumeLayout(false);
 }
Example #41
0
        private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            TabItem tabIJJ = new DevComponents.DotNetBar.TabItem();

            tabIJJ.Click += new System.EventHandler(this.tabItem1_Click);

            TabControlPanel tabConPJJ = new DevComponents.DotNetBar.TabControlPanel();


            switch (e.Node.Text)
            {
            case "急救信息":
                try
                {
                    string content = "";
                    foreach (TabItem var in tabControl1.Tabs)
                    {
                        if (var.Text == "急救信息 " + e.Node.Tag.ToString())
                        {
                            MessageBox.Show("已存在急救信息文书,请勿重复打开!");
                            return;
                        }
                    }

                    tabIJJ.Name = "急救信息";
                    tabIJJ.Text = "急救信息 " + e.Node.Tag.ToString();


                    tabConPJJ.Name         = "tabConPJJ";
                    tabConPJJ.TabItem      = tabIJJ;
                    tabConPJJ.Dock         = DockStyle.Fill;
                    tabIJJ.AttachedControl = tabConPJJ;

                    JJXXtext = new frmText();


                    XmlDocument tmpxml = new System.Xml.XmlDocument();
                    tmpxml.PreserveWhitespace = true;

                    content = App.ReadSqlVal("select * from jjhz_cont where id='" + e.Node.Tag.ToString() + "' and tid=4946791", 0, "CONTENT");


                    if (content == null)
                    {
                        content = App.ReadSqlVal("select * from t_tempplate_cont where tid=4946791", 0, "CONTENT");
                    }


                    tmpxml.LoadXml(content);
                    JJXXtext.MyDoc.FromXML(tmpxml.DocumentElement);
                    JJXXtext.MyDoc.OnDrawPageHeader += new TextEditor.TextDocument.Document.ZYTextDocument.DrawPageHeader(MyDoc_onDrawHeader);
                    JJXXtext.MyDoc.ContentChanged();
                    //JJXXtext.Tag = e.Node.Tag;

                    CSHKJ(e.Node.Text, e.Node.Tag.ToString());

                    tabConPJJ.Controls.Add(pl);
                    pl.Dock = DockStyle.Bottom;
                    tabConPJJ.Controls.Add(JJXXtext);
                    JJXXtext.Dock = DockStyle.Fill;


                    tabControl1.Tabs.Add(tabIJJ);
                    tabControl1.Controls.Add(tabConPJJ);
                    tabControl1.SelectedTab = tabIJJ;

                    setPrint(JJXXtext);
                }
                catch (Exception ex)
                {
                }

                break;

            case "患者随访":
                try
                {
                    string content = "";
                    foreach (TabItem var in tabControl1.Tabs)
                    {
                        if (var.Text == "患者随访 " + e.Node.Tag.ToString())
                        {
                            MessageBox.Show("已存在患者随访文书,请勿重复打开!");
                            return;
                        }
                    }
                    //TabItem tabIJJ = new DevComponents.DotNetBar.TabItem();
                    tabIJJ.Name = "患者随访";
                    tabIJJ.Text = "患者随访 " + e.Node.Tag.ToString();

                    //TabControlPanel tabConPJJ = new DevComponents.DotNetBar.TabControlPanel();
                    tabConPJJ.Name         = "tabConPJJ";
                    tabConPJJ.TabItem      = tabIJJ;
                    tabConPJJ.Dock         = DockStyle.Fill;
                    tabIJJ.AttachedControl = tabConPJJ;

                    HZSFtext = new frmText();


                    XmlDocument tmpxml = new System.Xml.XmlDocument();
                    tmpxml.PreserveWhitespace = true;

                    content = App.ReadSqlVal("select * from jjhz_cont where id='" + e.Node.Tag.ToString() + "' and tid=4990475", 0, "CONTENT");


                    if (content == null)
                    {
                        content = App.ReadSqlVal("select * from t_tempplate_cont where tid=4990475", 0, "CONTENT");
                    }


                    tmpxml.LoadXml(content);
                    HZSFtext.MyDoc.FromXML(tmpxml.DocumentElement);
                    HZSFtext.MyDoc.OnDrawPageHeader += new TextEditor.TextDocument.Document.ZYTextDocument.DrawPageHeader(MyDoc_onDrawHeader);
                    HZSFtext.MyDoc.ContentChanged();
                    //HZSFtext.Tag = e.Node.Tag;

                    CSHKJ(e.Node.Text, e.Node.Tag.ToString());

                    tabConPJJ.Controls.Add(pl);
                    pl.Dock = DockStyle.Bottom;
                    tabConPJJ.Controls.Add(HZSFtext);
                    HZSFtext.Dock = DockStyle.Fill;



                    tabControl1.Tabs.Add(tabIJJ);
                    tabControl1.Controls.Add(tabConPJJ);
                    tabControl1.SelectedTab = tabIJJ;

                    setPrint(HZSFtext);
                }
                catch (Exception ex)
                {
                }

                break;

            case "患者转归":
                try
                {
                    string content = "";
                    foreach (TabItem var in tabControl1.Tabs)
                    {
                        if (var.Text == "患者转归 " + e.Node.Tag.ToString())
                        {
                            MessageBox.Show("已存在患者转归文书,请勿重复打开!");
                            return;
                        }
                    }
                    //TabItem tabIJJ = new DevComponents.DotNetBar.TabItem();
                    tabIJJ.Name = "患者转归";
                    tabIJJ.Text = "患者转归 " + e.Node.Tag.ToString();

                    //TabControlPanel tabConPJJ = new DevComponents.DotNetBar.TabControlPanel();
                    tabConPJJ.Name         = "tabConPJJ";
                    tabConPJJ.TabItem      = tabIJJ;
                    tabConPJJ.Dock         = DockStyle.Fill;
                    tabIJJ.AttachedControl = tabConPJJ;

                    HZZGtext = new frmText();


                    XmlDocument tmpxml = new System.Xml.XmlDocument();
                    tmpxml.PreserveWhitespace = true;

                    content = App.ReadSqlVal("select * from jjhz_cont where id='" + e.Node.Tag.ToString() + "' and tid=4950717", 0, "CONTENT");


                    if (content == null)
                    {
                        content = App.ReadSqlVal("select * from t_tempplate_cont where tid=4950717", 0, "CONTENT");
                    }


                    tmpxml.LoadXml(content);
                    HZZGtext.MyDoc.FromXML(tmpxml.DocumentElement);
                    HZZGtext.MyDoc.OnDrawPageHeader += new TextEditor.TextDocument.Document.ZYTextDocument.DrawPageHeader(MyDoc_onDrawHeader);
                    HZZGtext.MyDoc.ContentChanged();
                    //HZZGtext.Tag = e.Node.Tag;

                    CSHKJ(e.Node.Text, e.Node.Tag.ToString());

                    tabConPJJ.Controls.Add(pl);
                    pl.Dock = DockStyle.Bottom;
                    tabConPJJ.Controls.Add(HZZGtext);
                    HZZGtext.Dock = DockStyle.Fill;



                    tabControl1.Tabs.Add(tabIJJ);
                    tabControl1.Controls.Add(tabConPJJ);
                    tabControl1.SelectedTab = tabIJJ;

                    setPrint(HZZGtext);
                }
                catch (Exception ex)
                {
                }

                break;

            case "胸痛诊疗":
                try
                {
                    string content = "";
                    foreach (TabItem var in tabControl1.Tabs)
                    {
                        if (var.Text == "胸痛诊疗 " + e.Node.Tag.ToString())
                        {
                            MessageBox.Show("已存在胸痛诊疗文书,请勿重复打开!");
                            return;
                        }
                    }
                    //TabItem tabIJJ = new DevComponents.DotNetBar.TabItem();
                    tabIJJ.Name = "胸痛诊疗";
                    tabIJJ.Text = "胸痛诊疗 " + e.Node.Tag.ToString();
                    tabIJJ.Tag  = e.Node.Tag;

                    //TabControlPanel tabConPJJ = new DevComponents.DotNetBar.TabControlPanel();
                    tabConPJJ.Name         = "tabConPJJ";
                    tabConPJJ.TabItem      = tabIJJ;
                    tabConPJJ.Dock         = DockStyle.Fill;
                    tabIJJ.AttachedControl = tabConPJJ;

                    XTZLtext = new frmText();


                    XmlDocument tmpxml = new System.Xml.XmlDocument();
                    tmpxml.PreserveWhitespace = true;

                    content = App.ReadSqlVal("select * from jjhz_cont where id='" + e.Node.Tag.ToString() + "' and tid=4946118", 0, "CONTENT");


                    if (content == null)
                    {
                        content = App.ReadSqlVal("select * from t_tempplate_cont where tid=4946118", 0, "CONTENT");
                    }


                    tmpxml.LoadXml(content);
                    XTZLtext.MyDoc.FromXML(tmpxml.DocumentElement);
                    XTZLtext.MyDoc.OnDrawPageHeader += new TextEditor.TextDocument.Document.ZYTextDocument.DrawPageHeader(MyDoc_onDrawHeader);
                    XTZLtext.MyDoc.ContentChanged();
                    //XTZLtext.Tag = e.Node.Tag;

                    CSHKJ(e.Node.Text, e.Node.Tag.ToString());

                    tabConPJJ.Controls.Add(pl);
                    pl.Dock = DockStyle.Bottom;
                    tabConPJJ.Controls.Add(XTZLtext);
                    XTZLtext.Dock = DockStyle.Fill;



                    tabControl1.Tabs.Add(tabIJJ);
                    tabControl1.Controls.Add(tabConPJJ);
                    tabControl1.SelectedTab = tabIJJ;


                    setPrint(XTZLtext);
                }
                catch (Exception ex)
                {
                }

                break;
            }
        }