comparison runtime/doc/popup.txt @ 17196:983950357c40 v8.1.1597

patch 8.1.1597: cannot scroll a popup window with the mouse commit https://github.com/vim/vim/commit/68acb41f990405cb5ccd33fcba71a5d499c82974 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 26 03:40:36 2019 +0200 patch 8.1.1597: cannot scroll a popup window with the mouse Problem: Cannot scroll a popup window with the mouse. Solution: If the popup window has a scrollbar let the mouse scroll wheel scroll the window.
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jun 2019 03:45:04 +0200
parents 8581779aa16f
children 11f3cf51d43b
comparison
equal deleted inserted replaced
17195:44d92eb813b4 17196:983950357c40
83 The current cursor position is displayed even when it is under a popup window. 83 The current cursor position is displayed even when it is under a popup window.
84 That way you can still see where it is, even though you cannot see the text 84 That way you can still see where it is, even though you cannot see the text
85 that it is in. 85 that it is in.
86 86
87 87
88
89 TODO: 88 TODO:
90 - When the lines do not fit show a scrollbar (like in the popup menu). 89 - click near top of scrollbar scrolls down, clear near bottom scrolls up.
91 - Use the mouse wheel for scrolling. 90 - Allow for setting scrollbar color: scrollbarhighlight,
92 - Have a way to scroll to the botton. (#4577) 91 scrollbarthumbhighlight ?
92 - Have a way to scroll to the bottom? (#4577)
93 - Why does 'nrformats' leak from the popup window buffer??? 93 - Why does 'nrformats' leak from the popup window buffer???
94 - Disable commands, feedkeys(), CTRL-W, etc. in a popup window. 94 - Disable commands, feedkeys(), CTRL-W, etc. in a popup window.
95 Use ERROR_IF_POPUP_WINDOW for more commands. 95 Use ERROR_IF_POPUP_WINDOW for more commands.
96 - Add 'balloonpopup': instead of showing text, let the callback open a popup 96 - Add 'balloonpopup': instead of showing text, let the callback open a popup
97 window and return the window ID. The popup will then be closed when the 97 window and return the window ID. The popup will then be closed when the
273 height height of the whole popup in screen cells 273 height height of the whole popup in screen cells
274 core_col screen column of the text box 274 core_col screen column of the text box
275 core_line screen line of the text box 275 core_line screen line of the text box
276 core_width width of the text box in screen cells 276 core_width width of the text box in screen cells
277 core_height height of the text box in screen cells 277 core_height height of the text box in screen cells
278 firstline line of the buffer at top (1 unless scrolled)
279 scrollbar non-zero if a scrollbar is displayed
278 visible one if the popup is displayed, zero if hidden 280 visible one if the popup is displayed, zero if hidden
279 Note that these are the actual screen positions. They differ 281 Note that these are the actual screen positions. They differ
280 from the values in `popup_getoptions()` for the sizing and 282 from the values in `popup_getoptions()` for the sizing and
281 positioning mechanism applied. 283 positioning mechanism applied.
282 284
481 looks like the text scrolled up. When out of range 483 looks like the text scrolled up. When out of range
482 the last buffer line will at the top of the window. 484 the last buffer line will at the top of the window.
483 Also see "scrollbar". 485 Also see "scrollbar".
484 hidden When TRUE the popup exists but is not displayed; use 486 hidden When TRUE the popup exists but is not displayed; use
485 `popup_show()` to unhide it. 487 `popup_show()` to unhide it.
486 {not implemented yet}
487 tabpage When -1: display the popup on all tab pages. 488 tabpage When -1: display the popup on all tab pages.
488 When 0 (the default): display the popup on the current 489 When 0 (the default): display the popup on the current
489 tab page. 490 tab page.
490 Otherwise the number of the tab page the popup is 491 Otherwise the number of the tab page the popup is
491 displayed on; when invalid the popup is not created 492 displayed on; when invalid the popup is not created