Displaying a list where the line height would exactly fit the content is a very common need. 4D View Pro is including a new feature so that you can now control the height of each row independently in a listbox to make it fit to its content. To know more about 4D View Pro, check out this blog post.
There are actually now two ways to define the row height in a listbox:
- using new dedicated commands
- using a new control array
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.
The event On Column Resize is now triggered “live” during the resizing of the list boxes as long as the user modifies the column widths (previously, it was generated only once, at the end of the resizing).
Thanks to this feature, 4D programmers will have the opportunity to create live and responsive interfaces based on the actual width of columns!
In 4D v16 the texts for all the form objects (static texts, buttons, check boxes, etc…) will be stored in Unicode, allowing you to use characters from different languages directly in the form editor.
Especially for Asian or Eastern European languages this will ease the development process.
In 4D v16, you now have a new “On Mouse Up” event for non-draggable picture object!
This feature will provide you with an easy and notice way to draw and/or move SVG objects easily, removing the need for tricks as “SET TIMER(1)” to detect that the mouse button has been released.
From 4D v15 R5, you can add an icon in the listbox header by programming. The image can come from a file, a picture variable or the picture library. This icon can be placed on the left or on the right side of the column.
Easily create flexible and powerful UIs, dialogs and widgets with 4D View Pro! To know more about 4D View Pro, check out this blog post.
This feature is a powerful enhancement for the listbox object, providing you with a mean to define very flexible UIs. An array of objects can now be associated with the column of a listbox so that each cell can have different types of widgets according to the type of data to be displayed.