> On Wednesday, February 1, 2017 at 9:50:47 PM UTC+1, Bram Moolenaar wrote:
> > Thus all we need is to implement a function in evalfunc.c to show the
> > balloon.  This function could also be invoked from a channel callback.
> 
> This is how I have anticipated this feature as well. Somehow, I have
> misinterpreted your previous input.

And it should not be difficult, since the function already exists.

> > The tricky part is to draw a balloon in a terminal, and
> > undraw it properly.  The popup menu comes closes, the code is in
> > popupmnu.c
> 
> But isn't it that "+balloon_eval" feature was meant to be used only
> with GUI versions? 'gui_beval.c' and 'gui.c' indicate that. 

Yes, that is how it was build.

> How would we go with mouse hover event handling in terminal? I am no
> expert in this but from the existing code I can see
> "XtAddEventHandler()" is being used for non-GTK GUI's so I suppose
> that is ought to cover the terminal use-cases as well?

For a terminal this will need to work differently.  We don't have a
mouse hover event, and it might be tricky to make it work well.  But the
balloon could also be triggered in other ways, e.g. a right mouse button
click.  Or something on an autocommand.

Anyway, adding the function to show a balloon in the GUI should be easy,
doing this in the terminal is a bit of a challange.

-- 
BRIDGEKEEPER: What is your favorite editor?
GAWAIN:       Emacs ...  No, Viiiiiiiiiiimmmmmmm!
           "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui