🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19279

Re: On Dialogs

#19279
From: Conrad Hoesle-Kienzlen
Date: Tue, 24 Feb 1998 00:00
86 lines
4191 bytes
Rich,
 that is what I suspected but did not have the time yet to verify. As I posted in
my answer to Andrew, it does not really matter since the "parent" can be any
parent, it does not have to be an "ancestor".
...Conrad

Rich Wilkman wrote:

> Conrad:
>
> Any of the dropdown lists in the inspector that take object types
> (like the Frame property of a dialog) will seed with a list of objects
> of the appropriate type that are in scope.  If you design a Frame and
> add a dialog to it, then you will see a "this" property listed in that
> dropdown.
>
> The reference is probably in one of the samples, most of which start
> with a Frame and work from there.
>
> -Rich
>
> Conrad Hoesle-Kienzlen wrote:
> >
> > Andrew,
> > but that is just the point: *not* to have to look for the parent frame. If I
> > have to look for the parent frame as that example (and others posted by you
> > and Rich)does, then I can't, of course, use a Dialog as a bean, whereas with
> > my version I can. As for the focus, I always add a this.requestFocus() after
> > the .show() of the dialog. Apart from that, I could not make out *any*
> > difference whatsoever (yet) between a dialog that was created with a
> > "parent" frame and one that was created with a new frame, in fact, I do not
> > understand why the "parent" frame (whatever that is supposed to mean) is
> > needed at all. This would mean that an object that does not make use of a
> > frame cannot instantiate a dialog at all. What's more, somewhere in the
> > documentation it says that you can set the parent frame of a dialog in the
> > object inspector. This is not true, at least everytime I tried that, I did
> > not have that choice. The frame-entry in the object inspector is a drop-down
> > list and it always only gave me the choice of <none>.
> > I would be glad if you could clarify this riddle a bit.
> >
> > Andrew Bennett wrote:
> >
> > > Conrad Hoesle-Kienzlen wrote:
> > > >
> > > > JBuilder online (and printed) documentation is wrong on Dialogs. It
> > > > states that a Dialog must be constructed with a parent frame (and
> > > > therefore cannot be made into a bean). This is not necessary. One can
> > > > create a new dialog with:
> > >
> > > This may cause focus related problems - the fact that focus doesn't
> > > go back to the original parent after the dialog is closed.
> > >
> > > The code at ::
> > >
> > > http://www.borland.com/devsupport/jbuilder/qanda/956.html
> > >
> > > May be a bit better.  It doesn't involve creation of another
> > > object, and is a bit cleaner as a result.  (Option 1, that is)
> > >
> > > Andrew
> > > --
> > >   Andrew Bennett
> > >   abennett@borland.com
> > >
> > >   Due to my workload, personal email more than likely won't get a reply.
> > >   Support options are detailed at http://www.borland.com/devsupport/
> > >   I am unable to answer support questions via email at this time.
> > >
> > >   Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
> > >   additional JBuilder support related help.
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored.  If I have time, I'll respond, but you  have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <34F1FFFA.9F029AE5@csi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34ECB0F1.75915074@csi.com> <34EDBDAA.99232459@borland.com> <34EF2B34.CF380360@csi.com> <34F1E349.C1AF5237@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,597eca2139f62518
X-Google-Attributes: gidf74b3,public
From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com>
Subject: Re: On Dialogs
Date: 1998/02/24
Message-ID: <34F1FFFA.9F029AE5@csi.com>
X-Deja-AN: 327981797
Content-Transfer-Encoding: 7bit
References: <34ECB0F1.75915074@csi.com> <34EDBDAA.99232459@borland.com> <34EF2B34.CF380360@csi.com> <34F1E349.C1AF5237@corp.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: CHK IT-Consulting
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language