Closed
Bug 366985
Opened 18 years ago
Closed 18 years ago
Unable to distinguish the close button when using prompt service confirmex
Categories
(Core Graveyard :: Embedding: APIs, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 345067
People
(Reporter: mkaply, Unassigned)
Details
If you use prompt service confirmex to create a prompt like this:
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].
getService(Components.interfaces.nsIPromptService);
var flags = (promptService.BUTTON_TITLE_OK * promptService.BUTTON_POS_0) +
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) +
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2);
var button = promptService.confirmEx(window, "Title", "text", flags,
null, "Source", "Dump", null, { });
alert(button);
then there is no way to distinguish between clicking the close button and clicking button 1.
When the close button is clicked, I am told button 1 was clicked.
There should be a way to remap the close button to other than 1.
Comment 1•18 years ago
|
||
I assume you mean the window manager decoration when you say "close button"?
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•