[comp.windows.x] setting random window properties with Xt

west@gsrc.dec.com (Jim West) (06/05/90)

In article <9005212220.AA08549@lance>, jimf%saber@HARVARD.HARVARD.EDU writes...

>We need to set a bunch of window properties (specifically
>WM_PROPERTIES) before realizing a top-level widget.  How does one go
>about doing that with Xt?
> 
>It looks as though we should set mapped_when_managed to false, set the
>properties after realizing, then map the windows.  Is this correct?
>Does someone have a short piece of code that would demonstrate the
>proper way to do this?
> 

  Yes, this would be the way you want to do this.  The biggest problem you
face is that the actual X windows are not created until the XtRealize call
is made and you need the window IDs to create/modify properties.

  I do not have any code to show you.  After the XtRealize you will want to
do XtWindow on the specified widgets to get their respective window ID and
then XChangeWindowProperty to your hearts content.  You may find that you
will probably need to do some event processing during this phase since all
windows will not be created right after the XtRealize call.

  Hope this helps.

--------------------------------------------------
Jim West         west@gsrc.dec.com
--------------------------------------------------