XtSetMultiClickTime() XtSetMultiClickTime()
Name
XtSetMultiClickTime - set the multi-click time.
Synopsis
void XtSetMultiClickTime(display, time)
Display *display;
int time;
Inputs
display Specifies the display connection.
time Specifies the multi-click time in milliseconds.
Availability
Release 4 and later.
Description
XtSetMultiClickTime() sets the time interval used by the translation manager to determine when multiple events are interpreted as a
repeated event. When a repeat count is specified in a translation entry the time interval between arrival of each pair of repeated events
(e.g., between two ButtonPress events) must be less than the multi-click time in order for the translation actions to be taken.
Usage
The value of the multi-click time must remain completely under the user's control. An application should not set it except when directed
to by the user. It is acceptable to set this value when the user specifies the new time in a "Preferences" configuration dialog box cre-
ated by the application, for example, and it is also acceptable to set the multi-click time from a value saved in a user preferences file.
The initial multi-click time value can be specified as an application resource with name multiClickTime and class MultiClickTime. The
multi-click time is unique for each Display and is retrieved from the resource database by XtDisplayInitialize(). If no value is speci-
fied, the default initial value is 200 milliseconds.
See Also
XtGetMultiClickTime(1).
Xt - Mouse Handling XtSetMultiClickTime()