QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Setting Pt_CB_ACTIVATE callback with PtNumericFloat widget in PhAB. |
Ref. No. |
QNX.000003001 |
Category(ies) |
Development |
Issue |
Using PhAB we am trying to set the Pt_CB_ACTIVATE callback with a PtNumericFloat widget. The goal is to have a dialog opening when the user clicks with the mouse on the numeric field. We read that the widget must be Pt_SELECTABLE but I cannot find it in the flag option editor (control panel).
We also tried to set it in code using PtSetResources, but to no avail. |
Solution |
What is occuring is that the text field is capturing the button press and therfore if you press enter it will then invoke the dialog. One way to get by this is to use the Filtered Child Events callback and select either Ph_EV_BUT_PRESS or Ph_EV_MOTION_BUTTON. |
|