Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
 void m_Items_ClearItems(TuxBarItemCollection sender)
 {
     foreach (TuxBarItem current in sender)
     {
         this.Controls.Remove(current);
     }
     this.Invalidate();
 }
Ejemplo n.º 3
0
            void m_Items_ClearItems(TuxBarItemCollection sender)
            {
                foreach (TuxBarItem current in sender)
                {
                    this.Controls.Remove(current);
                }
				this.Invalidate();
            }
Ejemplo n.º 4
0
			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);
			}