Subscribe Bookmark RSS Feed

ListBox - how to reset its width?

djhanson

Community Trekker

Joined:

Jun 23, 2011

I've got a menu with a ListBox, and I initially set its width (pixels).  This works fine.  Later I clear and append its contents.  Unfortunately, this shrinks the original width and I am unable to reset it to the original width value.  Anyone know how to reset a ListBox's width?

Example (JMP 9.0.3):

myLB = ListBox(myContents,width(150),nlines(3));

After this, I clear contents and refresh myContents with a new list (that works fine).  However, the ListBox width now shrinks.  I've tried with no success the following thinking JSL might have some hidden goodies not documented:

myLB<<width(150);

myLB<<set width(150);

any help much appreciated... dj