C# Class _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
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Méthode Description
NppDockableDialog ( ) : System
NppDockableDialog ( EmptyForm formToCover ) : System
RefreshPosAndLoc ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnClosing ( CancelEventArgs e ) : void

Private Methods

Méthode Description
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

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

NppDockableDialog() public méthode

public NppDockableDialog ( ) : System
Résultat System

NppDockableDialog() public méthode

public NppDockableDialog ( EmptyForm formToCover ) : System
formToCover EmptyForm
Résultat System

OnClosing() protected méthode

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Résultat void

RefreshPosAndLoc() public méthode

public RefreshPosAndLoc ( ) : void
Résultat void