diff options
author | Christoph Luder | 2018-07-12 11:03:33 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-07-18 10:24:21 +0000 |
commit | f52c1ef6cd579938729028029e412ebe7cc5b6b1 (patch) | |
tree | cbbb74956311efe605f570920015b8326a59ccab /examples/org.eclipse.swt.snippets/src/org | |
parent | 5685d5b505a4f711d6f35b7ef1c9caaa7b904456 (diff) | |
download | eclipse.platform.swt-f52c1ef6cd579938729028029e412ebe7cc5b6b1.tar.gz eclipse.platform.swt-f52c1ef6cd579938729028029e412ebe7cc5b6b1.tar.xz eclipse.platform.swt-f52c1ef6cd579938729028029e412ebe7cc5b6b1.zip |
Bug 536024 [Win32][GTK] Show calendar week in SWT.CALENDAR Added
SWT.CALENDAR_WEEKNUMBERS constant ControlExample-DateTime: added
checkbox to enable week numbers Snippet250: Adapted to show week numbers
[GTK] DateTime - set GTK_CALENDAR_SHOW_WEEK_NUMBERS, if
SWT.CALENDAR_WEEKNUMBERS is set [win32] DateTime - set MCS_WEEKNUMBERS
style, if SWT.CALENDAR_WEEKNUMBERS is set - added OS.DTM_SETMCSTYLE
(sets the style of the date and time picker)
Change-Id: I5c35de0df3706d0fedae7374d67d6e7fe2f10c94
Signed-off-by: Christoph Luder <christoph.luder@gmail.com>
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src/org')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java index 30741a2579..f2252768d9 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java @@ -31,10 +31,10 @@ public static void main (String [] args) { Shell shell = new Shell (display); shell.setLayout (new RowLayout ()); - DateTime calendar = new DateTime (shell, SWT.CALENDAR); + DateTime calendar = new DateTime (shell, SWT.CALENDAR | SWT.CALENDAR_WEEKNUMBERS); calendar.addSelectionListener (widgetSelectedAdapter(e -> System.out.println ("calendar date changed"))); - DateTime calendarDropDown = new DateTime (shell, SWT.DROP_DOWN); + DateTime calendarDropDown = new DateTime (shell, SWT.DROP_DOWN | SWT.CALENDAR_WEEKNUMBERS); calendarDropDown.addSelectionListener ( widgetSelectedAdapter(e -> System.out.println ("calendar date changed via drop-down"))); |