pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B.L. Zeebub" <roger.var...@googlemail.com>
Subject Problem closing windows
Date Mon, 08 Aug 2011 06:59:31 GMT
Hi

I've got a fairly basic frame defined (below). When I instantiate the window
under Windows 7 with 

public void startup(Display display, Map&lt;String, String&gt; properties)
			throws Exception {
		
		WTKXSerializer wtkxSerializer = new WTKXSerializer();
		window = (Window) wtkxSerializer.readObject(this,
"GenesisClientStarter.wtkx");
		window.open(display);
}

I get my frame which is wrapped in a Windows decorated frame. If I click the
close icon on the Windows frame then everything shuts down as expected.
However, if I try to shutdown my app programatically with

Alert.alert(MessageType.ERROR,((ErrorEvent) message).getMessage(), window,
new DialogCloseListener()
					 {

				public void dialogClosed(Dialog dialog, boolean modal) {
						try {
							shutdown(true);
						} catch (Exception e) {
							e.printStackTrace();
						}
					
				}
		
				
			});

then only my frame closes, leaving a blank Windows 7 decorated window in
place. How do I close the Windows 7 window?

Regards

<Frame title="Genesis Client" maximized="true"
styles="{showWindowControls:false}"
	xmlns:wtkx="http://pivot.apache.org/wtkx" xmlns="org.apache.pivot.wtk">
	<content>
		<Border styles="{color:10, cornerRadii:20}">
			<content>
				<TablePane>
					<columns>
						<TablePane.Column />
					</columns>
					<rows>
					<TablePane.Row>
					<Border>
					<content>
					<BoxPane orientation="horizontal" >
					<ImageView wtkx:id="car" styles="{verticalAlignment:'center'}"/>
					<ImageView wtkx:id="vci_status" styles="{verticalAlignment:'bottom'}"/>
					<ImageView wtkx:id="pc" styles="{verticalAlignment:'center'}"/>
					<ImageView wtkx:id="pc_status" styles="{verticalAlignment:'bottom'}"/>
					<ImageView wtkx:id="server" styles="{verticalAlignment:'center'}"/>
					</BoxPane>
					</content>
					</Border>
					</TablePane.Row>
					<TablePane.Row> 
					<Border>
					<content>
					<BoxPane orientation="horizontal">
					<ImageView wtkx:id="rx" />
					<ImageView wtkx:id="tx" />
					</BoxPane>
					</content>
					</Border>
					</TablePane.Row>
					
						<TablePane.Row height="300">
							<Border>
								<content>
									<ScrollPane horizontalScrollBarPolicy="fill_to_capacity">
										<view>
											<TableView wtkx:id="tableView" selectMode="single">
												<columns>
													<TableView.Column name="message" width="800"
														headerData="Header" />
												</columns>
											</TableView>
										</view>
									</ScrollPane>
								</content>
							</Border>
						</TablePane.Row>
						<TablePane.Row> 
							<Border>
							<content>
								<ActivityIndicator wtkx:id="activityIndicator"
									preferredWidth="24" preferredHeight="24" />
									</content>
							</Border>
						</TablePane.Row>
					</rows>
				</TablePane> 
			</content>
		</Border>
	</content>
</Frame>



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Problem-closing-windows-tp3234719p3234719.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message