Closed Bug 16480 Opened 25 years ago Closed 24 years ago

Allow overriding of menu "value" in overlay menu items

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: cmanske, Assigned: waterson)

Details

When we use a menu item in an overlay, the menu text ("value" attribute)
is set in the overlay XUL either directly or in an associated observer.
We need to be able to allow different text by setting the value in the "user"
of the overlay item by setting a different "value" string.
E.g.: in the overlay:
<broadcaster id="cmd_1" value="item1" oncommand="foo()">
<menuitem id="menu_1" observes="cmd_1">
User of the overlay:
<menuitem id="menu_1" value="My name">

The text on the menu should be "My name", not "item1", but the command would
still be "foo()"
Note that this currently works when you set an alternate name for a titledbutton
in a toolbar, though hyatt thinks this is actually a bug!
Assignee: hyatt → waterson
reassigning to waterson per hyatt.
I discussed this with Chris and if there's no clear way to know which "setter"
of a value attribute should be used, we can live with repeating the value and
oncommand attributes in cases where we need to have different "value" text,
so we don't reference the overlay item for that case.
Status: NEW → ASSIGNED
Target Milestone: M15
lemme know if this is a problem
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
No problem. I've figure out ways to do what I need.
mass-verifying WontFix bugs which haven't changed since 2001-12-31.

use the search string "BoletusEdulis" if you want to filter out this msg.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.