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 Printing entire window
Ref. No. QNX.000009829
Category(ies) Development
Issue Our display window has a button which the user can click to print the entire window.
We get all the contents of the PtWindow, but not the frame nor title bar for the PtWindow widget(parent).

We performed:
x09PtDamageWidget(window);
x09PtFlush();
on the PtWindow widget after the
x09PpPrintStar(pc);
What did we do wrong?


Solution When you look at the output from 'phin' you will see that the window frame is owned by 'pwm' rather than your application. If you want the window frame along with the application, you will have to use the 'snapshot' utility.

Since the window uses two applications (yours and pwm), you will need to capture events from both applications.
This can only be done by an external application(snapshot), not by redirecting the draw stream of your application via the widget library. The only way to get the frame of the window is to use snapshot.