Subscribe Bookmark RSS Feed

In JSL, can I tell a modal window where to be?

hardner

Community Trekker

Joined:

Nov 13, 2012

For an ordinary window I can do this...

nw=newwindow("test window",

  textbox("just trying out this window")

);

nw<<movewindow(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 <<modal message it doesn't work (maybe for same reason?)

But this doesn't work either...

update=New window("Update stuff in this window", <<movewindow(100,500),<<modal,

  textbox("blah blah"),

  textbox(" "),

  textbox("value:"),

  ubox2=numbereditbox(42,5),

  textbox(" "),

  buttonbox("OK")

  );

With that it does move the window (and oddly reshape it)  but the <<modal message does not work.

?

This is in JMP11.  Thanks for any inputs.

1 REPLY
David_Burnham

Super User

Joined:

Jul 13, 2011

It is possible to send messages to a modal window by using the OnOpen message

nw = New Window("test",<<Modal,

  << On Open(  tb << Set Text("Demo") ),

  tb = Text Box("")

);

However, I don't think the window responds to the Move Window message.

Dave

-Dave