The code below seems to work at first, but at a closer look there's a problem (and I can't figure out how to fix it). Here's what's happening:
Any thoughts? Thanks in advance,
Dan
#targetengine 'session'
var myWin = new Window("dialog", 'Window 1' );
someText = myWin.add( "edittext", undefined, 'Some text here' );
var clickMeButton = myWin.add( "button", undefined, 'Click Me to Open a Window' );
var okButton = myWin.add( "button", undefined, 'OK' );
var cancelButton = myWin.add( "button", undefined, 'Cancel' );
var mySecondWin = new Window("dialog", 'Window 2' );
someText2 = mySecondWin.add( "edittext", undefined, 'Some text here2' );
var okButton2 = mySecondWin.add( "button", undefined, 'OK' );
var cancelButton2 = mySecondWin.add( "button", undefined, 'Cancel' );
clickMeButton.onClick = function() {
mySecondWin.center();
mySecondWin.show();
}
myWin.center();
myWin.show();
one way....
#targetengine 'session'
var myWin = new Window("dialog", 'Window 1' );
someText = myWin.add( "edittext", undefined, 'Some text here' );
var clickMeButton = myWin.add( "button", undefined, 'Click Me to Open a Window' );
var okButton = myWin.add( "button", undefined, 'OK' );
var cancelButton = myWin.add( "button", undefined, 'Cancel' );
clickMeButton.onClick = function() {
var mySecondWin = new Window("dialog", 'Window 2' );
someText2 = mySecondWin.add( "edittext", undefined, 'Some text here2' );
var okButton2 = mySecondWin.add( "button", undefined, 'OK' );
var cancelButton2 = mySecondWin.add( "button", undefined, 'Cancel' );
mySecondWin.center();
mySecondWin.show();
}
myWin.center();
myWin.show();
North America
Europe, Middle East and Africa
Asia Pacific