dheller@cory.Berkeley.EDU (Dan Heller) (03/09/89)
I don't think it exists, but I'd like to have an idle event that I can trap for when the cursor is at rest. The reason for this is that I have a scrollbar widget which has arrows at either end, which when selected, scroll the scrollbar a specified amount. The idea would be that if the arrow is selected, but the button remians down, the scrolling will continue until the button up event occurs. An example tranlation table: String translations = "<BtnDown>: scroll-a-little() \n\ <BtnDown>,<idle>: scroll-a-little() \n\ <BtnUp>: finish-scroll()"; The only way I've found to be able to do this is to do XtAddTimeOut and to call the routine associated with the "scroll-a-little" name each time the timer expires. Note that the idle event mentioned above doesn't specify a length of timeout. Dan Heller <island!argv@sun.com>