Re: Mouse Idle message



Am Mon, 2001-11-05 um 19.34 schrieb Shane Miller:
Is there a signal or something I can use to detect that the mouse
has been idle for x seconds over a control?  I want to control some
hints in a diffferent manner than the tooltips so I need to detect 
that the mouse stopped for 1 second and display a custom hint.

the easyest will be if you just copie the source of the tooltip an
customize it to your needs.the tooltip is very easy.

else you can watch the ENTER_NOTIFY and LEAVE_NOTIFY events of the
widgets of intrest and then set up a timeout, that will get refreshed on
MOTION_NOTIFY. if that timeout runs out you have the widget to show your
hint for.

have a nice day
detlef






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