C# 클래스 SIL.FieldWorks.Common.Widgets.VSTabControl

This class supports rendering of TabControl correctly when using bottom alignment with visual styles enabled. When ones are disabled the default method of rendering is used. Adapted from XPTabControl by Vladimir Svyatsky.
상속: System.Windows.Forms.TabControl
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DrawCustomTabControl void
DrawTabItem void
GetImageByIndexOrKey Image
HitTest int
InitializeDrawMode void

공개 메소드들

메소드 설명
VSTabControl ( ) : System

Initializes a new instance of the T:VSTabControl class.

보호된 메소드들

메소드 설명
OnFontChanged ( EventArgs e ) : void

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

OnHandleCreated ( EventArgs e ) : void

This member overrides M:System.Windows.Forms.Control.OnHandleCreated(System.EventArgs).

OnPaint ( PaintEventArgs e ) : void

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

WndProc ( Message &m ) : void

This member overrides M:System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@).

비공개 메소드들

메소드 설명
DrawCustomTabControl ( Graphics g, Rectangle clipRect ) : void

Draws our tab control.

DrawTabItem ( Graphics g, int index, TabItemState state, Rectangle tabRect, StringFormat textFmt ) : void

Draws certain tab.

GetImageByIndexOrKey ( int index, string key ) : Image

This function attempts to get tab image by index first or if not set then by key.

HitTest ( ) : int

Gets hot tab index.

InitializeDrawMode ( ) : void

Turns custom drawing on/off and sets native font for the control (it's required for tabs to adjust their size correctly). If one doesn't install native font manually then Windows will install ugly system font for the control.

메소드 상세

OnFontChanged() 보호된 메소드

Raises the E:System.Windows.Forms.Control.FontChanged event.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
리턴 void

OnHandleCreated() 보호된 메소드

This member overrides M:System.Windows.Forms.Control.OnHandleCreated(System.EventArgs).
protected OnHandleCreated ( 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

VSTabControl() 공개 메소드

Initializes a new instance of the T:VSTabControl class.
public VSTabControl ( ) : System
리턴 System

WndProc() 보호된 메소드

This member overrides M:System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@).
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows Message Object.
리턴 void