QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How to catch double-click events |
Ref. No. |
QNX.000004054 |
Category(ies) |
Input Devices, Development |
Issue |
How do I catch a double click event in Photon?
|
Solution |
To catch a double click event use Pt_CB_RAW callback, event mask Ph_EV_BUT_PRESS, code example:
x09int doubleclick( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo ) { x09x09PhPointerEvent_t *pev = PhGetData( cbinfo->event ); x09if ( pev->click_count == 2 ) PtAskQuestion(ABW_base, "double", "Double Click", "helv12", "Ok", NULL, NULL, 0); }
|
|