Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355802 - SWT: Problem when AbstractDateField's DateChooserDialog overlaps a clickable Control
Summary: SWT: Problem when AbstractDateField's DateChooserDialog overlaps a clickable ...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andreas Hoegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-25 04:09 EDT by Bruno Koeferli CLA
Modified: 2021-08-19 11:19 EDT (History)
2 users (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
Sample Form (3.06 KB, application/octet-stream)
2011-08-25 04:11 EDT, Bruno Koeferli CLA
no flags Details
Patch to react to the MouseUp-event (1.66 KB, patch)
2011-08-25 04:21 EDT, Bruno Koeferli CLA
zimmermann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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