QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Snapshot is not reproducing our application |
Ref. No. |
QNX.000009881 |
Category(ies) |
Development |
Issue |
When trying to snapshot our application, we get only the background color and not the graphics we drew. Our application uses PgDrawText(). This text does not appear in our bmp file.
What is causing this?
|
Solution |
The way snapshot works is by taking over the output and it is telling your application to redraw. In order to work in that situation, you need to do your drawing in the raw widget. When snapshot wants to get your picture, the raw widgets draw function will get called and you will call PgDrawText() function.
The best way to solve this problem would be to replace the main widget (e.g. PtPane) with a PtRaw widget. PtRaw will do all drawing in the draw function for that raw widget. It will not change anything appearence wise, but it will allow things like snapshot and PtDBContainer to work if you choose to use them. |
|