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
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
I don't have any examples. Sorry.
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.
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)
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