Submitted by Anonymous on Tue, 12/05/2000 - 19:57. Developers
Help!!
My multiple button clicks are not being recognized on linux. The click_count parameter in the callback structure provided by the PushButton callback routine is always set to 1 on Linux. However, this seems to work fine on SGI. I`ve tried setting the XmNmultiClick resource to XmMULTICLICK_KEEP and I`ve also set multiClickTime to several values. Setting these resoures makes no difference, the click_count returned is always 1. Keep in mind all this works great on SGI!!
Any suggestiions??
Fri, 06/29/2012 - 14:19
#1
Double Clicks not recognized on Linux
The only thing I can think of is that the Xt resource XtMultiClickTime has changed (and that probably isn`t the correct name for the resource; see http//www.motifzone.com/resources/man/XtSetMultiClickTime.html , which probably has the correct value). This is the resource which controls the value within which clicks are counted as multiple clicks. I think it`s usually 250ms. If it has been changed to a much lower value e.g. 10ms, then your multiple clicks would register as multiple single clicks.
You can use appres to see the value if set in a database; you can also programmatically use XtGetMultiClickTime() to check the value from within your program, which I recommend to ensure that you have the right value and the same value on both machines.