Class TNppForm
Unit
Declaration
type TNppForm = class(TForm)
Description
Default implementation of a basic (non-docking) plugin dialog
Hierarchy
- TForm
- TNppForm
Overview
Fields
| Public | Npp: TNppPlugin; |
| Public | DefaultCloseAction: TCloseAction; |
Methods
| Public | constructor Create(AOwner: TComponent); overload; override; |
| Public | constructor Create(const Plugin: TNppPlugin); reintroduce; overload; |
| Public | destructor Destroy; override; |
| Public | function ShowModal: Integer; override; |
| Public | function WantChildKey(Child: TControl; var Message: TMessage): Boolean; override; |
| Protected | function SafeSendMessage(Hndl: HWND; Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: NativeInt = 0): LRESULT; overload; |
| Protected | function SafeSendMessage(Hndl: HWND; Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: Pointer = nil): LRESULT; overload; |
| Public | procedure SubclassAndTheme(DmFlag: Cardinal); virtual; |
| Public | procedure ToggleDarkMode; virtual; |
| Protected | procedure DoClose(var Action: TCloseAction); override; |
| Protected | procedure HandleCloseQuery(Sender: TObject; var CanClose: Boolean); virtual; |
| Protected | procedure RegisterForm(); |
| Protected | procedure UnregisterForm(); |
Description
Fields
| Public | Npp: TNppPlugin; |
|
This item has no description. | |
| Public | DefaultCloseAction: TCloseAction; |
|
This item has no description. | |
Methods
| Public | constructor Create(AOwner: TComponent); overload; override; |
|
Overrides the base constructor to create a new
| |
| Public | constructor Create(const Plugin: TNppPlugin); reintroduce; overload; |
|
Creates a new Parameters
| |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | function ShowModal: Integer; override; |
|
Displays this
ShowModal method attempts to hide the parent window. But if the main application handle belongs to Notepad++, hiding it makes the editor window disappear, with no user-accessible way to focus it again, requiring the Task Manager to ultimately shut it down.
| |
| Public | function WantChildKey(Child: TControl; var Message: TMessage): Boolean; override; |
|
This item has no description. | |
| Protected | function SafeSendMessage(Hndl: HWND; Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: NativeInt = 0): LRESULT; overload; |
|
Sends a plugin or Scintilla API message to a dialog window | |
| Protected | function SafeSendMessage(Hndl: HWND; Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: Pointer = nil): LRESULT; overload; |
|
Sends a plugin or Scintilla API message to a dialog window when the | |
| Public | procedure SubclassAndTheme(DmFlag: Cardinal); virtual; |
|
This item has no description. | |
| Public | procedure ToggleDarkMode; virtual; |
|
This item has no description. | |
| Protected | procedure DoClose(var Action: TCloseAction); override; |
|
Allows this | |
| Protected | procedure HandleCloseQuery(Sender: TObject; var CanClose: Boolean); virtual; |
|
Added to ensure that Free Pascal plugin dialogs respond to the
| |
| Protected | procedure RegisterForm(); |
|
Sends NPPM_MODELESSDIALOG with MODELESSDIALOGADD | |
| Protected | procedure UnregisterForm(); |
|
Sends NPPM_MODELESSDIALOG with MODELESSDIALOGREMOVE | |