Power Table Column Width Blues

I have a power table that has 9 columns that need sizing. My goal is to get the width of the monitor the project is running on and scale the columns based upon the width of the screen. Column 0 needs to be 16px wide (for an icon), column 1 needs to be (width/9 x 2). The remaining column widths are (width/9).

I have looked at previous topics, but they seem to just auto-resize. Can anyone point me in the right direction?

I usually create a custom method on the table called colWidth
And put something like this code in it

	tab = self
	w = tab.width
	tab.setColumnWidth(0,(w/9)*2)
	tab.setColumnWidth(1,w/9)
	tab.setColumnWidth(2,w/9)
	tab.setColumnWidth(3,w/9)
	tab.setColumnWidth(4,w/9)

Then I put self.colWidth() in the configureEditor Extension function.

4 Likes

Excellent. Exactly what I was trying to do. Thank you MMayynardUSG