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

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Sep 4 23:07:51 CEST 2018


Why width and height are as float? Aren't they in pixels?


Jussi

On Tue, Sep 4, 2018 at 11:14 PM Benoît Minisini <g4mba5 at gmail.com> wrote:

> 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
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180905/14069f3e/attachment-0001.html>


More information about the User mailing list