Listbox – columns AUTO resizing !

4D v16 includes a new feature providing your end-user great freedom and flexibility at the interface level when using list boxes. The constraints defined for each column are now fully applied and respected when the list box they belong to is resized.
Certain columns may have a fixed width, others may be widened or narrowed only slightly, and still others may have large changes in their width; all of which will be entirely automatic.

For example, the last columns of list boxes very often contain numeric values (e.g. prices) where definitions and labels are usually centered. Using this feature, you can specify that the text information will be expanded while the size of the columns containing numeric values will remain the same, all without writing a single line of code.

In order to activate this behaviour, the developper has to check the Column Auto-Resizing property that can be found in the Resizing options of the property list.

lbresizing

We invite you to have a look at this example: Example Database

And a video is also available!
.

For more details, please refer to the Listbox specific properties section from 4D v16 design reference in Doc Center.

Roland Lannuzel

• Product Owner & 4D Expert •

After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.

Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.