QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
| Title |
Changing the size of the PtWindow widget from a setup function |
| Ref. No. |
QNX.000009846 |
| Category(ies) |
Development |
| Issue |
We have tried to change the size of the PtWindow widget (Pt_ARG_AREA) from the setup function. It seems that the ApCreateModule() is changing the size after we set it.
What is the right way to do this?
|
| Solution |
The preferred way is to set Pt_ARG_DIM in a Pt_CB_WINDOW_OPENING callback. Setting Pt_ARG_DIM in a post_realize callback will work, but the window opens with the original size and then gets resized. Moving your code into a Pt_CB_WINDOW_OPENING callback is the right solution. |
|