Sorry about the missing context - I use the Nabble.com website which threads
the topic.  It may be easier to read it there:
http://apache-pivot-users.399431.n3.nabble.com/How-to-open-two-windows-td2022668.html
 
http://apache-pivot-users.399431.n3.nabble.com/How-to-open-two-windows-td2022668.html
 

Remember, what I'm looking for is a way to have secondary Frame-windows (not
Dialog-windows).  Sometimes a Modal dialog is fine, but in this case I want
sometime with independent minimization (iconification) - Dialog objects
can't ever be minimized... (by frame decoration button or programatically,
either)


If the link doesn't suit you, here's a recapitulation by copy'n'paste
(mostly between "lello" and "Greg Brown-2"):


Greg Brown-2 wrote:
> 
> Note that opening multiple displays is only possible if you are deploying
> your application to the desktop. In a web browser, your application will
> still be constrained to the bounds of the applet. If you plan to deploy to
> the web as well, you are probably better off using a Sheet.
> 
> On Dec 5, 2010, at 10:47 AM, Greg Brown wrote:
> 
>>> in my application I need to open a second window, a dialog, but I don't
>>> like
>>> the idea of having a dialog which ca be moved around only in the main
>>> window. Is it possible to open two windows? 
>> 
>> Pivot windows are all contained within a single display. If you are using
>> Pivot 2.0, you can open multiple displays, each of which is contained in
>> a
>> native host window. See this example:
>> 
>> http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/displays/multiple_display_example.bxml
>> 
>> Another option is to use a Sheet or Prompt instead of a Dialog or Alert.
>> These windows still only exist within the Pivot display, but they can't
>> be
>> moved by the user, which may offer a better user experience depending on
>> your needs.
>> 
>> G
>> 
>> 
> 
> 
> 


Greg Brown-2 wrote:
> 
> A Pivot window, or an AWT window? If the latter, are you opening it with
> modal = true?
> 
> On Dec 5, 2010, at 11:38 AM, lello wrote:
> 
>> 
>> I managed to open a second window, but it always stays on the top of the
>> first one. Is this behaviour normal?
>> -- 
>> View this message in context:
>> http://apache-pivot-users.399431.n3.nabble.com/How-to-open-two-windows-tp2022668p2022963.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
> 
> 
> 


Greg Brown-2 wrote:
> 
> What I meant was, are you seeing this behavior with the AWT host window or
> with a Pivot (internal) window. I assume the former.
> 
> When a Pivot window is opened with an owner, it always appears on top of
> its
> owner. Not sure what the defined AWT behavior is in this case. Did you try
> passing null for the owner argument?
> 
> On Dec 5, 2010, at 2:31 PM, lello wrote:
> 
>> 
>> On the top of a pivot window, and I am opening it with modal=false.
>> -- 
>> View this message in context:
>> http://apache-pivot-users.399431.n3.nabble.com/How-to-open-two-windows-tp2022668p2023630.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
> 
> 
> 


Greg Brown-2 wrote:
> 
>> The host window is on the back.
>> If I pass null I get an Illegal Argument Exception.
>> Tell me there is a solution...
> 
> You are building Pivot from trunk, right? Try commenting out the check for
> owner == null. Let me know how that goes.
> 
>> By the way, why does the function createDisplay() needs an AWT Window? we
>> are all using pivot Windows...
> 
> As I mentioned earlier, all Pivot windows live in an instance of Display
> that is hosted by a single native window (or applet), and are constrained
> to
> the bounds of that display. The createDisplay() method creates another
> Display (and corresponding native host window) on which Pivot windows can
> be
> opened. That native (AWT) window may or may not need a parent. It depends
> on
> the needs of your application.
> 
>> and why does it need a parent window at all?
> 
> It probably doesn't. I think the null check is invalid. Let me know what
> you
> find out.
> 
> 
> 


--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/How-to-open-two-windows-tp2022668p2640586.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to