About RichEdit control

Started by Jean-pierre Leroy, November 08, 2013, 12:27:05 PM

Previous topic - Next topic

Jean-pierre Leroy

Dear all,

I would like to put a RichEdit control on a FORM in order to allow end user to enter comments on projects.

It could be nice if the end user could be able to select some portions of the text and then change the color or the font size like in a word processor.

I'm looking for samples codes or project in order to accomplish this task.

Thanks
Jean-Pierre

Jean-pierre Leroy

I know I can probably use RichEdit_SetCharFormat wrapper from Jose or send the EM_SETCHARFORMAT message; I'm looking for some examples.

Thanks.
Jean-Pierre

Paul Squires

I don't have any examples. Sorry.
Paul Squires
PlanetSquires Software

José Roca

#3
In the file RichEditCtrl.inc there is a wrapper function, RichEdit_SetFontA/RichEdit_SetFontW that sets the font to all the text. For a selection, change %SCF_ALL with %SCF_SELECTION.

Hope it works. This is a control I almost never use because it is very convoluted.

Jim Dunn

You should look at some of Gary Beene's RICHEDIT stuff

http://www.garybeene.com/code/

(he just did a gbQuickNotes, that *might* also have RICHEDIT in it)
3.14159265358979323846264338327950
"Ok, yes... I like pie... um, I meant, pi."

Pedro Marquez

Quote from: Jim Dunn on November 08, 2013, 05:26:03 PM
You should look at some of Gary Beene's RICHEDIT stuff

http://www.garybeene.com/code/

(he just did a gbQuickNotes, that *might* also have RICHEDIT in it)



very good