Re: Richedit and margins
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 02 Aug 2007 18:20:27 -0400
Rich edit controls do support only a subset of the rtf capabilities; apparently margins
are among the unsupported features.
joe
On Thu, 02 Aug 2007 15:35:10 +0200, Tom Becker
<Tom_dot_Becker_at_Ziemann_minus_Urban_dot_de> wrote:
On input these tags seem to be ignored. The memberJoseph M. Newcomer [MVP]
CRichEditView::m_rectMargin is always 0.
I'm using Richedit 2.1 but effect is the same on 3.0
Are there any other (3rd party) controls that support full richedit
editing?
Joseph M. Newcomer schrieb:
If you read in a rich-edit file that has these margins set, are they honored?
If they are not honored on input, it means that they are unsupported. If they *are*
honored on input, it means there is (yet another) but in Rich Edit. But I don't know the
workaround. Also, which version of Rich Edit are you using? Early versions are always
suspect.
joe
On Thu, 02 Aug 2007 12:11:47 +0200, Tom Becker
<Tom_dot_Becker_at_Ziemann_minus_Urban_dot_de> wrote:
HalloJoseph M. Newcomer [MVP]
I'm using an MDI environment. To enable automatic printing I have to ensure
that special printer settings are loaded. The default printer of the app
won't work for me.
One MDI child is of type richedit (Doc/View)
I have succesfully set margins in the view by calling SetMargins().
Unfortunatly the control does not save these margins to the rtf-file.
I know that it is possible as OpenOffice does it that way. The keywords
are \marglX\margrX\margtX\margbX\ where X has to be replaced by a value in twips.
Is there a way to store these parameters in the file in an elegant way?
I don't realy want to insert these parameters manually to the rtf-file in my source code.
Thanks for suggestions
Tom Becker
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Richedit and margins
- From: Tom Becker
- Re: Richedit and margins
- From: Joseph M . Newcomer
- Re: Richedit and margins
- From: Tom Becker
- Richedit and margins
- Prev by Date: Re: how to change the pen in cstatic frame?
- Next by Date: Re: extern template object in VC7.1
- Previous by thread: Re: Richedit and margins
- Next by thread: stretchdibits fails
- Index(es):
Relevant Pages
|