C# 클래스 _3PA.MainFeatures.NppInterfaceForm.NppDockableDialog

Okay so... what is the point of this class? Basically, if you directly feed a form (that you want to display as a dockable panel) to Npp, you will get screwed It handles form so poorly, it can cause npp to freeze when you play with it (docking it/undocking it, moving it...) So, what we do is we tell Npp to use a dummy form with nothing on it and we let it manipulate this meanless form. Meanwhile, we hook to this empty form and we track its position/size to cover it with our own borderless window Unfortunatly, we can't just subscribe to ClientSizeChanged and LocationChanged events of the master form because when we move the Npp window, the LocationChange event of the master form isn't triggered... Idk why... So instead, use a hook onto npp and we update the position/size each time we receive a message that npp has moved
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: jcaillon/3P

공개 메소드들

메소드 설명
NppDockableDialog ( ) : System
NppDockableDialog ( EmptyForm formToCover ) : System
RefreshPosAndLoc ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
OnClosing ( CancelEventArgs e ) : void

비공개 메소드들

메소드 설명
Cover_OnVisibleChanged ( object sender, EventArgs eventArgs ) : void
MasterFormOnClosed ( object sender, EventArgs eventArgs ) : void
RefreshPosAndLoc ( object sender, EventArgs e ) : void
RefreshPosLocContent ( object sender, EventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

NppDockableDialog() 공개 메소드

public NppDockableDialog ( ) : System
리턴 System

NppDockableDialog() 공개 메소드

public NppDockableDialog ( EmptyForm formToCover ) : System
formToCover EmptyForm
리턴 System

OnClosing() 보호된 메소드

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
리턴 void

RefreshPosAndLoc() 공개 메소드

public RefreshPosAndLoc ( ) : void
리턴 void