This is an abstract class that provides the basic functionality for a Views-enabled ComboBox. Classes that extend this class provide an implementation of the drop down box.
상속: System.Windows.Forms.UserControl, IFWDisposable, IVwNotifyChange, IWritingSystemAndStylesheet
예제 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="DropDownButton"/> class.
		/// </summary>
		/// <param name="comboBox">The combo box.</param>
		public DropDownButton(FwComboBoxBase comboBox)
		{
			m_comboBox = comboBox;
			if (Application.RenderWithVisualStyles)
			{
				DoubleBuffered = true;
			}
			else
			{
				Image = ResourceHelper.ComboMenuArrowIcon; // no text, just the image
				BackColor = SystemColors.Control;
			}
		}
예제 #2
0
		internal ComboTextBox(FwComboBoxBase comboBox)
		{
			m_comboBox = comboBox;
			// Allows it to be big unless client shrinks it.
			Font = new Font(Font.Name, (float)100.0);
#if !__MonoCS__
			if (Application.RenderWithVisualStyles)
			{
				DoubleBuffered = true;
				BackColor = Color.Transparent;
			}
			else
#endif
			{
				// And, if not changed, it's background color is white.
				BackColor = SystemColors.Window;
			}
		}