I'd like to add a "filler" column to all datawindow objects, in order to not have an empty space if the datawindow object have a total width less than the datawindow control.
What would be the best way of doing this?
I am thinking of adding a "dummy" column to the datawindow object with width = 0. At runtime I'll calculate the width of all the visible columns, and if less than the datawindow control, just set the dummy column width to fill out the gap.
Could I add this column runtime to avoid having to add this dummy column in the painter?
My code to determine width would loop all visible columns and compare with against the control's width. Is there another way of getting the difference in width (not having to loop columns runtime) ?
Or are there any other 'best practice' or native function to achieve this?
Currently I am using PB 11.