Beispiel #1
0
        public TitleStrip()
        {
            // Check Dock
            this.Dock = DockStyle.Top;
            this.GripStyle = ToolStripGripStyle.Hidden;

            // Set renderer
            _renderer = new HeaderRenderer();

            // Look for headerText
            // Add children
            _headerText = new ToolStripLabel();

            // Add Label and Image
            _headerText.DisplayStyle = ToolStripItemDisplayStyle.Text;
            _headerText.Text = "";

            this.Items.AddRange(new ToolStripItem[] { _headerText });

            // Hook Draw Events
            this.Renderer = _renderer;
        }
Beispiel #2
0
        public TitleStrip()
        {
            // Check Dock
            this.Dock      = DockStyle.Top;
            this.GripStyle = ToolStripGripStyle.Hidden;

            // Set renderer
            _renderer = new HeaderRenderer();

            // Look for headerText
            // Add children
            _headerText = new ToolStripLabel();

            // Add Label and Image
            _headerText.DisplayStyle = ToolStripItemDisplayStyle.Text;
            _headerText.Text         = "";

            this.Items.AddRange(new ToolStripItem[] { _headerText });

            // Hook Draw Events
            this.Renderer = _renderer;
        }