[Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory

Benoît Minisini g4mba5 at gmail.com
Tue Sep 4 22:13:42 CEST 2018


Le 04/09/2018 à 21:57, Me a écrit :
> On Tue, 4 Sep 2018 18:47:55 +0200
> Fabien Bodard <gambas.fr at gmail.com> wrote:
> 
>> well :
>>
>> http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext
>>
>>
> 
> Can't Paint into "raw" QT controls like a TextBox.
> 

Paint.TrimRichText() does not actually paint anything, it trims the text 
for you. It's in the class Paint because it need the current font size 
and the paint device resolution.

If I add the font as an argument, you will be able to use the function 
anywhere.

-- 
Benoît Minisini


More information about the User mailing list