public AxMenuStrip() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); _renderer = new AxToolStripRenderer(); this.Renderer = _renderer; }
public AxToolStrip() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); _renderer = new AxToolStripRenderer(); this.Renderer = _renderer; //this.Paint += ( s, e ) => { // foreach ( ToolStripItem item in Items ) { // if ( !item.Selected && item is ToolStripComboBox ) { // ToolStripComboBox combo = item as ToolStripComboBox; // Rectangle r = new Rectangle( // combo.ComboBox.Location.X - 1, // combo.ComboBox.Location.Y - 1, // combo.ComboBox.Size.Width + 1, // combo.ComboBox.Size.Height + 1 ); // e.Graphics.DrawRectangle( new Pen( ToolStripBorderColor.Lighten( 15 ) ), r ); // } // } //}; }