C# Class _3PA.MainFeatures.NppInterfaceForm.NppInterfaceForm

This is the base class for the tooltips and the autocomplete form
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Свойство Type Description
CurrentForegroundWindow System.IntPtr
FocusedOpacity double
GiveFocusBackToScintilla bool
IsActivated bool
UnfocusedOpacity double

Méthodes publiques

Méthode Description
Cloack ( ) : void

hides the form

ForceClose ( ) : void

Call this method instead of Close() to really close this form

GiveFocusBack ( ) : void

Gives focus back to the owner window

NppInterfaceForm ( ) : System

Create a new npp interface form, please set CurrentForegroundWindow

UnCloack ( ) : void

show the form

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnActivated ( EventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnShown ( EventArgs e ) : void
SetVisibleCore ( bool value ) : void

This ensures the form is never visible at start

WndProc ( Message &m ) : void

Private Methods

Méthode Description
CheckAeroEnabled ( ) : bool
OnClosing ( object sender, CancelEventArgs cancelEventArgs ) : void

instead of closing, cloak this form (invisible)

PlugOnOnNppWindowsMove ( ) : void

Method Details

Cloack() public méthode

hides the form
public Cloack ( ) : void
Résultat void

Dispose() protected méthode

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

ForceClose() public méthode

Call this method instead of Close() to really close this form
public ForceClose ( ) : void
Résultat void

GiveFocusBack() public méthode

Gives focus back to the owner window
public GiveFocusBack ( ) : void
Résultat void

NppInterfaceForm() public méthode

Create a new npp interface form, please set CurrentForegroundWindow
public NppInterfaceForm ( ) : System
Résultat System

OnActivated() protected méthode

protected OnActivated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnShown() protected méthode

protected OnShown ( EventArgs e ) : void
e EventArgs
Résultat void

SetVisibleCore() protected méthode

This ensures the form is never visible at start
protected SetVisibleCore ( bool value ) : void
value bool
Résultat void

UnCloack() public méthode

show the form
public UnCloack ( ) : void
Résultat void

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m Message
Résultat void

Property Details

CurrentForegroundWindow public_oe property

Should be set when you create the new form CurrentForegroundWindow = WinApi.GetForegroundWindow();
public IntPtr,System CurrentForegroundWindow
Résultat System.IntPtr

FocusedOpacity public_oe property

Sets the Opacity to give to the window when it's focused
public double FocusedOpacity
Résultat double

GiveFocusBackToScintilla public_oe property

Set to true if scintilla should get the focus back, false if you want to use CurrentForegroundWindow
public bool GiveFocusBackToScintilla
Résultat bool

IsActivated public_oe property

Use this to know if the form is currently activated
public bool IsActivated
Résultat bool

UnfocusedOpacity public_oe property

Sets the Opacity to give to the window when it's not focused
public double UnfocusedOpacity
Résultat double