Skip to main content
Participating Frequently
March 31, 2006
Question

Problems with dialog windows

  • March 31, 2006
  • 3 replies
  • 483 views
HI all.
This is the code for creating a simple dialog window,
but when I display this window, it is empty.

Someone can tell me what's wrong ?

thanks

Ivan

var myWin = new Window('window', 'Title', [100,100,400,300]);

myWin.msgPnl = myWin.add ('panel', undefined , 'Available models');

myWin.msgPnl.titolo = myWin.msgPnl.add('statictext', undefined,'Select your model');
myWin.radio_1 = myWin.add('radiobutton',undefined, '2 X 3');
myWin.radio_2 = myWin.add('radiobutton',undefined, '3 X 5');

myWin.radio_1.value = (true);
This topic has been closed for replies.

3 replies

_fivan79_Author
Participating Frequently
April 5, 2006
thanks a lot

Ivan
Participating Frequently
April 3, 2006
Search JavaScript help for frameLocation and preferredSize. These allow you to specify location and size of components while using
the Auto Layout manager.

Larry
March 31, 2006
Don't set the location/size of the window.

Containers that have their bounds set are skipped by the layout manager.

Bob