<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: In JSL, can I tell a modal window where to be? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224501#M44620</link>
    <description>&lt;P&gt;User jara95's soln works for me. &amp;nbsp;User Craige_Hales also replied to me in another thread with a similar solution (thanks Craige):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Set-Modal-Window-Position/idc-p/224498#M677" target="_self"&gt;https://community.jmp.com/t5/JMP-Wish-List/Set-Modal-Window-Position/idc-p/224498#M677&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = New Window( "My Window", 
	&amp;lt;&amp;lt;Modal, 
	&amp;lt;&amp;lt;OnOpen( Window( "My Window" ) &amp;lt;&amp;lt; moveWindow( 500, 500 ) ), 
	Text Box( "I'm a window!" ) 
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Confirmed that changing the coords actually updates the location of the window on my computer (Mac, JMP Pro 14.3). &amp;nbsp;Thanks all.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 19:36:29 GMT</pubDate>
    <dc:creator>nikles</dc:creator>
    <dc:date>2019-09-03T19:36:29Z</dc:date>
    <item>
      <title>In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/12231#M11662</link>
      <description>&lt;P&gt;For an ordinary window I can do this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "test window", 
	Text Box( "just trying out this window" )
);

nw &amp;lt;&amp;lt; move window( 100, 500 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried sending this message when creating the window.&amp;nbsp; But if I do it after the &amp;lt;&amp;lt;modal message it doesn't work (maybe for same reason?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this doesn't work either...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;update = New Window( "Update stuff in this window",
	&amp;lt;&amp;lt;movewindow( 100, 500 ),
	&amp;lt;&amp;lt;modal,
	Text Box( "blah blah" ),
	Text Box( " " ), 
	Text Box( "value:" ), 
	ubox2 = Number Edit Box( 42, 5 ), 
	Text Box( " " ), 
	Button Box( "OK" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that it does move the window (and oddly reshape it)&amp;nbsp; but the &amp;lt;&amp;lt;modal message does not work.&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is in JMP11.&amp;nbsp; Thanks for any inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 12:27:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/12231#M11662</guid>
      <dc:creator>hardner</dc:creator>
      <dc:date>2019-09-03T12:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/12232#M11663</link>
      <description>&lt;P&gt;It is possible to send messages to a modal window by using the OnOpen message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "test",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;On Open( tb &amp;lt;&amp;lt; Set Text( "Demo" ) ),
	tb = Text Box( "" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I don't think the window responds to the Move Window message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 12:28:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/12232#M11663</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2019-09-03T12:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224271#M44570</link>
      <description>&lt;P&gt;Just wanted to ask if any new methods had been developed for doing this. &amp;nbsp;I too have the same issue (JMP Pro 14.3).&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 21:04:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224271#M44570</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2019-08-30T21:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224286#M44574</link>
      <description>&lt;P&gt;Here is a way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

New Window( "Move It!", &amp;lt;&amp;lt; Modal,
	Text Box( "Here I am, right here!" ),
	&amp;lt;&amp;lt; Move Window( 500, 500 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Aug 2019 22:57:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224286#M44574</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-08-30T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224287#M44575</link>
      <description>&lt;P&gt;This does not work for me. &amp;nbsp;Changing the dimensions from 500 to 100 does nothing. &amp;nbsp;Does it work for you? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a mac, fwiw.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 01:07:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224287#M44575</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2019-08-31T01:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224292#M44577</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 11:50:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224292#M44577</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-08-31T11:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224293#M44578</link>
      <description>&lt;P&gt;Here is alternative way,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;update=New window("Update stuff in this window",
&amp;lt;&amp;lt;modal,
&amp;lt;&amp;lt;on open(btn&amp;lt;&amp;lt;click(1);btn&amp;lt;&amp;lt;delete),
  btn=buttonbox("",btn&amp;lt;&amp;lt;movewindow(100,500)),
	textbox("blah blah"),
  textbox(" "),
  textbox("value:"),
  ubox2=numbereditbox(42,5),
  textbox(" "),
  buttonbox("OK")
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Aug 2019 12:48:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224293#M44578</guid>
      <dc:creator>jara95</dc:creator>
      <dc:date>2019-08-31T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, can I tell a modal window where to be?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224501#M44620</link>
      <description>&lt;P&gt;User jara95's soln works for me. &amp;nbsp;User Craige_Hales also replied to me in another thread with a similar solution (thanks Craige):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Set-Modal-Window-Position/idc-p/224498#M677" target="_self"&gt;https://community.jmp.com/t5/JMP-Wish-List/Set-Modal-Window-Position/idc-p/224498#M677&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = New Window( "My Window", 
	&amp;lt;&amp;lt;Modal, 
	&amp;lt;&amp;lt;OnOpen( Window( "My Window" ) &amp;lt;&amp;lt; moveWindow( 500, 500 ) ), 
	Text Box( "I'm a window!" ) 
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Confirmed that changing the coords actually updates the location of the window on my computer (Mac, JMP Pro 14.3). &amp;nbsp;Thanks all.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 19:36:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-can-I-tell-a-modal-window-where-to-be/m-p/224501#M44620</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2019-09-03T19:36:29Z</dc:date>
    </item>
  </channel>
</rss>

