C# Класс SIL.FieldWorks.Common.Widgets.FwComboBoxBase

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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_button DropDownButton
m_comboTextBox ComboTextBox
m_dropDownBox IDropDownBox
m_fListWidthSet bool

Private Properties

Свойство Тип Описание
ShowDropDownBox void
m_button_KeyDown void
m_button_MouseDown void
m_comboTextBox_KeyDown void

Открытые методы

Метод Описание
AdjustForStyleSheet ( Form parent, Control grower, IVwStylesheet stylesheet ) : void

Assumes the control is part of a form and should use a stylesheet. This becomes the stylesheet of the text box. If, as a result, the preferred height of this becomes greater than its actual height, the height of this is adjusted to suit. In addition, if grower is not null (grower is typically a containing panel), the height of grower is increased by the same amount. Also, the height of the indicated form is increased, and any top level controls which need it are adjusted appropriately.

AdjustForStyleSheet ( Form parent, Control grower, XCore mediator ) : void

Adjust, figuring the stylesheet based on the main window of the mediator.

CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

Form_VisibleChanged ( object sender, EventArgs e ) : void
FwComboBoxBase ( ) : System

Construct one.

PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void

RemoveTextBoxHighlight ( ) : void
SelectAll ( ) : void

Selects all of the text in the text box.

SetPadding ( ) : void
SetTextBoxHighlight ( ) : void
m_button_GotFocus ( object sender, EventArgs e ) : void
m_button_LostFocus ( object sender, EventArgs e ) : void
m_comboTextBox_GotFocus ( object sender, EventArgs e ) : void
m_comboTextBox_LostFocus ( object sender, EventArgs e ) : void
m_comboTextBox_MouseDown ( object sender, MouseEventArgs e ) : void

Защищенные методы

Метод Описание
CreateDropDownBox ( ) : IDropDownBox

Creates the drop down box.

Dispose ( bool disposing ) : void

Clean up any resources being used.

HideDropDownBox ( ) : void

Hides the drop down box.

OnEnabledChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.EnabledChanged event.

OnPaint ( PaintEventArgs e ) : void

Raises the E:System.Windows.Forms.Control.Paint event.

RaiseDropDown ( ) : void

Raises the drop down event.

Select ( bool directed, bool forward ) : void

Activates a child control.

Приватные методы

Метод Описание
ShowDropDownBox ( ) : void
m_button_KeyDown ( object sender, KeyEventArgs e ) : void
m_button_MouseDown ( object sender, MouseEventArgs e ) : void
m_comboTextBox_KeyDown ( object sender, KeyEventArgs e ) : void

Описание методов

AdjustForStyleSheet() публичный Метод

Assumes the control is part of a form and should use a stylesheet. This becomes the stylesheet of the text box. If, as a result, the preferred height of this becomes greater than its actual height, the height of this is adjusted to suit. In addition, if grower is not null (grower is typically a containing panel), the height of grower is increased by the same amount. Also, the height of the indicated form is increased, and any top level controls which need it are adjusted appropriately.
public AdjustForStyleSheet ( Form parent, Control grower, IVwStylesheet stylesheet ) : void
parent System.Windows.Forms.Form The parent.
grower System.Windows.Forms.Control The grower.
stylesheet IVwStylesheet The stylesheet.
Результат void

AdjustForStyleSheet() публичный Метод

Adjust, figuring the stylesheet based on the main window of the mediator.
public AdjustForStyleSheet ( Form parent, Control grower, XCore mediator ) : void
parent System.Windows.Forms.Form
grower System.Windows.Forms.Control
mediator XCore
Результат void

CheckDisposed() публичный Метод

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

CreateDropDownBox() защищенный абстрактный Метод

Creates the drop down box.
protected abstract CreateDropDownBox ( ) : IDropDownBox
Результат IDropDownBox

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Form_VisibleChanged() публичный Метод

public Form_VisibleChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

FwComboBoxBase() публичный Метод

Construct one.
public FwComboBoxBase ( ) : System
Результат System

HideDropDownBox() защищенный Метод

Hides the drop down box.
protected HideDropDownBox ( ) : void
Результат void

OnEnabledChanged() защищенный Метод

Raises the E:System.Windows.Forms.Control.EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

OnPaint() защищенный Метод

Raises the E:System.Windows.Forms.Control.Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
Результат void

PropChanged() публичный Метод

public PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
hvo int
tag int
ivMin int
cvIns int
cvDel int
Результат void

RaiseDropDown() защищенный Метод

Raises the drop down event.
protected RaiseDropDown ( ) : void
Результат void

RemoveTextBoxHighlight() публичный Метод

public RemoveTextBoxHighlight ( ) : void
Результат void

Select() защищенный Метод

Activates a child control.
protected Select ( bool directed, bool forward ) : void
directed bool true to specify the direction of the control to select; otherwise, false.
forward bool true to move forward in the tab order; false to move backward in the tab order.
Результат void

SelectAll() публичный Метод

Selects all of the text in the text box.
public SelectAll ( ) : void
Результат void

SetPadding() публичный Метод

public SetPadding ( ) : void
Результат void

SetTextBoxHighlight() публичный Метод

public SetTextBoxHighlight ( ) : void
Результат void

m_button_GotFocus() публичный Метод

public m_button_GotFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_button_LostFocus() публичный Метод

public m_button_LostFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_comboTextBox_GotFocus() публичный Метод

public m_comboTextBox_GotFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_comboTextBox_LostFocus() публичный Метод

public m_comboTextBox_LostFocus ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_comboTextBox_MouseDown() публичный Метод

public m_comboTextBox_MouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
Результат void

Описание свойств

m_button защищенное свойство

The button that pulls down the list.
protected DropDownButton,SIL.FieldWorks.Common.Widgets m_button
Результат DropDownButton

m_comboTextBox защищенное свойство

The combo text box
protected ComboTextBox,SIL.FieldWorks.Common.Widgets m_comboTextBox
Результат ComboTextBox

m_dropDownBox защищенное свойство

The drop down box
protected IDropDownBox m_dropDownBox
Результат IDropDownBox

m_fListWidthSet защищенное свойство

this flag is set if we receive the DropDownWidth message. Until we receive one of those, the list width tracks the main control width.
protected bool m_fListWidthSet
Результат bool