Re: FontSizeType

pinEdit WP

FontSizeType


JDL 10-02-2008, 6:37
Hi I'm using pintEdit 7.0.0918 and I'm trying to set the FontSizeType. When I call EditSetDefaultFont(x,x), the size type in the editor defaults to px. Can you overload the method to also take either px or pt? But in the mean time, how do make it work? I have set FontSizeType = "pt" and also called EditSetDefaultFont(x, "10pt"). Never have any effect. It still defaults to 10px.

???

Thanks

Re: FontSizeType


JDL 10-02-2008, 9:10
I think the problem was that I was calling EditSetDefaultFont before the ready event. I'm now able to set the font and size correctly in the editor. Is there a way to update the font and size settings on the toolbar to reflect the font/size that has been set? I can see that it updates when the cursor is clicked in the editor, but it would be better if it were updated before then.

Thanks

Re: FontSizeType


Pintexx Support 10-03-2008, 10:18
Hello,

please try this after setting DefaultFont.

editor.execute("editSetCursorHome()")

Regards,
Hans-Peter

Re: FontSizeType


JDL 10-03-2008, 4:02
Thanks Hans-Peter. That worked.