Bring window to frontHi @txnelson
I am trying to bring the variability chart window in the front or maximize it after clicking on button box "Plot". I tried using bring window to front but it's not working. Can you suggest what other syntax can be use?
Here's my script:
Names Default To Here( 1 );
dt2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = New Window( "New window",
<<MODAL></MODAL>
Data Exploration and VisualizationRe: Bring window to frontI think this has to do with 1) the modal window, nw, always being in focus so the vc window can't come to the front, and 2) the modal window not closing until the whole button box script is complete, despite your close window message. You could try putting that code in the on close script of that window and creating the vc variable in the here namespace so the on close script can access it after the nw window is gone:
Names Default To Here( 1 );
dt2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
vc = {}; //create variable here so on close script can access it
nw = New Window( "New window",
<<MODAL></MODAL>
Re: Bring window to frontYou're close. It's the new window nw that you want to ring to the front, not the variability plot object within it. Try nw << bring window to front(). If that doesn't work, add a 'wait(0);' before it.
Sorry, didn't realize you had a modal window.