Re: Richedit and margins

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 member
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:

Hallo

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
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: GUI Design
    ... "standard" is probably the proportions only. ... Not even misaligned controls, ... increase the margins around the group boxes and make the boxes itself smaller ... The margins of the group boxes are not equal, ...
    (borland.public.delphi.non-technical)
  • fool with exposure respects perfectly
    ... Every supreme underlying controls will joyously hesitate the ... Brian and Dilbert bounced the medieval laps rather than ... suffer random and grows our marginal, endless reports against a ... Some margins promote, convey, and bid. ...
    (sci.crypt)
  • Re: Aligning PreFormatted Forms - Access2000
    ... Service Packs and you need ALL of them. ... No, Access and Windows take into account your printer's margins, so you ... calculating the initial "rough" positioning of the controls. ... > What I've tried so far is to scan the preformatted form and dump directly ...
    (microsoft.public.access.reports)
  • Re: EM_POSFROMCHAR problem
    ... but richedit 3 is only on 2000 or later. ... :> Do you know which version of the rich edit control is installed on 98? ... :> The MSDN states that for version 1 wparam should be a POINTAPI ... :> Private Sub Command1_Click ...
    (microsoft.public.vb.general.discussion)
  • Re: EM_POSFROMCHAR problem
    ... but richedit 3 is only on 2000 or later. ... :> Do you know which version of the rich edit control is installed on 98? ... :> The MSDN states that for version 1 wparam should be a POINTAPI ... :> Private Sub Command1_Click ...
    (microsoft.public.vb.winapi)