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
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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