Bug 79201 - [consistency] CoolBar DragDetect differences
Summary: [consistency] CoolBar DragDetect differences
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Grant Gayed CLA
URL:
Whiteboard:
Keywords: consistency
Depends on:
Blocks:
 
Reported: 2004-11-22 11:27 EST by Grant Gayed CLA
Modified: 2012-06-20 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-11-22 11:27:34 EST
preamble:
Testing CoolBar first on win32 and gtk, it seems that DragDetect is fired 
whenever a CoolItem is dragged, but it is NOT fired if a drag is initiated on a 
part of a CoolBar that is not a gripper.  I'm therefore assuming that the 
intent of DragDetect for CoolBars is to notify listeners precisely whenever a 
CoolItem drag begins.

steps for motif:
- run the ControlExample, select the CoolBar tab
- listen for DragDetect
- drag a CoolItem within the example CoolBar and note that no DragDetect is 
fired, so this is inconsistent with the behaviour that I assumed to be correct 
above and hence with the other platforms
- however, try to drag a CoolItem in the example CoolBar by using the correct 
motif drag trigger (either middle mouse button or a mouse chord) and note that 
DragDetect IS fired in this case, but the CoolItem will not become draggable 
since this isn't the trigger that the control wants
- so the platform trigger for DragDetect is being respected here, but in this 
case it doesn't match the semantics of the emulated widget, which uses button 1 
for dragging
Comment 1 Steve Northover CLA 2004-11-22 18:58:32 EST
DragDetect is intended to indicate that drag & drop operation should start, 
not that a cool item has been dragged.  However, there seems to be a platform 
difference.
Comment 2 Grant Gayed CLA 2004-11-23 12:17:34 EST
If the meaning of DragDetect is no different for CoolBar than for other 
widgets, then this is working correctly.  It's unfortunate that the trigger for 
dragging a CoolItem matches the usual drag trigger on some platforms but not on 
others (ie.- motif), because as a result there are probably clients that are 
hooking drag detect with the assumption that it behaves like the preamble from 
comment 0, and are failing on motif as a result of this not being true.
Comment 3 Steve Northover CLA 2004-11-23 12:33:29 EST
There is a platform difference that still needs to be addressed.
Comment 4 Steve Northover CLA 2005-01-19 19:50:59 EST
Grant to prioritize.
Comment 5 Grant Gayed CLA 2012-06-19 14:21:33 EDT
Work is discontinued on SWT's Motif port.
Comment 6 Grant Gayed CLA 2012-06-20 11:41:10 EDT
Closing report, platform is discontinued.