Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355802

Summary: SWT: Problem when AbstractDateField's DateChooserDialog overlaps a clickable Control
Product: z_Archived Reporter: Bruno Koeferli <bruno.koeferli>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Andreas.Hoegger, zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Sample Form
none
Patch to react to the MouseUp-event zimmermann: iplog+

Description Bruno Koeferli CLA 2011-08-25 04:09:17 EDT
Build Identifier: 3.7.0

AbstractDateField's DateChooserDialog causes strange behavior when it overlaps a clickable Control (f.e. AbstractListBox). The problem is that the DateChooserDialog reacts to the TableCursor's SelectionEvent which is triggered by MouseDown. Then the dialog will be closed and the following MouseUp-event is triggered on the underlying control (f.e. on AbstractListBox leads to a un-/check of the current selected row).

Reproducible: Always

Steps to Reproduce:
1. Build a form containing a DateField and below it a ListBox
2. Open the form and check a an element of the ListBox
3. Open the DateField's DateChooserDialog and select a date which overlaps the ListBox
4. The previously checked element gets unchecked
Comment 1 Bruno Koeferli CLA 2011-08-25 04:11:39 EDT
Created attachment 202125 [details]
Sample Form
Comment 2 Bruno Koeferli CLA 2011-08-25 04:21:12 EDT
Created attachment 202126 [details]
Patch to react to the MouseUp-event

This Patch causes the DateChooserDialog to react to the MouseUp-event.

But a little problem is still remaining when the user clicks and holds the mouse button and drags the mouse pointer to the underlying Control (f.e. AbstractListBox). This triggers the MouseUp-event on the Control and not on the DateChooserDialog.
The desired behavior should be the same as in the TimeChooserDialog.

Can you find a solution for that?
Comment 3 Andreas Hoegger CLA 2011-09-05 10:00:49 EDT
patch applied on head and indigo SP1.
Thank you Bruno
Comment 4 Bruno Koeferli CLA 2011-09-06 01:47:05 EDT
Strange clicking behavior on MouseDown is fixed.
Comment 5 Matthias Zimmermann CLA 2011-10-11 02:41:52 EDT
shipped with 3.7.1
Comment 6 Matthias Zimmermann CLA 2011-10-11 11:31:21 EDT
removed iplog flag from ticket and added iplog flag to attachment