
XmSTATIC, the vertical ScrollBar is always displayed. The XmNlistSizePolicy resource reflects
Output of simple_list.c modified to use a ScrolledList
how the ScrolledList manages its horizontal ScrollBar. The default setting is XmVARIABLE, which means that the
ScrolledList attempts to grow horizontally to contain its widest item and a horizontal ScrollBar is not displayed. This
policy may present a problem if the parent of the ScrolledList constrains its horizontal size. If the resource is set to
XmRESIZE_IF_ POSSIBLE, the ScrolledList displays a horizontal ScrollBar only if it cannot resize itself
accordingly. If the value XmCONSTANT is used, the horizontal ScrollBar is displayed at all times, whether it is needed
or not.
The size of a ScrolledList is ultimately controlled by its parent. In most cases, a manager widget such as a
RowColumn or Form allows its children to be any size they request. If a ScrolledList is a child of a Form widget, its
size is whatever you specify with either the XmN-height resource or the XmNvisibleItemCount. However,
certain constraints, such as the XmNresizePolicy in a Form widget, may affect the height of its children
unexpectedly. For example, if you set XmNresizePolicy to XmRESIZE_NONE, the ScrolledList widget's height
request is ignored, which makes it look like XmNvisibleItemCount is not working.
The List widget accepts keyboard input to select items in the ...