Skip to content

Commit 0db89ae

Browse files
committed
add NPPM_GET/SETLINENUMBERWIDTHMODE
this pair of messages added in v7.9.2 closes #147
1 parent 2608c65 commit 0db89ae

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

content/docs/plugin-communication.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,22 @@ Second call is sent with correctly allocated buffer to retrieve the language nam
804804

805805
---
806806

807+
#### **NPPM_GETLINENUMBERWIDTHMODE**
808+
*Get line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT)*
809+
810+
**Parameters**:
811+
812+
*wParam [in]*
813+
: int, must be zero.
814+
815+
*lParam [in]*
816+
: int, must be zero.
817+
818+
**Return value**:
819+
: Returns the line number margin width mode, either the LINENUMWIDTH_DYNAMIC or LINENUMWIDTH_CONSTANT value.
820+
821+
---
822+
807823
#### **NPPM_GETMENUHANDLE**
808824
*Retrieves either the plugin or the main menu handle of Notepad++.*
809825

@@ -1646,6 +1662,23 @@ If value is True adds an additional sunken edge style to the Scintilla window el
16461662

16471663
---
16481664

1665+
#### **NPPM_SETLINENUMBERWIDTHMODE**
1666+
*Set line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT).
1667+
It may help some plugins to disable non-dynamic line number margins width to have a smoothly visual effect while vertical scrolling the content in Notepad++*
1668+
1669+
**Parameters**:
1670+
1671+
*wParam [in]*
1672+
: int, must be zero.
1673+
1674+
*lParam [in]*
1675+
: int widthMode, must be one of the values LINENUMWIDTH_DYNAMIC or LINENUMWIDTH_CONSTANT.
1676+
1677+
**Return value**:
1678+
: Returns True on success, False on failure
1679+
1680+
---
1681+
16491682
#### **NPPM_SETMENUITEMCHECK**
16501683
*Sets or removes the check on a menu item.*
16511684

0 commit comments

Comments
 (0)