Re: Control does not seem to be respecting margins.

Christian wrote:
> In the IDE I have set up all four margins as 0.25".  After I populate
> the control with contents, I am reaffirming these margins.  And
> finally, I am looping through all of the paragraphs and am re-setting
> the left & right margins.  However, none of these options seem to work
> as all margins appear to be 1".
>
>         if iBound < 3 then // Old RTF
>           txtWordProc.getDoc.setRTF(sContents)
>
>         else // New FTC
>           txtWordProc.getDoc.setXML(sContents)
>
>         end if
>
>         txtWordProc.LeftMargin = .25
>         txtWordProc.RightMargin = .25
>         txtWordProc.TopMargin = .25
>         txtWordProc.BottomMargin = .25
>         SetMargins
>
>         call txtWordProc.setInhibitUpdates(False)
>         txtWordProc.updateFull
>
>
> Help please.  :)

You are accessing the design time properties. Try the setMargins method.

txtWordProc.setMargins(0.25, 0.25, 0.25, 0.25)

FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.



Other related posts: