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)

x86
All
defect
Not set
minor

Tracking

(Not tracked)

People

(Reporter: sheelar, Unassigned)

Details

Attachments

(3 files)

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.
QA Contact: esther → sheelar
No button should be *focused* by default. Rather, use that button as default-button. Do this by simply setting default="true" on that button.
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.
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.
People are adviced to not add nsICommonDialogs usages to the tree. The preferred new (and embeddable) API is nsIPrompt. Thanks.
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?
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.
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.
As of 2001-12-14-06 This bug still exists
Product: Browser → Seamonkey
Assignee: sspitzer → mail
Assignee: mail → nobody
QA Contact: sheelar → message-display
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
Bulk reopening incorrectly expired bugs - no activity does not constitute no bug - these need proper checking.
Status: RESOLVED → REOPENED
Resolution: EXPIRED → ---
How does the dialog look now (2009, sm trunk)?
> 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.
Status: REOPENED → NEW
When I checked on 1.1.16 (mac) there where 3 buttons.
> When I checked on 1.1.16 (mac) there where 3 buttons. Really? Screenshot please?
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.

Attachment

General

Created:
Updated:
Size: