Esempio n. 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="bars"></param>
 public Bar(Bars bars)
 {
     m_pItems    = new Items(this);
     m_pBars     = bars;
     m_Font      = (Font)bars.OutlookBar.Font.Clone();
     m_ItemsFont = (Font)bars.OutlookBar.Font.Clone();
 }
        /// <summary>
        /// Default constructor.
        /// </summary>
        public OutlookBar()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitForm call

            SetStyle(ControlStyles.ResizeRedraw,true);
            SetStyle(ControlStyles.DoubleBuffer  | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint,true);

            m_pBars = new Bars(this);
            m_ViewStyle = new ViewStyle();

            m_ViewStyle.StyleChanged += new ViewStyleChangedEventHandler(this.OnViewStyleChanged);
            ViewStyle.staticViewStyle.StyleChanged += new ViewStyleChangedEventHandler(this.OnStaticViewStyleChanged);

            m_UpButtonIcon   = Core.LoadIcon("up.ico");
            m_DownButtonIcon = Core.LoadIcon("down.ico");
        }