Skip to main content
Participating Frequently
Mar 31, 2006 2:04 PM UTC
Question

Problems with dialog windows

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

_fivan79_Author
Participating Frequently
Apr 5, 2006 5:27 AM UTC
thanks a lot

Ivan
Translate
Participating Frequently
Apr 3, 2006 6:20 PM UTC
Search JavaScript help for frameLocation and preferredSize. These allow you to specify location and size of components while using
the Auto Layout manager.

Larry
Translate
Mar 31, 2006 2:12 PM UTC
Don't set the location/size of the window.

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

Bob
Translate