Bug 184621 - No way to set default button in MessageBox
Summary: No way to set default button in MessageBox
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-29 06:24 EDT by Rina Vinokurov CLA
Modified: 2021-03-22 09:50 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rina Vinokurov CLA 2007-04-29 06:24:48 EDT
Today, there is no way to set default button in message box. This is really important feature and has great foundation for implementation at least on Windows(MB_DEFBUTTON1..4 style).Please, consider implementing it.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:09:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 2 Eclipse Genie CLA 2021-03-22 08:13:37 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/178205
Comment 3 Sebastian Luhn CLA 2021-03-22 08:19:44 EDT
In the Gerrit I propose a change to implement the requested feature in the win32 target platform.
The feature can also be ported to the gtk platform after having access to the (native) gtk_dialog_set_default_response function
Comment 4 Andrey Loskutov CLA 2021-03-22 09:50:58 EDT
@Sebastian: thanks for the patch.
Since SWT is supposed to be cross-platform, I'm pretty sure we need the implementation for Mac / GTK ports too. Adding a Windows only API is not possible.