[Gambas-user] Gridview Q and determining width of a string

Richard Terry rterry at ...1823...
Fri Jun 1 00:27:56 CEST 2012


Hi List

A few qridview questions if anyone has time.

I'm loading a grid with variable length strings, and want to adjust the 
column widths to match, or have the option to increase the height of a 
cell with word-wrap within the cell.

I wondered if anyone has gone down this path before.

I tried having a hidden label with auto-resize = false, setting the 
label.text property to the string, reading the width, then setting the 
max width of all the strings to the column width. This works but seems 
messy, plus I found I had to put a Wait command after each label update 
or the label didn't resize.

Also would be interested in how to wrap text within a grid cell.

Regards

richard





More information about the User mailing list