@Override LRESULT WM_LBUTTONUP (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_LBUTTONUP (wParam, lParam); if (isDisposed ()) return LRESULT.ZERO; if (doubleClick) sendSelectionEvent (SWT.DefaultSelection); doubleClick = false; return result; }
void hideCalendar() { if (!isDropped ()) return; popupShell.setVisible (false); if (!isDisposed () && isFocusControl()) { setFocus(); } display.removeFilter(SWT.MouseDown, clickListener); }
@Override LRESULT WM_LBUTTONDBLCLK (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_LBUTTONDBLCLK (wParam, lParam); if (isDisposed ()) return LRESULT.ZERO; if ((style & SWT.CALENDAR) != 0) { MCHITTESTINFO pMCHitTest = new MCHITTESTINFO (); pMCHitTest.cbSize = MCHITTESTINFO.sizeof; POINT pt = new POINT (); pt.x = OS.GET_X_LPARAM (lParam); pt.y = OS.GET_Y_LPARAM (lParam); pMCHitTest.pt = pt; int /*long*/ code = OS.SendMessage (handle, OS.MCM_HITTEST, 0, pMCHitTest); if ((code & OS.MCHT_CALENDARDATE) == OS.MCHT_CALENDARDATE) doubleClick = true; } return result; }
if(dateTime != null && !dateTime.isDisposed()){ dateTime.setHours(calendar.get(Calendar.HOUR_OF_DAY)); dateTime.setMinutes(calendar.get(Calendar.MINUTE));
void popupCalendarEvent (Event event) { switch (event.type) { case SWT.Dispose: if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) { int year = popupCalendar.getYear (); int month = popupCalendar.getMonth (); if (isDisposed ()) break; Event e = new Event (); e.time = event.time;
void popupCalendarEvent (Event event) { switch (event.type) { case SWT.Dispose: if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) { int year = popupCalendar.getYear (); int month = popupCalendar.getMonth (); if (isDisposed ()) break; Event e = new Event (); e.time = event.time;
void popupCalendarEvent (Event event) { switch (event.type) { case SWT.Dispose: if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) { int year = popupCalendar.getYear (); int month = popupCalendar.getMonth (); if (isDisposed ()) break; Event e = new Event (); e.time = event.time;
void handleFocus (int type) { if (isDisposed ()) return; switch (type) { case SWT.FocusIn: {
void handleFocus (int type) { if (isDisposed ()) return; switch (type) { case SWT.FocusIn: {
void handleFocus (int type) { if (isDisposed ()) return; switch (type) { case SWT.FocusIn: {