Hi Fredv,

   Suppose you have a simplewidget   with bound_x=490,  If you want to fill 
it's frame.caption with  '-'  the number of chars must be   125
 then the width of char is  490/125=3,92  wich is not the width of the font?

Best Regards.

Med
________________________________
De : fredvs <fi...@hotmail.com>
Envoyé : lundi 5 août 2019 22:22
À : mseide-msegui-talk@lists.sourceforge.net 
<mseide-msegui-talk@lists.sourceforge.net>
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med.

> How to get font width and height in pixels  of an  object.frame.caption  ?

If a font was assigned in object.frame.font:  :

fontwidth := object.frame.font.width;
fontheight := object.frame.font.height;

It the font assigned is <parent>, you should check for the font used by
parent of the object.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to