New RichEditBox method and overhauled DOC page

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
Posts: 122
Joined: Tue Oct 07, 2014 11:13 am
Has thanked: 6 times
Been thanked: 16 times

New RichEditBox method and overhauled DOC page

Post by kcarmody » Fri Nov 07, 2014 10:09 am

I've overhauled the DOC page on the RichEditBox control. This page described a set of "new" properties and methods separately from the main list. I missed these new properties and methods the first few times I looked at this page, so I merged them into the main list.

Instead of creating a set of new pages for the new properties and methods, I put the descriptions into new sections of the RichEditBox page. This meant that I revised only one file in the DOC folder, richeditbox.htm.

The overhauled version of richeditbox.htm is on my site at, along with some other files that I modified before.

I've also put this revised page into my proposed HMG CHM file folder. See
the discussion at viewtopic.php?f=8&t=3999.

While I was updating this documentation, I noticed that there was a function, RichEditBox_PasteSpecial, that did not have a method, so I created a new method PasteSpecial. This means a revised h_controlmisc.prg, and a revised in The documentation of this method could use some explanation of the Format argument.

There is another function that still does not have a property or method, RichEditBox_SetMargins. After much research, I don't know what this function is supposed to do. I don't think it sets print margins, because that is done in the print system and this is not part of the print system. If it sets a screen margin, i.e. the space between text and the edge of the control, then this is better handled by the ViewRect property. The MSDN documentation on the EM_SETMARGINS message is vague, and it also says that EM_GETMARGINS is not supported in RichEdit controls. So I don't see the point of RichEditBox_SetMargins and have not made a method for it.


Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Fri Nov 07, 2014 4:56 pm

Bien Kevin, sigue adelante... :) :) :)


Post Reply