Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit WP

Started by JDL at 10-02-2008 6:37 . Topic has 3 replies.

Print Search
Sort Posts:    
   10-02-2008, 6:37
JDL is not online. Last active: 02.10.2008 15:12:42 JDL

Not Ranked
Joined on 08-06-2008
Posts 0
FontSizeType
Reply Quote
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
   Report 
   10-02-2008, 9:10
JDL is not online. Last active: 02.10.2008 15:12:42 JDL

Not Ranked
Joined on 08-06-2008
Posts 0
Re: FontSizeType
Reply Quote
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
   Report 
   10-03-2008, 10:18
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: FontSizeType
Reply Quote
Hello,

please try this after setting DefaultFont.

editor.execute("editSetCursorHome()")

Regards,
Hans-Peter
   Report 
   10-03-2008, 4:02
JDL is not online. Last active: 02.10.2008 15:12:42 JDL

Not Ranked
Joined on 08-06-2008
Posts 0
Re: FontSizeType
Reply Quote
Thanks Hans-Peter. That worked.
   Report 
Pintexx Forum » Developer Produ... » pinEdit WP » Re: FontSizeType