Path: utzoo!utgpu!attcan!uunet!peregrine!elroy!ames!mailrus!husc6!bloom-beacon!WSL.DEC.COM!haynes From: haynes@WSL.DEC.COM Newsgroups: comp.windows.x Subject: Re: Xtk Iconic State (???) Message-ID: <8807302020.AA06254@gilroy.pa.dec.com> Date: 30 Jul 88 20:20:47 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 I don't understand your question. Widgets aren't ever iconic. A given window manager may put up an icon for your appliction when the application is not active, but the icon belongs to the window manager, and while the icon is up your application windows are "non-viewable". That is the root window of your application is unmapped, or, in the case of a "reparenting" window manager, some ancestor window of your application's top level window is unmapped. Since the window manager owns the icon window, there is no easy way for you to do any event processing on the icon. Now there are (may be) some window managers that let the application provide a window for the icon, in which case you would simply (!) create a popup widget for the icon, and pass the window manager the window for that icon. If the window manager instead is willing to tell you about the icon window, but is not willing to let you pass the window in yourself, you need to provide a new subclass of some widget class that has a special realize proc that doesn't create the window for the widget, but instead takes the window manager window and configures it to match the parameters passed in to the realize. Clear? If not, please feel free to ask more. -- Charles