+2007-07-18 Jonathan Pobst <monkey@jpobst.com>
+
+ * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
+ Implement MaxItemSize.
+
2007-07-17 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
protected virtual bool DefaultShowItemToolTips { get { return true; } }
protected override Size DefaultSize { get { return new Size (100, 25); } }
protected internal virtual ToolStripItemCollection DisplayedItems { get { return this.displayed_items; } }
+ protected internal virtual Size MaxItemSize {
+ get { return new Size (Width - (GripStyle == ToolStripGripStyle.Hidden ? 1 : 8), Height); }
+ }
#endregion
#region Public Methods
Application.KeyboardCapture = null;
// Redraw for mnemonic underlines
- this.Refresh ();
+ this.Invalidate ();
}
}
}
get { return true; }
}
- //protected internal override Size MaxItemSize {
- // get { return new Size (Screen.PrimaryScreen.Bounds.Width - 2, Screen.PrimaryScreen.Bounds.Height - 34); }
- //}
+ protected internal override Size MaxItemSize {
+ get { return new Size (Screen.PrimaryScreen.Bounds.Width - 2, Screen.PrimaryScreen.Bounds.Height - 34); }
+ }
protected virtual bool TopMost {
get { return true; }
protected override Padding DefaultPadding {
get { return base.DefaultPadding; }
}
+
+ protected internal override Size MaxItemSize {
+ get { return Size; }
+ }
#endregion
#region Protected Methods