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

From: John <jtc_at_stic.net>
Date: Tue, 23 Feb 1999 01:22:57 +0000

Appreciate the response Paul.

"Paul D. Smith" wrote:

> %% 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.

Hmmmmm! What an amazing concept. I was afraid someone would tell me that. :-)

I was hoping that it might be related to one of the above classes so that I could
manipulate it. Oh Well, evidently not,


>
>
> 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.

I'm using Version 2.0.46-BETA-3

>
>
> 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.

Ok! Where did you get that "ChangeMenuStyle" command? It isn't in my man pages.
Maybe I do have an older version? The only option for style under MenuStyle in my
man page is Fvwm or Mwm. Does it perhaps mean Fvwm commands or Mwm commands?

>
>
> 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.

Good point. Maybe I'm attacking this the wrong way? Does anyone know a way to
prevent the menu from recognizing the fact that the pointer is over a popup menu
item until it's clicked?


> 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.
>

Menu comes very close to doing what I want, but when I use menu the triangle to
the right of the selection item does not show. (I really do like that triangle.)
That, of course, makes it very difficult to tell if it's a sub-menu or an program.
I tried to add a pixmap in it's place, but have yet to find a method of putting it
to the right.


>
> 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.
>

Maybe I do.:) I think I'll go surfing and read the latest man pages online.

Anyone has any more suggestions, I'd appreciate them.

Thanks again Paul

John Carline


>
> --
> -------------------------------------------------------------------------------
> 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.

--
Powered by the Penguin
--
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 - 19:18:50 GMT

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