Community
Participate
Working Groups
The setBackground method is not being overridden and thus the widget background is not being changed. Having the ability to set the background would be particularly useful.
foreground colour too
+1 Would consume this as well.
Would be great for 3.7
Would appreciate this too. The widget looks strange between other widgets with coloured background. What's the reason.
Which one are you using - the textual "DATE" (and "TIME") control, or the "CALENDAR" control?
With Eclipse Indigo Relase (Build id: 20110615-0604) building RCP-Applications. Textual Date DateTime datePicker = new DateTime(area, SWT.BORDER | SWT.DATE | SWT.DROP_DOWN);
Interesting - you have the drop-down calendar. Would you expect the drop-down calendar to have a changed background also? I am asking because, if I recall correctly, the Windows calendar control has a bunch of different ways to change the color, and we looked at them and couldn't decide which way to go. Ah, yes - here's the link to the doc for DATETIMEPICK DTM_SETMCCOLOR http://msdn.microsoft.com/en-us/library/bb761773(VS.85).aspx (same info as for MONTHCAL MCM_SETCOLOR http://msdn.microsoft.com/en-us/library/bb760997(VS.85).aspx). Notice that there are 3 different background colors and 3 different foreground colors. We tried various combinations for the calendar, and thought they all looked "funny". I can look into why DATETIMEPICK color setting isn't working correctly. My guess is that I just need to override setForegroundPixel and setBackgroundPixel in a similar manner to Combo and invalidate the hwndText, which can be retrieved using DTM_GETDATETIMEPICKERINFO http://msdn.microsoft.com/en-us/library/bb761755(VS.85).aspx . I don't have time to do this for the rest of this week, but I will have a look at it on Tuesday.
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. If the bug is still relevant, please remove the "stalebug" whiteboard tag.
It's still relevant
+1 I miss this feature too.
This is important when you are doing date validation, as in turn red if you go beyond some critical date.