Re: How to create a popup window which does not steal focus of its par

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Neo The One" <NeoTheOne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CB3C17BD-3314-41AE-9165-9957BBD9A928@xxxxxxxxxxxxx
I want to have a popup window that in most ways behaves like a menu -
it does not steal focus from its parent window. Then I will create
other controls on this window and provide this window as shortcut
menu.

I think that menus do steal the focus. Go into any word processor/text
editor that has a right-click menu. Give the keyboard focus to the text
entry area and then right click to bring up the menu. Now hit any key that
does not correspond to an underlined letter on the menu. The computer will
beep at you and the keystroke will have no effect. Thus menus are in fact
like modal dialogs.

Only one window can have the focus at a time. Menus, floating toolbars and
various other things create the illusion that the focus is not being stolen
when in fact it is. You too can maintain the illusion by manipulating the
painting of the window's caption bar. See here for a discussion of the
techniques.

http://www.catch22.net/tuts/docking1.asp


--
John Carson


.



Relevant Pages

  • Re: New Tkinter windows dont get focus on OS X
    ... can get it to steal focus ... when launched from the command line. ... or window manager honouring those. ... You might want to forward the question to the tcl guys. ...
    (comp.lang.python)
  • Re: an IM client thats not totally broken?
    ... right click the panel application button and ... a new window on top of everything else, but don't steal focus. ... Notification" that I believe will allow you to configure message pop ups ...
    (Ubuntu)
  • Re: an IM client thats not totally broken?
    ... After you start Pigin, right click the panel application button and ... a new window on top of everything else, but don't steal focus. ...
    (Ubuntu)
  • Re: opus on KDE 3.55
    ... Recently migrated to linux and have difficulty in using opus on KDE. ... on top of window rather appear behind it. ... I have functions with option windows set to pop up and usually they come up in front and steal focus while things like save dialogs and warnings tend to come up behind the design window. ...
    (comp.cad.cadence)
  • Re: French-English Lexical of XP menus and terminology
    ... Express and Internet Explorer menus? ... document window 44. ...
    (microsoft.public.windowsxp.general)