C# Class _3PA.MainFeatures.NppInterfaceForm.NppInterfaceForm

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

Public Properties

Property Type Description
CurrentForegroundWindow System.IntPtr
FocusedOpacity double
GiveFocusBackToScintilla bool
IsActivated bool
UnfocusedOpacity double

Public Methods

Method 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

Protected Methods

Method 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

Method Description
CheckAeroEnabled ( ) : bool
OnClosing ( object sender, CancelEventArgs cancelEventArgs ) : void

instead of closing, cloak this form (invisible)

PlugOnOnNppWindowsMove ( ) : void

Method Details

Cloack() public method

hides the form
public Cloack ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ForceClose() public method

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

GiveFocusBack() public method

Gives focus back to the owner window
public GiveFocusBack ( ) : void
return void

NppInterfaceForm() public method

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

OnActivated() protected method

protected OnActivated ( EventArgs e ) : void
e System.EventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnShown() protected method

protected OnShown ( EventArgs e ) : void
e EventArgs
return void

SetVisibleCore() protected method

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

UnCloack() public method

show the form
public UnCloack ( ) : void
return void

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

Property Details

CurrentForegroundWindow public property

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

FocusedOpacity public property

Sets the Opacity to give to the window when it's focused
public double FocusedOpacity
return double

GiveFocusBackToScintilla public property

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

IsActivated public property

Use this to know if the form is currently activated
public bool IsActivated
return bool

UnfocusedOpacity public property

Sets the Opacity to give to the window when it's not focused
public double UnfocusedOpacity
return double