diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-17 23:03:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-17 23:03:31 +0200 |
commit | 1b9645de3c05f37b5c30e78f999351b0cf486ade (patch) | |
tree | 4041a73d7fd4ab444372919e99962587a689388a /runtime/doc/gui.txt | |
parent | dde403c2d8f3dabe6fefa7b526958b49a8f2e6e9 (diff) |
patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
Diffstat (limited to 'runtime/doc/gui.txt')
-rw-r--r-- | runtime/doc/gui.txt | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt index a66fbb31e9..7fb6a59719 100644 --- a/runtime/doc/gui.txt +++ b/runtime/doc/gui.txt @@ -1,4 +1,4 @@ -*gui.txt* For Vim version 8.0. Last change: 2017 Aug 27 +*gui.txt* For Vim version 8.0. Last change: 2017 Sep 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -784,10 +784,31 @@ In the Win32 and GTK+ GUI, starting a menu name with ']' excludes that menu from the main menu bar. You must then use the |:popup| or |:tearoff| command to display it. + *window-toolbar* +Each window can have a local toolbar. This uses the first line of the window, +thus reduces the space for the text by one line. + +Only text can be used. When using Unicode special characters can be used to +make the items look like icons. + +If the items do not fit then the last ones cannot be used. The toolbar does +not wrap. + +Example for debugger tools: > + amenu 1.10 WinBar.Step :Step<CR> + amenu 1.20 WinBar.Next :Next<CR> + amenu 1.30 WinBar.Finish :Finish<CR> + amenu 1.40 WinBar.Cont :Continue<CR> +< +The window toolbar uses the ToolbarLine and ToolbarButton highlight groups. + *popup-menu* In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the special menu "PopUp". This is the menu that is displayed when the right mouse button is pressed, if 'mousemodel' is set to popup or popup_setpos. +Example: > + nnoremenu 1.40 PopUp.&Paste "+gP + menu PopUp 5.3 Showing What Menus Are Mapped To *showing-menus* |