RE: FVWM: Tiered popups don't always highlight

From: Dameron, Gregg <gregg.dameron_at_lmco.com>
Date: Fri, 13 Jun 2003 14:51:40 -0600

> From: Dominik Vogt [mailto:fvwm_at_fvwm.org]

<snip>

> The whole idea of 'posting' a menu is to prevent that items from
> other menus can be selected accidentally.

It "locks" the parent menu "Popup" item so that the popped-up submenu, and
any sub-submenus, have the mouse's exclusive attention. Correct?

> When you click, menus
> go into 'posted' mode and only items in the posted menu can be
> selected by mouse motion. It works exactly the way it was
> designed.

Hmm. I guess I overloaded the term "post" in my previous post (ahem),
clouding the issue. Let me try to restate.

I distinguish between menu-item "highlighting" (color changes when the
pointer is moved over it) vs. menu-item "selection" (some command is
performed when the mouse is clicked on it). When MenuStyle is "Win" and the
pointer is moved over the items in MyMenu as configured below, the expected
behavior is:

AddToMenu MyMenu
+ "Item 1" Popup FooMenu # hilighted: yes; selectable: yes
+ "Item 2" Exec exec foo # hilighted: yes; selectable: yes
+ "Item 3" Title # hilighted: no; selectable: no

So, a reasonable behavioral "rule" for the Win MenuStyle might be:
Highlighting is a precondition for selectability -- if a menu-item is
selectable (performs some command if clicked), it should always highlight
when the pointer moves over it, to "advertise" its selectability.

What I think you are saying (and what I am seeing) is that this "rule" is
not hard-and-fast. If I have cascading ("tiered") popup menus, the initial
menu (Tier A) and the first submenu (Tier B) obey the rule under all
conditions. But a sub-submenu (Tier C) behaves differently depending on how
its parent menu was popped up:

                           Tier-C "Exec" Item:
                           --------------------
Tier-A Tier-B Highlights Exec
Menu Menu When Occurs
Popped Popped Pointer When
Up By: Up By: Over It? Clicked?
-----------------------------------------------
XX pointer moved Yes Yes (1)
          over Tier-A
          "Popup" item
-----------------------------------------------
XX mouse click No Yes (2)
          on Tier-A
          "Popup" item

(XX=don't care)

Case 1 is in line with expectations. Case 2 ("Exec without highlight") is
the behavior I find counterintuitive. I hope I'm making sense here.

Gregg Dameron
--
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 Fri Jun 13 2003 - 15:55:34 BST

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