Subscribe Bookmark RSS Feed

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

galactus3000

Contributor

Joined:

Nov 9, 2016

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

Joined:

Jun 22, 2012

Solution

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
1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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