Skip to content

Commit

Permalink
Add NPPM_GETTABCOLORID desc
Browse files Browse the repository at this point in the history
(new to v8.6.8)
closes #671
  • Loading branch information
pryrt committed Jun 4, 2024
1 parent b69b056 commit e22224b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: docs
Notepad++ User Manual
=======

This **Notepad++ User Manual** describes the Notepad++ application v8.x (currently up to v8.6.7).
This **Notepad++ User Manual** describes the Notepad++ application v8.x (currently up to v8.6.8).

The documentation is built collaboratively, and [your contribution is very welcome](https://github.com/notepad-plus-plus/npp-usermanual), following our [contribution guidelines](https://github.com/notepad-plus-plus/npp-usermanual/blob/master/CONTRIBUTION.md).

Expand Down
30 changes: 30 additions & 0 deletions content/docs/plugin-communication.md
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,36 @@ struct ShortcutKey {

---

#### [2138] **NPPM_GETTABCOLORID**
*Gets the tab color id for the given view and tab index. (New to v8.6.8)*

**Parameters**:

*wParam [in]*
: int, 0 for primary view, 1 for secondary view, -1 for currently-active view

*lParam [in]*
: int, zero-based tab index, i.e., use 0 for first tab, 1 for second tab, etc.; use -1 for active tab

**Return value:**
: int, the tab color id value:
- -1 (no color)
- 0 (yellow)
- 1 (green)
- 2 (blue)
- 3 (orange)
- 4 (pink)

_Note_: There is no symmetric plugin command for setting the tab color. Plugins can use NPPM_MENUCOMMAND to set active tab's color with the desired tab color using these menu-command ids:
- 44110 (no color)
- 44111 (yellow)
- 44112 (green)
- 44113 (blue)
- 44114 (orange)
- 44115 (pink)

---

#### [2066] **NPPM_GETWINDOWSVERSION**
*Retrieves the windows operating system version.*

Expand Down

0 comments on commit e22224b

Please sign in to comment.