[Gambas-user] Text width in tableview

Benoît Minisini gambas at ...1...
Sat Dec 15 20:51:06 CET 2012


Le 15/12/2012 18:34, bill-lancaster a écrit :
> How can I determine if the text displayed in a cell is wider than the cell?
> Any ideas would be very welcome.
>
> Gambas 3.3.4
>

You have Font.TextWidth() and Font.RichTextWidth() for that. And if you 
are drawing something (i.e. you have called Paint.Begin or you are in a 
Draw event handler), you can use Paint.TextSize() and Paint.RichTextSize().

Regards,

-- 
Benoît Minisini




More information about the User mailing list