| Summary: | DateTime should support a style without spinner buttons | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | TL <tl.issues> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | carolynmacleod4, eclipse.felipe |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
TL
I suspect we are using native controls, with the look provided by the OS. I don't think we can change that. maybe what you need a custom date time control. On Windows, the native DateTime (DATETIMEPICK_CLASS) always has up/down arrows or a drop-down button, as specified by the DTS_UPDOWN style bit. I am not sure how difficult it would be to reach into the native control to remove these. On Mac, the native DateTime (NSDatePicker) can have the up/down buttons removed by NSDatePicker.setDatePickerStyle: NSTextFieldDatePickerStyle. On Linux, there is no native GTK DateTime, so we emulate it. Given that this might require some hacking to get it going on Windows, we are unlikely to implement this any time soon. Please feel free to try your hand at hacking the Windows, Cocoa, and Gtk (java) code, and providing a patch. I would be happy to make the time to review a multi-platform patch, but I will not have time to do the implementation. Do you know of any applications that use this? If you are only developing for Linux, perhaps this "GtkxEntryMask" (with type ENTRYMASK_DATETIME) might help you: http://gtkwidgexts.sourceforge.net/docs/tutorial.html. Also, I have not looked at these, but there are some custom SWT controls that you may find useful: http://www.eclipse.org/nebula/ (DateTimeFormatter looks like what you might want) or http://sourceforge.net/projects/swt-datepicker/ Good luck. Thanks to both of you for the helpful comments. I only looked into the gtk code when posting this request and I assumed it would be handled the same way on different OSs - wrong assumption. The nebula widgets look quite promising for my purposes. So concerning my wishes, this request could be closed. Sorry for the inconvenience. No worries! Thanks - I'll close it. |