Re: FVWM: How to define a double click on FvwmButtons?

From: Stephen Dennison <stephenrd_at_gmail.com>
Date: Wed, 19 Jan 2005 14:10:10 -0500

On Thu, 20 Jan 2005 02:30:26 +0800, Yin susu <kaleasy_at_21cn.com> wrote:
> As,i know,
> *MyButtons: (1x5, Frame 0, Icon 48x48/gimp.png, \
> Action(Mouse 1) "Exec exec gimp")
> use this,I can start up gimp by click on the button.
>
> But how could i start gimp by double click on the buttons?
> It seems mouse 3 or mouse 4 does no effect.
>
> --
> Happy for nothing

Try binding a function to the mouse button you'd like to double click.
 Then in the function have it run the gimp on double click and
optionally something else on single click.
Ex:
*MyButtons: (1x5, Frame 0, Icon 48x48/gimp.png, \
 Action(Mouse 1) DoSomething)

DestroyFunc DoSomething
AddToFunc DoSomething
+ C Echo here is an optional single click if you want it for something
+ D Exec exec gimp
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Jan 19 2005 - 13:10:55 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST