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 Limit to only one instance of a window in PhAB
Ref. No. QNX.000002705
Category(ies) Development
Issue In PhAB, we create two windows at design time. The first window has a button which will bring
up the second window (Window type callback) If we move the second window out of the way and click the button again, a second instance of the window appears. We only want one window to appear. How can we limit this.

Solution In the Realized callback of the second window, disable the selectable bit from the button on the first window.
This will disable the button and the user will not be able to create a second window. When you destroy the second window, re-enable the button