Accessories (1816)
-
In the ‘Misc/MAINUNIT.pas’ file locate the CreateUnivexForm for the form you’re working with.
-
Set last parameter AllowFormResize to True to allow form resizing for that form. The picture below illustrates this for the promo form
-
Remembering of the form size on close/restore on open should work already if you do #1
-
To allow grid columns resizing, there is a AutoResizeColumnsOnResize property on the TUnStringGrid/TUnObjectGrid. If you set this to True, the grid columns will resize when the grid resizes
-
Adjust anchor points on any components you wish to update dynamically
-
Review the code for any instances where we programmatically set component size/position to hardcoded values (e.g. P_Panel.Width := 240 / colWidth).
-
Set univexformbuttons (UFB) autopositioning to apCustom