PtWindow disppearing problem

I have a smaller PtWindow created on top of a bigger PtWindow, everytime I
click on the outside of the smaller PtWindow, it disppears. what’s wrong
here? what window attributes I need to set in the smaller PtWindow order to
get rid of this problem?

Hello Ran

There a couple things that you can do. One is to make the smaller
window a child of the larger window. Childeren windows cannot be put
behind there parents. Another thing that you could do is you could
uncheck the Ph_WM_TOBACK bit in the Window Managed flags. Another thing
you could do, although this will affect all windows globally is disable
the “click to front” option to the window manager. This means that a
window will only be brought to the front if the click is on the windows
windowframe.

Thanks,
Rodney


Ran Zhang wrote:

I have a smaller PtWindow created on top of a bigger PtWindow, everytime I
click on the outside of the smaller PtWindow, it disppears. what’s wrong
here? what window attributes I need to set in the smaller PtWindow order to
get rid of this problem?