Setting a Dialog's owner after construction

From: laura p (laura.paterson_at_gmail.com)
Date: 01/26/05


Date: 26 Jan 2005 09:34:42 -0800

Hi,

I have a problem where I need to set the owner of a dialog after it has
been constructed. Looking at the API, it looks like the only place i
can set the owner is in the super(Frame owner) or super(Dialog owner)
constructors.

I have a collection of dialogs, which are created using simple
reflection (i.e. no constructors). I don't necessarily know what the
parent window is at this point. Once they have all been constructed, I
retrieve a handle to the window, and want to iterate through the
dialogs and somehow set their owner to be my window.

Setting the owner is key, as it prevents the dialogs going behind the
main window, and also provides a location reference.
Any advice would be great!
laura



Relevant Pages

  • Re: Setting a Dialogs owner after construction
    ... > I have a problem where I need to set the owner of a dialog after it has ... > reflection (i.e. no constructors). ... > parent window is at this point. ... Why can't you first retrieve the reference to your ...
    (comp.lang.java.gui)
  • Re: Im back on the injured list!!
    ... > Well, at a motel room party after a gig, the keyboard player that I play ... > and smashed my ribs on the window sill. ... > The owner said he'd get the window fixed and then call me with the total ...
    (alt.guitar.bass)
  • Re: Mechanic Cheated Me, What Should I Do?
    ... I dropped off my car for engine work (water pump replacement, ... roll up the window, ... was not in and only the owner can authorize the repairs. ... He said that their mechanics did ...
    (misc.legal)
  • Re: Im back on the injured list!!
    ... He's the one who should pay for the damage. ... > Well, at a motel room party after a gig, the keyboard player that I play ... and smashed my ribs on the window sill. ... > The owner said he'd get the window fixed and then call me with the total ...
    (alt.guitar.bass)
  • Re: Make Form stay on top until application is deactivated
    ... That sounds no different that specifying the Owner parameter in VB's Show ... This will make it topmost to the app - albeit not modal - and allow other ... CreateWindow hwndParent arg will set the owner for a top-level window. ... "Handle to the parent or owner window of the window being created. ...
    (microsoft.public.vb.com)