defined by the resource multiClickTime. This resource is not defined by Motif but on a per−display basis; the
value should be left to the user to specify independently from the application. You can get or set this value using the
functions XtGetMultiClickTime() or XtSetMultiClickTime(). The time interval is used by Xt's
translation manager to determine when multiple events are interpreted as a repeat event. The default value is 200
milliseconds (1/5 of a second).
12.2.2 Multiple Button Clicks
Unfortunately, there is no way to determine whether you are about to receive multiple button clicks from a
PushButton. Each time the user activates the PushButton, the arm callback is invoked, followed by the activate
callback, followed by the disarm callback. These three callbacks are invoked regardless of whether multiple clicks
have occurred.
The best way to determine whether multiple button clicks have occurred would be for the disarm callback to be called
only when there are no more button clicks queued. Under this scenario, the same callback function can be used to
determine the end of a multiple button click sequence. However, since the Motif toolkit does not operate this way, we
must approach the task of handling multiple button clicks differently. We handle the situation by setting up our own
timeout routines independently of Motif and handling multiple clicks through the timeout function. Even though we
are going to use an alternate method for handling multiple clicks, we can still use the ...