@pauldeen,
Note the script can control auto stretching. The script I sent had <<Set AutoStrectching(1,0) which allows stretching in X but not in Y. By changing the code near line 180 to disallow autostretching in X, <<Set AutoStrectching(0,0), the maximized window will appear as shown in the picture below. There is no "distortion." The script was written to emulate the behavior of FitYbyX. Have you tried launching FitYbyX with a maximized window? It has autostretching in X enabled.
Hope that helps. BTW, the JMP Application Buider UI displays all the attributes of each display box, so you are just choosing attributes vs. having to find the equivalent JSL message. It does take a little learning and getting use to, but it has built-in features and can make it an application. I use both ApplicationBuilder and JSL.
Good Luck.
//--Set ColListBox (clb) attributes
//Max width set at 500 to see the effect. Stretch the window horizontally, note where clb's no longer stretch
//or set to something really large like 9000.
_inputCol << Set Min Size(80,100) << Set Max Size(500,1000) << Set AutoStretching(0,0);
_yvar_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);
_xvar_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);
_blk_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);
_wt_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);
_freq_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);
_by_clb << Set Min Size(80,25) << Set Max Size(500,125) << Set Auto Stretching(0,0);