Page 1 of 1

Richedit ???

Posted: Fri May 09, 2003 3:12 pm
by Large
Ok, my last two posts the date one being solved by dmoc ( Thanks again ! ) and the textarea problems were solved by using the richedit library.

Now a couple of problems in the richedit commands...

I can make this command work :

RichEditFontFace ("Verdana")

But I cant change the size of the font :

RichEditFontsize (9)

doe's not seem to work, that command crashes PB.

Anyone got any idea's how to change the richedit font size ?

Any help is greatly appreciated. :)

Kind Regards

Posted: Sat May 10, 2003 6:05 pm
by El_Choni
Could you post some code which produces the bug? TIA.

Posted: Sat May 10, 2003 8:11 pm
by Large
Hi El_Choni,

The code I am using is below :

Code: Select all

OpenRichEdit(WindowID(), 0, 16, 181, 569, 264, "");
UseRichEdit(0) 
RichEditFontFace("Verdana")
RichEditFontSize(9)
It works fine if I take the last line off but crashes PB is I leave it there.

Please help I need font Verdana size 9 in my richedit gadget.

Kind regards

Posted: Sun May 11, 2003 6:10 pm
by El_Choni
I'm sorry, my phone line is cut until next week so, in the meanwhile, I can only suggest you to use the 'standalone' function for changing fonts (check syntax in the text file which comes with the lib).

IIRC, it would be something like this:

Code: Select all

RichEditFont("Verdana", 9, -1, -1, -1, -1, -1...)
I'll fix this, and other bugs, ASAP, sorry for the trouble.

Thanks El_Choni

Posted: Sun May 11, 2003 6:42 pm
by Large
Thanks for replying El_Choni, great news that your gonna fix that !

Thanks again.