<div dir="ltr"><div>Why width and height are as float? Aren't they in pixels?</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 4, 2018 at 11:14 PM Benoît Minisini <<a href="mailto:g4mba5@gmail.com">g4mba5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 04/09/2018 à 21:57, Me a écrit :<br>
> On Tue, 4 Sep 2018 18:47:55 +0200<br>
> Fabien Bodard <<a href="mailto:gambas.fr@gmail.com" target="_blank">gambas.fr@gmail.com</a>> wrote:<br>
> <br>
>> well :<br>
>><br>
>> <a href="http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext</a><br>
>><br>
>><br>
> <br>
> Can't Paint into "raw" QT controls like a TextBox.<br>
> <br>
<br>
Paint.TrimRichText() does not actually paint anything, it trims the text <br>
for you. It's in the class Paint because it need the current font size <br>
and the paint device resolution.<br>
<br>
If I add the font as an argument, you will be able to use the function <br>
anywhere.<br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>