Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to know if a Calendar Month Up/Down button is pressed
How to know if a Calendar Month Up/Down button is pressed [message #1273048] Wed, 19 March 2014 11:50 Go to next message
luis vargas is currently offline luis vargasFriend
Messages: 3
Registered: June 2013
Junior Member
Hi all,

I have a formular where I use a DateTime component using SWT.CALENDAR style:
DateTime dateTime = new DateTime(parent, SWT.CALENDAR);


Is it possible to know when a user clicks on a Month UP or Month Down button (Increase / Decrease Months)?

I already tried to see with Listeners if I can get this information but so far could not find anything.

Does anyone know how to do this?

Regards,


Luis

[Updated on: Wed, 19 March 2014 14:01]

Report message to a moderator

Re: How to know if a Calendar Month Up/Down button is pressed [message #1284380 is a reply to message #1273048] Fri, 04 April 2014 12:03 Go to previous message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 18
Registered: November 2013
Junior Member
Hi Luis,
Have a look at below SWT snippet which demonstrates use of SelectionListener on DateTime widget:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java
Previous Topic:SWT 4.4 M6
Next Topic:Accessibility problems in file dialog
Goto Forum:
  


Current Time: Fri Nov 28 16:15:54 GMT 2014

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software