Submitted by wwf on Fri, 01/11/2002 - 11:59. Developers
i have write a callback function to respond to
the arrowbutton, but one respond for one click.
i want to ask whether it can constantly respond
if i click it not realease?
Tue, 07/03/2012 - 15:07
#1
continue callback
You are probably installing a callback on XmNactivateCallback.
What you could do instead is to install a callback on XmNarmCallback and XmNdisarmCallback. On XmNarmCallback, do your back-end work (some function that takes a very short time to operate) and then install a timer that calls that back-end work again (using the value of the Xt multi-click timer, to keep things consistent); and in the XmNdisarmCallback, remove the timer so that the back-end work stops being called.
This may feel a little funny for the user, though, so test it carefully.