コード例 #1
0
ファイル: TuxBarItemHeader.cs プロジェクト: itsbth/GLuaR
        public TuxBarItemHeader()
        {
            m_TuxTheme = new FireTheme();

            this.SetStyle(ControlStyles.UserPaint
                | ControlStyles.ResizeRedraw
                | ControlStyles.AllPaintingInWmPaint
                | ControlStyles.OptimizedDoubleBuffer
                | ControlStyles.SupportsTransparentBackColor
                , true
                );
            this.BackColor = Color.Transparent;

            m_ToogleButton = new TuxBarItemHeaderToogleButton();

            this.Controls.Add(m_ToogleButton);

            m_ToogleButton.Size = new Size(24,24);

            m_ToogleButton.Toogle+=new EventHandler(m_ToogleButton_Toogle);

            this.Height = 24;

            //this.Text = "Provaaa";
        }
コード例 #2
0
ファイル: TuxBarItem.cs プロジェクト: viticm/pap2
		public TuxBarItem()
		{
			m_Header = new TuxBarItemHeader();
								
			m_TuxTheme = new FireTheme();

			this.SetStyle(ControlStyles.UserPaint 
				| ControlStyles.ResizeRedraw 
				| ControlStyles.AllPaintingInWmPaint
				| ControlStyles.OptimizedDoubleBuffer
				| ControlStyles.SupportsTransparentBackColor
				, true
				);
			this.BackColor = Color.Transparent;


			m_Header.Dock = DockStyle.Top;

			m_Container = new TuxBarItemContainer();			


			m_Container.Padding = new Padding(2);

			m_Header.Toogle+=new EventHandler(m_Header_Toogle);

			this.Height = 150;
            this.Width = 100;

			this.Controls.Add(m_Container);
			this.Controls.Add(m_Header);
		}
コード例 #3
0
ファイル: TuxBarContainer.cs プロジェクト: westybsa/MP.LSharp
		public TuxBarContainer()
		{
			m_Container = new TuxBarContainerPanel();
			
			this.Controls.Add(m_Container);

			this.AutoScroll = true;

			this.AutoScrollMinSize = new Size(10, 10);

			m_Theme = new FireTheme();			
		}
コード例 #4
0
ファイル: TuxBarItemContainer.cs プロジェクト: itsbth/GLuaR
        public TuxBarItemContainer()
        {
            m_TuxTheme = new FireTheme();

            this.SetStyle(ControlStyles.UserPaint
                | ControlStyles.ResizeRedraw
                | ControlStyles.AllPaintingInWmPaint
                | ControlStyles.OptimizedDoubleBuffer
                | ControlStyles.SupportsTransparentBackColor
                , true
                );

            this.BackColor = Color.Transparent;
        }
コード例 #5
0
ファイル: TuxBarContainer.cs プロジェクト: westybsa/MP.LSharp
			public TuxBarContainerPanel()
			{
				m_TuxTheme = new FireTheme();

				this.SetStyle(ControlStyles.UserPaint 
					| ControlStyles.ResizeRedraw 
					| ControlStyles.AllPaintingInWmPaint
					| ControlStyles.OptimizedDoubleBuffer
					| ControlStyles.SupportsTransparentBackColor
					| ControlStyles.Selectable
					| ControlStyles.StandardClick
					, true
					);

				this.BackColor = Color.Transparent;

				m_Items = new TuxBarItemCollection();

				m_Items.AddItem+=new TuxBar.TuxBarItemCollection.TuxBarItemCollectionHandler(m_Items_AddItem);

				m_Items.RemoveItem+=new TuxBar.TuxBarItemCollection.TuxBarItemCollectionHandler(m_Items_RemoveItem);

				m_Items.InsertItem+=new TuxBar.TuxBarItemCollection.TuxBarItemCollectionInsertHandler(m_Items_InsertItem);

				m_Items.LayoutChanged+=new EventHandler(m_Items_LayoutChanged);

                m_Items.ClearItems += new TuxBarItemCollection.TuxBarItemCollectionClear(m_Items_ClearItems);
			}