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 http://kevincarmody.com/hmg/DOC/data/, along with some other files that I modified before.
I've also put this revised page into my proposed HMG CHM file http://kevincarmody.com/hmg/DOC/ 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 http://kevincarmody.com/hmg/SOURCE/, and a revised i_window.ch in http://kevincarmody.com/hmg/INCLUDE/. 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.
Kevin
New RichEditBox method and overhauled DOC page
Moderator: Rathinagiri
-
- Posts: 1275
- Joined: Tue Sep 03, 2013 4:22 am
- Location: Tecámac, México
Re: New RichEditBox method and overhauled DOC page
Bien Kevin, sigue adelante...
Saludos
Saludos