On 1 Jan, Markus Gutschke wrote:
> Joey Hess <joey_at_kite.ml.org> writes:
>> I want to make a fvwmbuttons button that will do 3 differnet actions
>> depending on which mouse button is used to click on it. Is that possible?
>
> If you want the button to do anything fancy, then the easiest solution
> is writing a small X application that gets swallowed in the
> fvwmbuttons bar.
For this case, the easiest is probably to use the builtin capabilities
of FvwmButtons. From the FvwmButtons manpage:
Action [(options)] command
Specifies an fvwm command to be executed when the
button is activated by pressing return or a mouse
button. If command contains whitespace it must be
quoted. The current options are:
Mouse n - this action is only executed for mouse
button n. One actions can be defined for each
mouse button, in addition to the general action.
So, it's as easy as:
*FvwmButtons(Title "Foo", Icon foo.xpm, \
Action(Mouse 1) "xmessage Button 1 was clicked.", \
Action(Mouse 2) "xmessage Button 2 was clicked.", \
Action(Mouse 3) "xmessage Button 3 was clicked.")
--Xris
--
Can anyone remember when the times were not hard, and money not scarce?
Chris "Xris" Laas, Global Dictator in the making.
When I have attained my glorious destiny, I will have my own domain.
Until then, you can reach me at chrisl_at_cybercom.net.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Jan 01 1997 - 13:40:42 GMT