Richedit ???

Windows specific forum
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Richedit ???

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Could you post some code which produces the bug? TIA.
El_Choni
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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.
El_Choni
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Thanks El_Choni

Post by Large »

Thanks for replying El_Choni, great news that your gonna fix that !

Thanks again.
Post Reply