|
|
pinEdit WP
Started by JDL at 10-02-2008 6:37 . Topic has 3 replies.
 
 
|
|
Sort Posts:
|
|
|
|
10-02-2008, 6:37
|
JDL
Joined on 08-06-2008
Posts 0
|
|
|
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
Joined on 08-06-2008
Posts 0
|
|
|
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
Joined on 08-30-2005
Posts 1.576
|
|
|
Hello,
please try this after setting DefaultFont.
editor.execute("editSetCursorHome()")
Regards,
Hans-Peter
|
|
|
|
|
Report
|
|
|
|
10-03-2008, 4:02
|
JDL
Joined on 08-06-2008
Posts 0
|
|
|
Thanks Hans-Peter. That worked.
|
|
|
|
|
Report
|
|
|
|
|
Pintexx Forum » Developer Produ... » pinEdit WP » FontSizeType
|
|
|
|