numberOfColumns

Typeproperty
Dictionarywidget.polylist
LibraryPolyList
Syntax
set the numberOfColumns of widget to {<integer>}
get the numberOfColumns of widget
Associationscom.livecode.widget.polylist
Summary

Set up and get the number of columns displayed in the PolyList

Example
on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight
   if pNewWidth < 600 then
      set the numberOfColumns of widget "PolyList" to 1
   else if pNewWidth < 800 then
      set the numberOfColumns of widget "PolyList" to 2
   else
	  set the numberOfColumns of widget "PolyList" to 3
   end if
end resizeStack
Description

Use the numberOfColumns property to set and get the number of columns displayed in the PolyList. The default value of this property is 1.

If the columnwidth property is equal to 0, the polylast divides the width by the number of columns to find the width that each column will have. While columnwidth has a value greater than 0, all columns will have the specified width.