QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Ph_EV_RELEASE_REAL subtype |
Ref. No. |
QNX.000009818 |
Category(ies) |
Development |
Issue |
How do we determine that the user finished the drag? We have checked for subtype Ph_EV_RELEASE_REAL, but it sometimes misses when button is released.
|
Solution |
When you release the button, Photon emits a REAL release and a PHANTOM release (in that order). The REAL release hits whatever the mouse points to when you release the button. The PHANTOM release *always* goes to the same region (and position) that received the press.
In other words, if your widget saw the press, it will also see the PHANTOM release (unless you move or destroy the widget...). And depending on where the mouse was pointing to, you may or may not get the REAL release before PHANTOM. |
|