Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!pacbell.com!ames!sheba.arc.nasa.gov!schoch From: schoch@sheba.arc.nasa.gov (Steve Schoch) Newsgroups: comp.windows.x Subject: icon control using Xt Keywords: icon, wm_hints, iconPixmap Message-ID: <1991Feb21.174838.7365@news.arc.nasa.gov> Date: 21 Feb 91 17:48:38 GMT Sender: usenet@news.arc.nasa.gov (USENET Administration) Reply-To: schoch@trident.arc.nasa.gov (Steve Schoch) Organization: NASA Ames Research Center, Moffett Field, CA Lines: 43 I'm using the X toolkit with the following sequence of calls: toplevel = XtAppInitialize(&my_app, ...., fallback_resources, ...); /* some other stuff */ XtRealizeWidget(toplevel); /* more initialization */ XtAppMainLoop(my_app); I would like to have the window manager let me play with my own icon which I would like to be a window (so I can flash it when input from the user is required) but I could learn to live with just telling the window manager to use a bitmap for the icon and mask. One of the supplied programs (xlogo) initializes fallback_resources with two strings: String fallback_resources[] = { "*iconPixmap: xlogo32", "*iconMask: xlogo32", NULL, }; The trouble with this is that filenames are expected. I would like to have the bitmap encoded directly in my program so it will be portable to machines that don't have my bitmap in /usr/include/X11/bitmaps. What I would really like is to create a window and give that to the window manager. There is a toolkit provision for this to be done by doing something like: String fallback_resources[] = { "*iconWindow: mywin", NULL, }; but something needs to convert the string "mywin" into a Window. How do I do this? Steve