[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tooltip-show with a timer

From: Erik Iverson
Subject: tooltip-show with a timer
Date: Sat, 31 Jan 2009 10:39:08 -0600
User-agent: Thunderbird (X11/20090105)

Hello all,

Could someone help me understand what is going on here?

Define a function called moving-tooltip, which simply shows a tooltip that says "hi".

(defun moving-tooltip ()
 (tooltip-show "hi"))

Then, hook the new function up to a timer that runs every two seconds.

(run-with-timer 1 2 'moving-tooltip)

Let the mouse come to rest, and you'll see the tooltip. Don't move the mouse, and the next time the tooltip timer is called, the tooltip gets moved (specifically, to the upper-left corner of my screen).

Any ideas as to what is happening here?

I'd love it if the tooltip just stayed where it was if the mouse didn't move.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]