Dialog disapears

I have a dialog window with a button. When the button is pressed
(activated) it loads another dialog (via PhAB Dialog Callback).

But when the sub-dialog appears the first dialog disapears.

How can I prevent this from happening?

Bill Caroselli <qtps@earthlink.net> wrote:
BC > I have a dialog window with a button. When the button is pressed
BC > (activated) it loads another dialog (via PhAB Dialog Callback).

BC > But when the sub-dialog appears the first dialog disapears.

BC > How can I prevent this from happening?

Never mind, problem solved. This was a side effect of using
PtReparentWidget().

What has happened appears to be that when the sub-dialog is realized it
brings the base window to the top and then realizes itself on top of the
base window. In other words, the first dialog is still there. It’s just
covered by the base window.

I.E.
sub-dialog
base window
first-dialog

when what I want is:
sub-dialog
first-dialog
base window