Path: utzoo!attcan!uunet!husc6!bbn!bbn.com!franco From: franco@bbn.com (Frank A. Lonigro) Newsgroups: comp.windows.x Subject: simple X10 program Message-ID: <27440@bbn.COM> Date: 26 Jul 88 14:34:35 GMT Sender: news@bbn.COM Lines: 27 Hi: I'm just starting out programming in X and would like some help with a simple problem. What I want to do is assign an ICON to a window so when the window is iconified it turns into that ICON. I have a simple program that just prints "Hello, world" in a small window. What is the proper way to accomplish what I want???? Some sample code follows: appWindow = XCreateWindow(RootWindow, 1, 1, 150, 50, 2, BlackPixmap, WhitePixmap); iBitmap = XStoreBitmap(icon_width, icon_height, icon_bits); Icon = XMakePixmap(iBitmap, BlackPixel, WhitePixel); iconWindow = XCreateWindow(RootWindow, 1, 1, icon_width, icon_height, 2, BlackPixmap, WhitePixmap); XSetIconWindow(appWindow, iconWindow); This works fine but the ICONs bitmap is not displayed in its own window, just a blank icon window appears. Thanks in advance, -franco franco%bbn.com@relay.cs.net franco@bbn.com ...!harvard!bbn!franco