Re: FVWM: What *is* a menu??

From: Paul D. Smith <psmith_at_baynetworks.com>
Date: 22 Feb 1999 16:01:39 -0500

%% John <jtc_at_stic.net> writes:

  j> The subject sounds silly doesn't it? But after reading all
  j> the documentation I can find, I'm still not sure. Is it a
  j> window?, a function?, a hidden button? or maybe an Icon?.

None of the above. It's a menu.

:)

You know, those things that contain lists of choices and allow you to
select one of them, whereupon whatever action that choice is bound to is
done.

You create them with AddToMenu and remove them with DestroyMenu. Then
you bind them to keys, mouse clicks, buttons, or other menus.

  j> And whatever it is, how do I change its style either globally or
  j> individually.

You don't say what version of fvwm you're using, but assuming it's the
latest stuff, you can change the "style" of a menu with the MenuStyle
command.

Things that are controlled by the menu style include: the color scheme
(foreground, background, "grey-out" (disabled items), selected item,
plus fancy stuff like gradients), the font, the way submenus are
displayed (overlapping or not? etc.), how the cursor is warped (if at
all) when the menu appears, if there's a side picture, etc. etc.

You then use ChangeMenuStyle to apply a specific style to a specific
menu. The "default" MenuStyle "*" applies to all menus which haven't
had ChangeMenuStyle set for them.

See the fvwm man page for details.

  j> Is it possible to use something like 'style "<whatever a menu is?>"
  j> ClickToFocus' ?

  j> Specifically what I'd like to be able to do is to set the
  j> sub-menus so that they don't pop up until clicked and then
  j> stay up until the screen is clicked.

This, however, isn't part of the style of the menu, but rather how it's
invoked. There are two ways to invoke a menu: Popup and Menu. If you
invoke a menu with Popup, then it's not sticky; if you release the mouse
button without selecting anything, the menu just disappears.

If you invoke the menu with Menu, then it (potentially) sticks.

For example:

  Mouse 1 R A Menu Utilities

Clicking mouse-1 in the root window will post a menu Utilities; it will
stick. Whereas this:

  Mouse 1 R A Popup Utilities

doesn't stick: if you click and release, the menu disappears again.

  j> Plus if possible have different colors for each menu. MenuStyle
  j> doesn't appear to give me these options.

Sure it does. In spades! :) Look again. Maybe you need a newer
version of fvwm.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith_at_baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
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 Mon Feb 22 1999 - 15:07:16 GMT

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