FVWM: Re: Action from a swallowed button

From: David S. Goldberg <dsg_at_linus.mitre.org>
Date: 07 Mar 1997 10:32:30 -0500

What you want can be done, but not quite as nicely as you want. This
has come up before, and my solution was to add an empty title to the
swallowed button. ISTR someone else saying that the padding feature
can be used the same way. If you do one of these things, then
clicking on the title, or in the pad area (eg outside the application
window itself) then you get the FvwmButton action you want. Here is
an example of what I do

*FvwmButtons(10x1, Frame 1, Action `Exec "top" TOP`, \
    Swallow(NoClose,UseOld) XMeter "Exec XMETER", \
    Font SCHU_C_M_R_N_6, Title " ")

So I have a button defined whose default action is to run the top
command (please forgive me for not expanding my M4 macros here). That
will be run if I click with the mouse button in the title area or if
FvwmButtons has focus and the mouse is positioned in that button, then
hitting RET will cause the action to take place. In that case, it
doesn't matter where the mouse is in the button. The Font is an M4
macro for the smallest font I could find on my system so the empty
title takes as little space as possible. I prefer this to padding
which pads the entire button. If I click the mouse in the xmeter
title bar, I get the xmeter menu of what stats to display, so in a way
this is the best of both worlds for me anyway. That said, I'd much
prefer if FvwmButtons allowed me to intercept mouse clicks in
swallowed window buttons in general. Note also the title is a single
space. When I tried to use the empty string, FvwmButtons complained.

hth,

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 617-271-3887
Email: dsg_at_mitre.org
--
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 Fri Mar 07 1997 - 09:34:17 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST