PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-pierre Leroy on November 08, 2013, 12:27:05 PM

Title: About RichEdit control
Post by: Jean-pierre Leroy on November 08, 2013, 12:27:05 PM
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
Title: Re: About RichEdit control
Post by: Jean-pierre Leroy on November 08, 2013, 12:46:41 PM
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
Title: Re: About RichEdit control
Post by: Paul Squires on November 08, 2013, 01:55:08 PM
I don't have any examples. Sorry.
Title: Re: About RichEdit control
Post by: José Roca on November 08, 2013, 02:18:34 PM
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.
Title: Re: About RichEdit control
Post by: 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)
Title: Re: About RichEdit control
Post by: Pedro Marquez on November 08, 2013, 07:52:10 PM
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