pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: how to make a login window before main window?
Date Wed, 26 Oct 2011 14:27:36 GMT
When you say "Pivot window", do you mean the native application frame that hosts the Pivot
display? If so, this is by design - all Pivot windows are hosted within a single native frame.

You can open multiple native frames (i.e. multiple displays) using DesktopApplicationContext#createDisplay().
However, there is currently no way to open a "dialog" display host before your main display.

On Oct 26, 2011, at 10:12 AM, pan peter wrote:

> here is the dialog.bxml,
> 
> <Dialog bxml:id="dialog" title="Dialog" modal="false"
>    xmlns:bxml="http://pivot.apache.org/bxml"
>    xmlns="org.apache.pivot.wtk"> 
>    <TablePane preferredWidth="320" preferredHeight="210"> 
>        <columns> 
>            <TablePane.Column width="1*"/> 
>        </columns> 
>        <TablePane.Row height="1*"> 
>            <Label text="This is a dialog."
>                preferredWidth="320" preferredHeight="210"
>                styles="{horizontalAlignment:'center',
> verticalAlignment:'center'}"/> 
>        </TablePane.Row> 
> 
>        <TablePane.Row height="-1"> 
>            <BoxPane styles="{horizontalAlignment:'right'}"> 
>                <PushButton buttonData="Close"
>                    ButtonPressListener.buttonPressed="dialog.close()"/> 
>            </BoxPane> 
>        </TablePane.Row> 
>    </TablePane> 
> </Dialog> 
> 
> Here is my startup()
> 
> public void startup(Display display, Map<String, String> properties)  
> throws Exception     {   
>    	BXMLSerializer bxmlSerializer = new BXMLSerializer(); 
>    	Dialog myDialog = (Dialog)
> bxmlSerializer.readObject(ClientApplication.class, "resource/dialog.bxml");
>    	myDialog.open(display);
> } 
> 
> it always open a big pivot window behind the dialog :-(
> 
> 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/how-to-make-a-login-window-before-main-window-tp3454273p3454547.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message