In JSL, can I tell a modal window where to be?For an ordinary window I can do this...
nw = New Window( "test window",
Text Box( "just trying out this window" )
);
nw << move window( 100, 500 );
But for a modal window that doesn't work - I get that, the window is busy waiting for inputs so doesn't get any message sent afterwards.
I tried sending this message when creating the window. But if I do it after the <
But this doesn't work either...
update = New Window( "Update stuff in this window",
<<MOVEWINDOW></MOVEWINDOW>
With that it does move the window (and oddly reshape it) but the <
?
This is in JMP11. Thanks for any inputs.
Re: In JSL, can I tell a modal window where to be?User jara95's soln works for me. User Craige_Hales also replied to me in another thread with a similar solution (thanks Craige):
https://community.jmp.com/t5/JMP-Wish-List/Set-Modal-Window-Position/idc-p/224498#M677
w = New Window( "My Window",
<<MODAL></MODAL>
Confirmed that changing the coords actually updates the location of the window on my computer (Mac, JMP Pro 14.3). Thanks all.
Re: In JSL, can I tell a modal window where to be?Here is alternative way,
update=New window("Update stuff in this window",
<<MODAL></MODAL>Re: In JSL, can I tell a modal window where to be?I am using Mac, too. What version of JMP are you using? This code has worked for a few versions, but I cannot remember exactly when it was introduced.
The arguments (500, 500) in the Move Window message define the (X, Y) location of the upper left corner of the window in screen pixels.
Re: In JSL, can I tell a modal window where to be?This does not work for me. Changing the dimensions from 500 to 100 does nothing. Does it work for you?
Using a mac, fwiw.
Re: In JSL, can I tell a modal window where to be?Here is a way:
Names Default to Here( 1 );
New Window( "Move It!", << Modal,
Text Box( "Here I am, right here!" ),
<< Move Window( 500, 500 )
);
Re: In JSL, can I tell a modal window where to be?Just wanted to ask if any new methods had been developed for doing this. I too have the same issue (JMP Pro 14.3).
Re: In JSL, can I tell a modal window where to be?It is possible to send messages to a modal window by using the OnOpen message
nw = New Window( "test",
<<MODAL></MODAL>
However, I don't think the window responds to the Move Window message.
Dave