Path: utzoo!attcan!uunet!aplcen!samsung!usc!elroy.jpl.nasa.gov!thyme!kaleb From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley) Newsgroups: comp.windows.x Subject: Re: Finding out if you're Iconified Message-ID: <1990Sep19.161720.8300@thyme.jpl.nasa.gov> Date: 19 Sep 90 16:17:20 GMT References: <9009190847.AA25606@zit.cigy.> Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 23 In article <9009190847.AA25606@zit.cigy.> bpistr@ciba-geigy.ch (Joseph C Pistritto) writes: >I need to find out if my application is iconified (either by >the user or automatically by another program), or actually >being displayed on the screen. > >I'm interested in knowing if there is a more 'politically correct' >way of finding out whether I'm iconified. > I don't know about "politically correct," but you could add an EventHandler to field the UnmapNotify event that is generated when the window is iconified. And the inverse event, MapNotify when the window is uniconfied. I also thought that the VisibilityNotify event might do what you want, however the "unobscured" event is generated when uniconifying, but the "obscured" event is not when iconifying. Humhhhh, I wonder if this is a bug? Does iconfication qualify as "obscured?" -- Kaleb Keithley Jet Propeller Labs kaleb@thyme.jpl.nasa.gov "So that's what an invisible barrier looks like!"