[comp.windows.x] Xtk

billa@edsews.EDS.COM (bill anderson) (08/02/88)

    Perhaps someone can shed some light on why I cannot show a pixmap
    in my icon, given ...
          
       Pixmap IconP;
     
                 :
                 :
                      
          toplevel = XtInitialize( "Test",
                                   "test", 
                                   options,
                                   XtNumber(options),
                     		   &argc,
                                   argv );       
                             
          dpy     = XtDisplay(toplevel);
          screen  = XDefaultScreen(dpy);  

          IconP = (Pixmap)XCreateBitmapFromData (dpy,
			                         RootWindow(dpy,screen),
                                                 icon_bits,
              		                         icon_width, 
                                                 icon_height);
                               
          XtSetArg(args[0], XtNallowShellResize, TRUE);
          XtSetArg(args[1], XtNiconX     , 40);                        
          XtSetArg(args[2], XtNiconY     , 40);                           
          XtSetArg(args[3], XtNiconic    , TRUE);      
          XtSetArg(args[4], XtNiconPixmap, IconP);     

          XtSetValues(toplevel,args,5);
          com = XtCreateManagedWidget("command",
                                      commandWidgetClass,
                                      toplevel,
                                      NULL,
                                      0);
                 :
                 :

          XtRealizeWidget(toplevel);
          XtMainLoop();

    I cannot seem to put a pixmap (depth 1) into the Icon window, whether
    I create the icon window or not. 

    ( Using 'uwm' as the window manager and X11r2 )
                                                    Thanks in advance.
-- 

Arpanet: billa@edsews.eds.com     |  " ... one man gathers
UUCP:  uunet!edsews!billa         |        what another man spills ... "