Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Creating a rubberband function
Ref. No. QNX.000004446
Category(ies) Development
Issue Do you have any example on how to build a ´rubberband´ function. Needs to work in PtRaw area.








Solution You need to use the PhInitDrag function and the PtContainerHit or PtContainerBoc
functions.

In your base window, do an ARM callback. When you click, with the mouse this callback will get called. In the callback, do the PhInitDrag.

This will allow you to create the box. When you let go of the button, a PtRaw event will get generated. In your raw event (type Drag Event), you can do your PtContainerHit/Box function.