I have GUI with multiple display boxes, some of them are Col List boxes that user can resize.
When they do that, window would make scroll bars. I don't want scroll bars. I want window to resize automatically to fit everything. Just like any platform (Fit Y by X for instance, does).
I can't find a combination of messages that would do that work... Can somebody point me in right direction?
Update:
Here is an illustration.
If you run this script:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
bb = Border Box( Left( 10 ), Right( 10 ), Top( 5 ), Bottom( 10 ), Sides( 15 ),
clb = Col List Box( all, width( 250 ), maxSelected( 1 ) ),
);
nw = New Window( "Col List Box Example",
bb
);
you'll get a window with a Col List Box.
If you try to resize this Col List Box beyond window, the window will expand.
But if you try to change the window size even a tiny bit - it won't respond to Col List Box changing size beyond window size. It will produce sliders.
In my Add-In my content for some reason does not fit vertically in the window.
The only way to fix that I was able to find was to change the size of the window. But now that we've changed the size of the window - it does not respond to changes in size of the content.
Is it a bug? Or is it expected behavior? Any way to fix that?