Open
Bug 95507
Opened 24 years ago
Updated 16 years ago
Buttons in the wrong order for send quit dlg
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: sheelar, Unassigned)
Details
Attachments
(3 files)
|
811 bytes,
patch
|
Details | Diff | Splinter Review | |
|
7.84 KB,
image/gif
|
Details | |
|
9.63 KB,
image/png
|
Details |
Build: 2001-08-13-06 win98, linux, mac
Spun off of bug 81314. The dlg that comes up when you want to quit while sending
mail should have the buttons interchanged to "quit and wait" instead of wait and
quit. And also the default should be on the button "wait". This was as per
jennifer's comments in the bug 81314.
| Reporter | ||
Updated•24 years ago
|
QA Contact: esther → sheelar
Comment 3•24 years ago
|
||
No button should be *focused* by default. Rather, use that button as
default-button.
Do this by simply setting default="true" on that button.
Comment 4•24 years ago
|
||
we can't do default == true, this is common dialog xul.
I think right now that button zero is always the default, so if you flip the
strings, your first button will be default.
but I might be wrong, I haven't fully investigated.
but if I'm right, we'll need to talk to morse (or who ever owns common dialog)
about extending it to allow another button (other than button 0) to be the
default button.
Comment 5•24 years ago
|
||
I don't own it although I've used it a lot and extended it when necessary to
suit my needs. I'm pretty sure that seth is correct about the first button
being the default.
Comment 6•24 years ago
|
||
People are adviced to not add nsICommonDialogs usages to the tree. The preferred
new (and embeddable) API is nsIPrompt. Thanks.
Comment 7•24 years ago
|
||
the code I added already uses the prompt service, I'm not sure what hwaara is
talking about.
to do what I need I could add another argument to confirmEx() which specifies
which button is the default.
http://lxr.mozilla.org/mozilla/source/embedding/components/windowwatcher/public/nsIPromptService.idl
valeski / danm / ccarlen, do you own that interface?
Comment 8•24 years ago
|
||
You talked about "common dialog", so I assumed you meant nsICommonDialogs.
About default buttons: the right button is default, it currently follows the
guidelines on button placements for default buttons etc. íf you want to change
label of a button, do this via JS in your init method.
Comment 9•24 years ago
|
||
See this comment in the API:
http://lxr.mozilla.org/mozilla/source/embedding/components/windowwatcher/public/nsIPromptService.idl#89
Button #0 is the default button. I think there is an overlay which on Windows
causes the default button to be leftmost. If you show this same dialog on the
Mac, it is the other way around. The Mac behavior is proper WRT the UI
guidelines for the Mac. With Windows, it is also common to have the default
button be leftmost and other buttons to its right.
| Reporter | ||
Comment 10•23 years ago
|
||
As of 2001-12-14-06 This bug still exists
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•20 years ago
|
Assignee: sspitzer → mail
Updated•17 years ago
|
Assignee: mail → nobody
QA Contact: sheelar → message-display
Comment 11•16 years ago
|
||
This bug is being marked EXPIRED as it has seen no activity in a very long time.
If you think that the issue reported might still be relevant, please test with a recent release of SeaMonkey and if the problem persists feel free to re-open the report. Thank you.
http://www.seamonkey-project.org/
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → EXPIRED
Comment 12•16 years ago
|
||
Bulk reopening incorrectly expired bugs - no activity does not constitute no bug - these need proper checking.
Status: RESOLVED → REOPENED
Resolution: EXPIRED → ---
Comment 13•16 years ago
|
||
How does the dialog look now (2009, sm trunk)?
Comment 14•16 years ago
|
||
> How does the dialog look now (2009, sm trunk)?
Since the patch in Comment 1 was never checked in I would think that the dialog would look much the same.
Updated•16 years ago
|
Status: REOPENED → NEW
Comment 15•16 years ago
|
||
When I checked on 1.1.16 (mac) there where 3 buttons.
Comment 16•16 years ago
|
||
> When I checked on 1.1.16 (mac) there where 3 buttons.
Really? Screenshot please?
Comment 17•16 years ago
|
||
The message compose code defines only two buttons, wait and quit:
result = gPromptService.confirmEx(window, promptTitle, promptMsg,
(gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_0) +
(gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_1),
waitButtonLabel, quitButtonLabel, null, null, {value:0});
You need to log in
before you can comment on or make changes to this bug.
Description
•