Reputation: 161624
I only found three types of dialog in gVim:
:let n = inputdialog("value for shiftwidth", &sw)
:call confirm("Save changes?", "&Yes\n&No\n&Cancel")
:browse e
Can I write a GUI Dialog, such as a ColorPick-Dialog to choose RGB value?
Does gVim support custom GUI widget?
Upvotes: 6
Views: 319
Reputation: 62538
No, it's not possible.
Vim (in general) does not support any GUI boxes. However, if you wish to extend Vim, it is open source, so all you have to do is go to www.vim.org, download the source and hack. Though, it will probably take a bit more effort to accomplish what you want than just three lines.
Upvotes: 0
Reputation: 79175
No, it is not possible.
However you can make up your own DLL and libcall()
. If your library must return a string (pointer to a zero-terminated array of characters) it will leak.
Upvotes: 2
Reputation: 12603
I don't believe gVim support any custom "GUI" widgets, but you can always use an external program that shows that dialog and writes the output to stdout
.
Upvotes: 0