Vanishing Title Bar

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Vanishing Title Bar

Submitted by Anonymous on Thu, 09/13/2001 - 22:24. Developers
I have an application that is created in the beginning but does not display until later. The first time this dialog is displayed (using XtManageChild(form) then XMapWidget(shell)) the dialog displays beautifully. The next time XtMapWidget(shell) is envoked (whether or not the dialog is currently displayed) the dialog is displayed without it`s title bar. The thing just vanishes. I don`t get it!

ICS_support

You shouldn`t be needing to map the shell widget yourself. Managing the top-level XmForm child of the XmDialog window will result, within Xm, to a call to XtPopup() for the shell. You`re basically mapping the window without having Xt aware of it, so any properties or other information on the window or its enclosing parent window is lost to the window manager.

Generally, beware of using the Xlib calls (X*, rather than Xt*) to do window manipulation. You`re probably outsmarting some code along the way that`s supposed to keep things working.