cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
galactus3000
Level IV

Bring Window to Front not working .. also window won't close... please help

Bring Window to Front not working .. also window won't close... need solution quick

 

Here is my code

 

 

plotobj = Bivariate( Y( :Name( "current" ) ), X( :Name( "time" ) ) );

 

plotobj << Bring Window to Front;

New Window( "Enter Number",
<<Modal,
<<Bring Window to Front,
Text Box("Number"),
variablebox = Number Edit Box( ttf, 10,
<<Set Function(
Function({this},
btn_ok << Click
)
)
),
btn_ok = Button Box( "OK",
entrie=variablebox << get;),
Button Box( "Cancel")
);
Close(plotobj);

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Bring Window to Front not working .. also window won't close... please help

I have run your code, and I am not seeing the issue with "Bring Window to Front".  The window is brought to the front, and then your Modal window opens on top of it, which should be expected.  If you don't want that, then you need to move the window to a position away from the plotobj location.

What is incorrect is your Close() function.  What you want is:

plotobj << close window;
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Bring Window to Front not working .. also window won't close... please help

I have run your code, and I am not seeing the issue with "Bring Window to Front".  The window is brought to the front, and then your Modal window opens on top of it, which should be expected.  If you don't want that, then you need to move the window to a position away from the plotobj location.

What is incorrect is your Close() function.  What you want is:

plotobj << close window;
Jim