continue callback

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
continue callback

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?

ICS_support

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.