search for: columnhead

Displaying 1 result from an estimated 1 matches for "columnhead".

Did you mean: columned
2008 May 18
8
FXTable::fitColumnsToContents
...are considered. > A work-around is to pad the column data with spaces. However, is > there a better way of doing this? This seems to work; see what you think: class FXTable def fitColumnsToContents(col, nc) col.upto(col+nc-1) do |c| cw = getMinColumnWidth(c) hw = columnHeader.font.getTextWidth(columnHeader.getItemText(c)) setColumnWidth(c, [cw, hw].max) end end end Note that this is similar to the original implementation of fitColumnsToContents() from FOX; but it also checks the width of the column header items to see if they''re wider. &...