Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Best practice for empty "filler column" in datawindow

$
0
0

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.

 

15-07-2013 08-30-25.png

 

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.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>